User talk:Baba

From libsecondlife

Jump to: navigation, search

;=========================================================================
; This file is generated by The Interactive Disassembler (IDA)
; Copyright (c) 2005 by DataRescue sa/nv, <<a href="mailto:ida@datarescue.com">ida@datarescue.com</a>>
;=========================================================================
.text:008E5C40 ; --------------- S U B R O U T I N E ---------------------------------------
.text:008E5C40 LLInventoryItem::getCRC32 proc near
.text:008E5C40 push esi
.text:008E5C41 mov esi, ecx
.text:008E5C43 mov eax, [esi+LLInventoryItem.folderID3]
.text:008E5C46 mov edx, [esi+LLInventoryItem.folderID2]
.text:008E5C49 mov ecx, [esi+LLInventoryItem.itemID4]
.text:008E5C4C push edi
.text:008E5C4D mov edi, [esi+LLInventoryItem.folderID4]
.text:008E5C50 add edi, eax
.text:008E5C52 mov eax, [esi+LLInventoryItem.itemID3]
.text:008E5C55 add edi, edx
.text:008E5C57 mov edx, [esi+LLInventoryItem.itemID2]
.text:008E5C5A add edi, ecx
.text:008E5C5C mov ecx, [esi+LLInventoryItem.folderID1]
.text:008E5C5F add edi, eax
.text:008E5C61 mov eax, [esi+LLInventoryItem.itemID1]
.text:008E5C64 add edi, edx
.text:008E5C66 add edi, ecx
.text:008E5C68 lea ecx, [esi+LLInventoryItem.LLPermissions]
.text:008E5C6B add edi, eax
.text:008E5C6D call LLPermissions::getCRC32
.text:008E5C72 mov ecx, [esi+LLInventoryItem.type_or_invtype]
.text:008E5C78 mov edx, [esi+LLInventoryItem.assetID4]
.text:008E5C7E add edi, eax
.text:008E5C80 mov eax, [esi+LLInventoryItem.flags]
.text:008E5C86 add eax, ecx
.text:008E5C88 mov ecx, [esi+LLInventoryItem.assetID3]
.text:008E5C8E add eax, edx
.text:008E5C90 mov edx, [esi+LLInventoryItem.assetID2]
.text:008E5C96 add eax, ecx
.text:008E5C98 mov ecx, [esi+LLInventoryItem.invtype_or_type]
.text:008E5C9B add eax, edx
.text:008E5C9D mov edx, [esi+LLInventoryItem.assetID1]
.text:008E5CA3 add eax, ecx
.text:008E5CA5 add eax, edx
.text:008E5CA7 lea ecx, [esi+LLInventoryItem.sale_type]
.text:008E5CAD add edi, eax
.text:008E5CAF call LLSaleInfo::getCRC32
.text:008E5CB4 add edi, eax
.text:008E5CB6 mov eax, [esi+LLInventoryItem.creationdate]
.text:008E5CBC add eax, edi
.text:008E5CBE pop edi
.text:008E5CBF pop esi
.text:008E5CC0 retn
.text:008E5CC0 LLInventoryItem::getCRC32 endp
.text:008E5CC0
.text:008E5CC0 ; ---------------------------------------------------------------------------
 
.text:008E3790 ; --------------- S U B R O U T I N E ---------------------------------------
.text:008E3790 LLPermissions::getCRC32 proc near ; CODE XREF: LLInventoryItem::getCRC32+2Dp
.text:008E3790 mov edx, [ecx+3Ch]  ; if you bother to count on your fingers
.text:008E3793 mov eax, [ecx+40h]  ; this is really just a stupid way of
.text:008E3796 add eax, edx  ; writing sum from ecx+4 to ecx+50h
.text:008E3798 add eax, [ecx+38h]  ; and put it into eax
.text:008E379B add eax, [ecx+30h]
.text:008E379E add eax, [ecx+2Ch]  ; ecx+4 = creatorID1
.text:008E37A1 add eax, [ecx+28h]  ; ecx+14h = ownerID
.text:008E37A4 add eax, [ecx+50h]  ; ecx+24h = zeros?
.text:008E37A7 add eax, [ecx+4Ch]  ; ecx+34h=zeros?
.text:008E37AA add eax, [ecx+20h]  ; ecx+38h=owner_mask
.text:008E37AD add eax, [ecx+48h]  ; ecx+3Ch=nextowner_mask
.text:008E37B0 add eax, [ecx+1Ch]  ; ecx+40h=everyone_mask
.text:008E37B3 add eax, [ecx+44h]  ; ecx+44h=group_mask
.text:008E37B6 add eax, [ecx+18h]
.text:008E37B9 add eax, [ecx+10h]
.text:008E37BC add eax, [ecx+0Ch]
.text:008E37BF add eax, [ecx+8]
.text:008E37C2 add eax, [ecx+34h]
.text:008E37C5 add eax, [ecx+24h]
.text:008E37C8 add eax, [ecx+14h]
.text:008E37CB add eax, [ecx+4]
.text:008E37CE retn
.text:008E37CE LLPermissions::getCRC32 endp
.text:008E37CE ; ---------------------------------------------------------------------------
 
.text:008E9D00 ; --------------- S U B R O U T I N E ---------------------------------------
.text:008E9D00 LLSaleInfo::getCRC32 proc near ; CODE XREF: LLInventoryItem::getCRC32+6Fp
.text:008E9D00 mov eax, [ecx] (sale_type)
.text:008E9D02 mov edx, [ecx+4] (sale_price)
.text:008E9D05 imul eax, 7073096h
.text:008E9D0B add eax, edx
.text:008E9D0D retn
.text:008E9D0D LLSaleInfo::getCRC32 endp
.text:008E9D0D ; ---------------------------------------------------------------------------