Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:004BF3D0 lua_GetWeaponEnchantInfo proc near ; DATA XREF: .data:00801724o
- .text:004BF3D0
- .text:004BF3D0 var_2C = qword ptr -2Ch
- .text:004BF3D0 var_18 = dword ptr -18h
- .text:004BF3D0 var_14 = dword ptr -14h
- .text:004BF3D0 var_10 = dword ptr -10h
- .text:004BF3D0 var_C = dword ptr -0Ch
- .text:004BF3D0 var_8 = dword ptr -8
- .text:004BF3D0 var_4 = dword ptr -4
- .text:004BF3D0 arg_0 = dword ptr 8
- .text:004BF3D0
- .text:004BF3D0 push ebp
- .text:004BF3D1 mov ebp, esp
- .text:004BF3D3 sub esp, 18h
- .text:004BF3D6 call sub_92830
- .text:004BF3DB push 0A7h
- .text:004BF3E0 push offset aDBuildserver_2 ; "d:\\BuildServer\\WoW\\1\\work\\WoW-code\\bran"...
- .text:004BF3E5 push 10h
- .text:004BF3E7 push edx
- .text:004BF3E8 push eax
- .text:004BF3E9 call sub_93C90
- .text:004BF3EE add esp, 14h
- .text:004BF3F1 mov [ebp+var_18], 0Fh
- .text:004BF3F8 mov [ebp+var_14], 10h
- .text:004BF3FF mov [ebp+var_10], 11h
- .text:004BF406 test eax, eax
- .text:004BF408 jz loc_4BF533
- .text:004BF40E push ebx
- .text:004BF40F mov ebx, [ebp+arg_0]
- .text:004BF412 xor ecx, ecx
- .text:004BF414 push esi
- .text:004BF415 add eax, 2298h
- .text:004BF41A push edi
- .text:004BF41B mov [ebp+var_8], ecx
- .text:004BF41E mov [ebp+var_C], eax
- .text:004BF421
- .text:004BF421 loc_4BF421: ; CODE XREF: lua_GetWeaponEnchantInfo+151j
- .text:004BF421 mov eax, [ebp+ecx*4+var_18]
- .text:004BF425 mov ecx, [ebp+var_C]
- .text:004BF428 push eax
- .text:004BF429 call sub_1F7BD0
- .text:004BF42E mov edi, eax
- .text:004BF430 test edi, edi
- .text:004BF432 jz loc_4BF502
- .text:004BF438 mov edx, [edi+0F8h]
- .text:004BF43E mov eax, [edx]
- .text:004BF440 lea esi, [edi+0F8h]
- .text:004BF446 push 0
- .text:004BF448 mov ecx, esi
- .text:004BF44A call eax
- .text:004BF44C shr eax, 0Dh
- .text:004BF44F not al
- .text:004BF451 test al, 1
- .text:004BF453 jz loc_4BF502
- .text:004BF459 mov ecx, [esi+4]
- .text:004BF45C cmp dword ptr [ecx+4Ch], 0
- .text:004BF460 jz loc_4BF502
- .text:004BF466 fld1
- .text:004BF468 sub esp, 8
- .text:004BF46B fstp [esp+2Ch+var_2C]
- .text:004BF46E push ebx ; int
- .text:004BF46F call sub_34DC0
- .text:004BF474 mov edx, [esi]
- .text:004BF476 mov eax, [edx]
- .text:004BF478 add esp, 0Ch
- .text:004BF47B push 0
- .text:004BF47D mov ecx, esi
- .text:004BF47F call eax
- .text:004BF481 shr eax, 0Dh
- .text:004BF484 not al
- .text:004BF486 test al, 1
- .text:004BF488 jz short loc_4BF493
- .text:004BF48A mov ecx, [esi+4]
- .text:004BF48D cmp dword ptr [ecx+50h], 0
- .text:004BF491 jnz short loc_4BF49E
- .text:004BF493
- .text:004BF493 loc_4BF493: ; CODE XREF: lua_GetWeaponEnchantInfo+B8j
- .text:004BF493 push ebx
- .text:004BF494 call sub_34DA0
- .text:004BF499 add esp, 4
- .text:004BF49C jmp short loc_4BF4BC
- .text:004BF49E ; ---------------------------------------------------------------------------
- .text:004BF49E
- .text:004BF49E loc_4BF49E: ; CODE XREF: lua_GetWeaponEnchantInfo+C1j
- .text:004BF49E push 1
- .text:004BF4A0 mov ecx, edi
- .text:004BF4A2 call sub_1AD660
- .text:004BF4A7 mov [ebp+var_4], eax
- .text:004BF4AA fild [ebp+var_4]
- .text:004BF4AD sub esp, 8
- .text:004BF4B0 fstp [esp+28h+var_2C+4]
- .text:004BF4B3 push ebx ; int
- .text:004BF4B4 call sub_34DC0
- .text:004BF4B9 add esp, 0Ch
- .text:004BF4BC
- .text:004BF4BC loc_4BF4BC: ; CODE XREF: lua_GetWeaponEnchantInfo+CCj
- .text:004BF4BC mov edx, [esi]
- .text:004BF4BE mov eax, [edx]
- .text:004BF4C0 push 0
- .text:004BF4C2 mov ecx, esi
- .text:004BF4C4 call eax
- .text:004BF4C6 shr eax, 0Dh
- .text:004BF4C9 not al
- .text:004BF4CB test al, 1
- .text:004BF4CD jz short loc_4BF4EA
- .text:004BF4CF mov ecx, [esi+4]
- .text:004BF4D2 movsx edx, word ptr [ecx+54h]
- .text:004BF4D6 mov [ebp+var_4], edx
- .text:004BF4D9 sub esp, 8
- .text:004BF4DC fild [ebp+var_4]
- .text:004BF4DF fstp [esp+2Ch+var_2C]
- .text:004BF4E2 push ebx ; int
- .text:004BF4E3 call sub_34DC0
- .text:004BF4E8 jmp short loc_4BF514
- .text:004BF4EA ; ---------------------------------------------------------------------------
- .text:004BF4EA
- .text:004BF4EA loc_4BF4EA: ; CODE XREF: lua_GetWeaponEnchantInfo+FDj
- .text:004BF4EA mov [ebp+var_4], 0
- .text:004BF4F1 fild [ebp+var_4]
- .text:004BF4F4 sub esp, 8
- .text:004BF4F7 fstp [esp+2Ch+var_2C]
- .text:004BF4FA push ebx ; int
- .text:004BF4FB call sub_34DC0
- .text:004BF500 jmp short loc_4BF514
- .text:004BF502 ; ---------------------------------------------------------------------------
- .text:004BF502
- .text:004BF502 loc_4BF502: ; CODE XREF: lua_GetWeaponEnchantInfo+62j
- .text:004BF502 ; lua_GetWeaponEnchantInfo+83j ...
- .text:004BF502 push ebx
- .text:004BF503 call sub_34DA0
- .text:004BF508 push ebx
- .text:004BF509 call sub_34DA0
- .text:004BF50E push ebx
- .text:004BF50F call sub_34DA0
- .text:004BF514
- .text:004BF514 loc_4BF514: ; CODE XREF: lua_GetWeaponEnchantInfo+118j
- .text:004BF514 ; lua_GetWeaponEnchantInfo+130j
- .text:004BF514 mov ecx, [ebp+var_8]
- .text:004BF517 inc ecx
- .text:004BF518 add esp, 0Ch
- .text:004BF51B mov [ebp+var_8], ecx
- .text:004BF51E cmp ecx, 3
- .text:004BF521 jb loc_4BF421
- .text:004BF527 pop edi
- .text:004BF528 pop esi
- .text:004BF529 mov eax, 9
- .text:004BF52E pop ebx
- .text:004BF52F mov esp, ebp
- .text:004BF531 pop ebp
- .text:004BF532 retn
- .text:004BF533 ; ---------------------------------------------------------------------------
- .text:004BF533
- .text:004BF533 loc_4BF533: ; CODE XREF: lua_GetWeaponEnchantInfo+38j
- .text:004BF533 xor eax, eax
- .text:004BF535 mov esp, ebp
- .text:004BF537 pop ebp
- .text:004BF538 retn
- .text:004BF538 lua_GetWeaponEnchantInfo endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement