Advertisement
SerityW

Untitled

Jan 19th, 2021
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. 4d9460: push ebp ; store ebp
  2. 4d9461: mov ebp, esp ; ebp = esp
  3. 4d9463: push esi ; store esi
  4. 4d9464: mov esi, [ebp+0x8] ; esi = contents of <ebp+0x8> (a pushed parameter)
  5. 4d9467: test esi, esi ; if esi != 0 then goto :947d
  6. 4d9469: jnz 0x4d947d
  7. 4d946b: mov edx, [ecx+0x1b5] ; edx = contents of <ecx + 0x1B5>
  8. 4d9471: xor eax, eax ; eax = 0
  9. 4d9473: test edx, edx ; check if edx == 0
  10. 4d9475: pop esi
  11. 4d9476: setz al ; al (eax low) is 1 if edx != 0, otherwise al = 0
  12. 4d9479: pop ebp
  13. 4d947a: ret 0x4 ; return
  14. 4d947d: xor eax, eax ; :947d, eax = 0
  15. 4d947f: lea edx, [ecx+0x12d] ; edx = value of ecx+0x12d
  16. 4d9485: cmp [edx], esi ; if esi == (contents of edx) then goto :94c2 (al (low eax) = 1, return)
  17. 4d9487: jz 0x4d94c2
  18. 4d9489: inc eax ; eax = eax + 1
  19. 4d948a: add edx, 0x8 ; edx = edx + 8
  20. 4d948d: cmp eax, 0x13 ; if eax < 0x13 then loop back to edx check
  21. 4d9490: jl 0x4d9485
  22. 4d9492: mov eax, [0x660b68] ; if nothing passed, put contents of 0x660b68 into eax [693A58 ? could be dynamic]
  23. 4d9497: shl esi, 0x5 ; esi = esi * 32
  24. 4d949a: mov eax, [esi+eax+0x18] ; eax = contents of <eax + esi + 0x18>
  25. 4d949e: cmp eax, 0xff ; if eax is 0xFF then goto :94c9 (eax = 0, return)
  26. 4d94a1: jz 0x4d94c9
  27. 4d94a3: lea edx, [eax+eax*2] ; edx = eax * 3
  28. 4d94a6: mov eax, [0x660b6c] ; eax = contents of 0x660b6c [693938]
  29. 4d94ab: mov edx, [eax+edx*8] ; edx = contents of <eax + edx*8>
  30. 4d94ae: push edx ; store it
  31. 4d94af: call dword 0x4d9460 ; recursively call this func with that parameter
  32. 4d94b4: test al, al ; test if new, proxy(??) item is equipped
  33. 4d94b6: jz 0x4d94c9
  34. 4d94b8: mov eax, 0x1 ; if item is equipped then eax = 1
  35. 4d94bd: pop esi
  36. 4d94be: pop ebp
  37. 4d94bf: ret 0x4
  38. 4d94c2: mov al, 0x1 ; :94c2, al (low eax) = 1
  39. 4d94c4: pop esi
  40. 4d94c5: pop ebp
  41. 4d94c6: ret 0x4 ; return
  42. 4d94c9: xor eax, eax ; :94c9, eax = 0
  43. 4d94cb: pop esi
  44. 4d94cc: pop ebp
  45. 4d94cd: ret 0x4 ; return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement