Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:004BF3D0 lua_GetWeaponEnchantInfo proc near      ; DATA XREF: .data:00801724o
  2. .text:004BF3D0
  3. .text:004BF3D0 var_2C          = qword ptr -2Ch
  4. .text:004BF3D0 var_18          = dword ptr -18h
  5. .text:004BF3D0 var_14          = dword ptr -14h
  6. .text:004BF3D0 var_10          = dword ptr -10h
  7. .text:004BF3D0 var_C           = dword ptr -0Ch
  8. .text:004BF3D0 var_8           = dword ptr -8
  9. .text:004BF3D0 var_4           = dword ptr -4
  10. .text:004BF3D0 arg_0           = dword ptr  8
  11. .text:004BF3D0
  12. .text:004BF3D0                 push    ebp
  13. .text:004BF3D1                 mov     ebp, esp
  14. .text:004BF3D3                 sub     esp, 18h
  15. .text:004BF3D6                 call    sub_92830
  16. .text:004BF3DB                 push    0A7h
  17. .text:004BF3E0                 push    offset aDBuildserver_2 ; "d:\\BuildServer\\WoW\\1\\work\\WoW-code\\bran"...
  18. .text:004BF3E5                 push    10h
  19. .text:004BF3E7                 push    edx
  20. .text:004BF3E8                 push    eax
  21. .text:004BF3E9                 call    sub_93C90
  22. .text:004BF3EE                 add     esp, 14h
  23. .text:004BF3F1                 mov     [ebp+var_18], 0Fh
  24. .text:004BF3F8                 mov     [ebp+var_14], 10h
  25. .text:004BF3FF                 mov     [ebp+var_10], 11h
  26. .text:004BF406                 test    eax, eax
  27. .text:004BF408                 jz      loc_4BF533
  28. .text:004BF40E                 push    ebx
  29. .text:004BF40F                 mov     ebx, [ebp+arg_0]
  30. .text:004BF412                 xor     ecx, ecx
  31. .text:004BF414                 push    esi
  32. .text:004BF415                 add     eax, 2298h
  33. .text:004BF41A                 push    edi
  34. .text:004BF41B                 mov     [ebp+var_8], ecx
  35. .text:004BF41E                 mov     [ebp+var_C], eax
  36. .text:004BF421
  37. .text:004BF421 loc_4BF421:                             ; CODE XREF: lua_GetWeaponEnchantInfo+151j
  38. .text:004BF421                 mov     eax, [ebp+ecx*4+var_18]
  39. .text:004BF425                 mov     ecx, [ebp+var_C]
  40. .text:004BF428                 push    eax
  41. .text:004BF429                 call    sub_1F7BD0
  42. .text:004BF42E                 mov     edi, eax
  43. .text:004BF430                 test    edi, edi
  44. .text:004BF432                 jz      loc_4BF502
  45. .text:004BF438                 mov     edx, [edi+0F8h]
  46. .text:004BF43E                 mov     eax, [edx]
  47. .text:004BF440                 lea     esi, [edi+0F8h]
  48. .text:004BF446                 push    0
  49. .text:004BF448                 mov     ecx, esi
  50. .text:004BF44A                 call    eax
  51. .text:004BF44C                 shr     eax, 0Dh
  52. .text:004BF44F                 not     al
  53. .text:004BF451                 test    al, 1
  54. .text:004BF453                 jz      loc_4BF502
  55. .text:004BF459                 mov     ecx, [esi+4]
  56. .text:004BF45C                 cmp     dword ptr [ecx+4Ch], 0
  57. .text:004BF460                 jz      loc_4BF502
  58. .text:004BF466                 fld1
  59. .text:004BF468                 sub     esp, 8
  60. .text:004BF46B                 fstp    [esp+2Ch+var_2C]
  61. .text:004BF46E                 push    ebx             ; int
  62. .text:004BF46F                 call    sub_34DC0
  63. .text:004BF474                 mov     edx, [esi]
  64. .text:004BF476                 mov     eax, [edx]
  65. .text:004BF478                 add     esp, 0Ch
  66. .text:004BF47B                 push    0
  67. .text:004BF47D                 mov     ecx, esi
  68. .text:004BF47F                 call    eax
  69. .text:004BF481                 shr     eax, 0Dh
  70. .text:004BF484                 not     al
  71. .text:004BF486                 test    al, 1
  72. .text:004BF488                 jz      short loc_4BF493
  73. .text:004BF48A                 mov     ecx, [esi+4]
  74. .text:004BF48D                 cmp     dword ptr [ecx+50h], 0
  75. .text:004BF491                 jnz     short loc_4BF49E
  76. .text:004BF493
  77. .text:004BF493 loc_4BF493:                             ; CODE XREF: lua_GetWeaponEnchantInfo+B8j
  78. .text:004BF493                 push    ebx
  79. .text:004BF494                 call    sub_34DA0
  80. .text:004BF499                 add     esp, 4
  81. .text:004BF49C                 jmp     short loc_4BF4BC
  82. .text:004BF49E ; ---------------------------------------------------------------------------
  83. .text:004BF49E
  84. .text:004BF49E loc_4BF49E:                             ; CODE XREF: lua_GetWeaponEnchantInfo+C1j
  85. .text:004BF49E                 push    1
  86. .text:004BF4A0                 mov     ecx, edi
  87. .text:004BF4A2                 call    sub_1AD660
  88. .text:004BF4A7                 mov     [ebp+var_4], eax
  89. .text:004BF4AA                 fild    [ebp+var_4]
  90. .text:004BF4AD                 sub     esp, 8
  91. .text:004BF4B0                 fstp    [esp+28h+var_2C+4]
  92. .text:004BF4B3                 push    ebx             ; int
  93. .text:004BF4B4                 call    sub_34DC0
  94. .text:004BF4B9                 add     esp, 0Ch
  95. .text:004BF4BC
  96. .text:004BF4BC loc_4BF4BC:                             ; CODE XREF: lua_GetWeaponEnchantInfo+CCj
  97. .text:004BF4BC                 mov     edx, [esi]
  98. .text:004BF4BE                 mov     eax, [edx]
  99. .text:004BF4C0                 push    0
  100. .text:004BF4C2                 mov     ecx, esi
  101. .text:004BF4C4                 call    eax
  102. .text:004BF4C6                 shr     eax, 0Dh
  103. .text:004BF4C9                 not     al
  104. .text:004BF4CB                 test    al, 1
  105. .text:004BF4CD                 jz      short loc_4BF4EA
  106. .text:004BF4CF                 mov     ecx, [esi+4]
  107. .text:004BF4D2                 movsx   edx, word ptr [ecx+54h]
  108. .text:004BF4D6                 mov     [ebp+var_4], edx
  109. .text:004BF4D9                 sub     esp, 8
  110. .text:004BF4DC                 fild    [ebp+var_4]
  111. .text:004BF4DF                 fstp    [esp+2Ch+var_2C]
  112. .text:004BF4E2                 push    ebx             ; int
  113. .text:004BF4E3                 call    sub_34DC0
  114. .text:004BF4E8                 jmp     short loc_4BF514
  115. .text:004BF4EA ; ---------------------------------------------------------------------------
  116. .text:004BF4EA
  117. .text:004BF4EA loc_4BF4EA:                             ; CODE XREF: lua_GetWeaponEnchantInfo+FDj
  118. .text:004BF4EA                 mov     [ebp+var_4], 0
  119. .text:004BF4F1                 fild    [ebp+var_4]
  120. .text:004BF4F4                 sub     esp, 8
  121. .text:004BF4F7                 fstp    [esp+2Ch+var_2C]
  122. .text:004BF4FA                 push    ebx             ; int
  123. .text:004BF4FB                 call    sub_34DC0
  124. .text:004BF500                 jmp     short loc_4BF514
  125. .text:004BF502 ; ---------------------------------------------------------------------------
  126. .text:004BF502
  127. .text:004BF502 loc_4BF502:                             ; CODE XREF: lua_GetWeaponEnchantInfo+62j
  128. .text:004BF502                                         ; lua_GetWeaponEnchantInfo+83j ...
  129. .text:004BF502                 push    ebx
  130. .text:004BF503                 call    sub_34DA0
  131. .text:004BF508                 push    ebx
  132. .text:004BF509                 call    sub_34DA0
  133. .text:004BF50E                 push    ebx
  134. .text:004BF50F                 call    sub_34DA0
  135. .text:004BF514
  136. .text:004BF514 loc_4BF514:                             ; CODE XREF: lua_GetWeaponEnchantInfo+118j
  137. .text:004BF514                                         ; lua_GetWeaponEnchantInfo+130j
  138. .text:004BF514                 mov     ecx, [ebp+var_8]
  139. .text:004BF517                 inc     ecx
  140. .text:004BF518                 add     esp, 0Ch
  141. .text:004BF51B                 mov     [ebp+var_8], ecx
  142. .text:004BF51E                 cmp     ecx, 3
  143. .text:004BF521                 jb      loc_4BF421
  144. .text:004BF527                 pop     edi
  145. .text:004BF528                 pop     esi
  146. .text:004BF529                 mov     eax, 9
  147. .text:004BF52E                 pop     ebx
  148. .text:004BF52F                 mov     esp, ebp
  149. .text:004BF531                 pop     ebp
  150. .text:004BF532                 retn
  151. .text:004BF533 ; ---------------------------------------------------------------------------
  152. .text:004BF533
  153. .text:004BF533 loc_4BF533:                             ; CODE XREF: lua_GetWeaponEnchantInfo+38j
  154. .text:004BF533                 xor     eax, eax
  155. .text:004BF535                 mov     esp, ebp
  156. .text:004BF537                 pop     ebp
  157. .text:004BF538                 retn
  158. .text:004BF538 lua_GetWeaponEnchantInfo endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement