Function at 0x10059ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x10122094]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov edi, dword [0x1012f0fc]
mov dword [esp + 0x38], edi
call fcn.10036be0
mov dword [esp + 0x24], eax
mov byte [esp + 0x2f], 0
test eax, eax
je 0x1005abe0
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
mov edx, dword [edi]
mov ecx, edi
lea ebx, [eax + 5]
mov dword [esp + 0x28], ebx
call dword [edx + 8]
shr eax, 1
add eax, ebx
cmp byte [edi + 0x41], 0
mov dword [esp + 0x34], eax
jne 0x1005abe0
mov ecx, 0x24
call fcn.100557d0
test eax, eax
je 0x10059f49
call fcn.10036910
mov dword [esp + 0x24], eax
mov byte [esp + 0x2f], 1
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x10059f63
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 4]
jne 0x10059f52
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [edi]
mov ebx, eax
mov ecx, edi
mov dword [esp + 0x20], ebx
call dword [edx]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
call dword [edx + 8]
add eax, dword [edi + 0x2c]
mov ecx, edi
mov dword [esp + 0x68], eax
mov eax, dword [edi]
call dword [eax + 0xc]
add eax, ebx
mov ecx, edi
mov dword [esp + 0x6c], eax
mov eax, dword [edi]
call dword [eax + 0xc]
mov edx, dword [edi]
mov ecx, edi
mov ebx, eax
call dword [edx + 8]
mov ecx, dword [esp + 0x38]
mov edi, eax
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, eax
mov eax, dword [esp + 0x38]
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
push 4
push 0
lea ecx, [ebx + esi]
push ecx
lea ecx, [edi + eax]
push ecx
push esi
push eax
call fcn.1003b920
lea ecx, [esp + 0x60]
call fcn.10058300
cmp byte [esp + 0x2f], 0
mov eax, 0x1010479c
mov edi, dword [esp + 0x24]
jne 0x10059fef
mov eax, dword [edi + 0x14]
mov ebx, dword [esp + 0x20]
push eax
sub esp, 0x18
add ebx, 8
mov ecx, esp
mov dword [esp + 0x3c], ebx
push 0xb
push str.Name:
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.1003f030
push 4
push 6
push 0
push ebx
push dword [esp + 0x54]
call fcn.10058b30
add esp, 0x30
push 0
push 0xc
push edi
call fcn.1003b0e0
push eax
mov eax, dword [esp + 0x6c]
push str.Level:
push 4
push 6
push 2
add eax, 0xfffffffb
push ebx
push eax
call fcn.10058de0
add esp, 0x1c
push 0
push 0x55
push edi
call fcn.1003b0e0
push eax
push str.Additional_XP:
push 4
push 6
push 2
lea eax, [ebx + 0xc]
push eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffffb
push eax
call fcn.10058de0
mov eax, dword [0x1012f1e4]
add esp, 0x1c
mov ebx, 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xffffffec
mov dword [esp + 0x78], 0xffffffce
mov eax, dword [eax]
mov dword [esp + 0x58], eax
test byte [eax + 0x1eb], 0x20
setne bl
inc ebx
call fcn.10036b50
movzx eax, al
push 0
push 0x28
push edi
mov eax, dword [esp + eax*4 + 0x7c]
imul eax, ebx
mov dword [esp + 0x3c], eax
call fcn.1003b0e0
push 0
push 0x2c
push edi
lea esi, [eax + 0x4b]
call fcn.1003b0e0
push 0
push 0x2a
push dword [esp + 0x2c]
lea edi, [eax + 0x4b]
call fcn.1003b0e0
push 0
lea ebx, [eax + 0x4b]
push 0x2e
push dword [esp + 0x2c]
call fcn.1003b0e0
push 0
push 0x6e
push dword [esp + 0x2c]
add eax, 0x4b
mov dword [esp + 0x4c], eax
call fcn.1003b0e0
add dword [esp + 0x20], 0x18
push esi
push 0
push 0x27
push dword [esp + 0x30]
mov dword [esp + 0x4c], eax
call fcn.1003b0e0
mov esi, dword [esp + 0x34]
add eax, esi
mov ecx, dword [esp + 0x24]
push eax
push 0x10104804
push 1
push 6
push 0
push ecx
push dword [esp + 0x44]
call fcn.10058de0
add dword [esp + 0x40], 0x10
add esp, 0x20
push edi
push 0
push 0x2b
push dword [esp + 0x30]
call fcn.1003b0e0
mov edi, dword [esp + 0x24]
add eax, esi
push eax
push 0x10104840
push 3
push 6
push 0
push edi
push dword [esp + 0x44]
call fcn.10058de0
add esp, 0x20
add edi, 0x10
push ebx
push 0
push 0x29
push dword [esp + 0x30]
call fcn.1003b0e0
mov ebx, dword [esp + 0x2c]
add eax, esi
push eax
push 0x10104880
push 9
push 6
push 0
push edi
push ebx
call fcn.10058de0
add esp, 0x20
mov eax, 0x64
sub eax, dword [esp + 0x3c]
add edi, 0x10
sub eax, esi
mov dword [esp + 0x20], edi
push eax
push dword [esp + 0x44]
push 0
push 0x2d
push dword [esp + 0x34]
call fcn.1003b0e0
add eax, esi
push eax
push str.Poison_Resist:
push 4
push 6
push 0
push edi
push ebx
call fcn.10058de0
mov esi, dword [esp + 0x48]
add esp, 0x24
push 0
push 0x8f
push esi
call fcn.1003b0e0
push 0
push 0x8e
push esi
mov dword [esp + 0x54], eax
call fcn.1003b0e0
push 0
push 0x95
push esi
mov dword [esp + 0x3c], eax
call fcn.1003b0e0
push 0
push 0x94
push esi
mov dword [esp + 0x48], eax
call fcn.1003b0e0
push 0
push 0x91
push esi
mov dword [esp + 0x4c], eax
call fcn.1003b0e0
push 0
push 0x90
push esi
mov ebx, eax
call fcn.1003b0e0
push 0
push 0x93
push esi
mov edi, eax
call fcn.1003b0e0
push 0
push 0x92
push dword [esp + 0x2c]
mov esi, eax
call fcn.1003b0e0
push 0x25
push eax
push esi
push 0x25
push edi
mov ecx, dword [esp + 0x34]
push ebx
push 0x25
push dword [esp + 0x5c]
add ecx, 0x18
push dword [esp + 0x5c]
mov dword [esp + 0x44], ecx
push 0x25
push dword [esp + 0x58]
push dword [esp + 0x74]
push 0x10104930
push 1
push 6
push 0
push ecx
push dword [esp + 0x6c]
call fcn.10058de0
mov esi, dword [esp + 0x6c]
add esp, 0x48
push 0
push 0x22
push esi
call fcn.1003b0e0
push 0
push 0x24
push esi
mov ebx, eax
call fcn.1003b0e0
push 0
push 0x23
push esi
mov edi, eax
call fcn.1003b0e0
mov esi, eax
push 0
push 0x25
push dword [esp + 0x2c]
call fcn.1003b0e0
mov ecx, dword [esp + 0x20]
push 0x25
push eax
push esi
push 0x25
push edi
push ebx
push 0x101049d8
push 7
push 6
add ecx, 0x10
push 0
push ecx
push dword [esp + 0x54]
mov dword [esp + 0x50], ecx
call fcn.10058de0
mov esi, dword [esp + 0x54]
add esp, 0x30
push 0
push 0x149
push esi
call fcn.1003b0e0
push 0
push 0x14b
push esi
mov dword [esp + 0x3c], eax
call fcn.1003b0e0
push 0
push 0x14a
push esi
mov dword [esp + 0x48], eax
call fcn.1003b0e0
push 0
push 0x14c
push esi
mov dword [esp + 0x4c], eax
call fcn.1003b0e0
push 0
push 0x165
push esi
mov dword [esp + 0x54], eax
call fcn.1003b0e0
push 0
push 0x14d
push esi
mov ebx, eax
call fcn.1003b0e0
push 0
push 0x14f
push esi
mov dword [esp + 0x60], eax
call fcn.1003b0e0
push 0
push 0x14e
push esi
mov dword [esp + 0x5c], eax
call fcn.1003b0e0
push 0
push 0x150
push esi
mov dword [esp + 0x58], eax
call fcn.1003b0e0
push 0
push 0x166
push esi
mov edi, eax
call fcn.1003b0e0
add dword [esp + 0x20], 0x18
mov esi, eax
push ebx
push dword [esp + 0x4c]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x40]
push str.Elemental_Mastery:
push 4
push 6
mov ebx, dword [esp + 0x40]
push 0
push ebx
push dword [esp + 0x50]
call fcn.10058de0
add esp, 0x2c
add ebx, 0x10
push esi
push edi
push dword [esp + 0x54]
mov edi, dword [esp + 0x34]
push dword [esp + 0x5c]
push dword [esp + 0x64]
push str.Elemental_Pierce:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
mov eax, dword [esp + 0x84]
add esp, 0x2c
movzx ecx, byte [eax + 0x1ea]
mov eax, dword [0x1012f428]
push 0
push 2
push dword [esp + 0x2c]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax]
call fcn.1003b0e0
sub eax, 7
push 0
push 0x13
push dword [esp + 0x2c]
lea esi, [esi + eax*4]
add esi, eax
call fcn.1003b0e0
add ebx, 0x10
lea ecx, [eax + esi]
push ecx
push eax
push esi
push str.Base_AR:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
add esp, 0x24
push 0
push 0x1f
push dword [esp + 0x2c]
call fcn.1003b0e0
push 0
push 2
push dword [esp + 0x2c]
mov esi, eax
call fcn.1003b0e0
cdq
add ebx, 0x10
and edx, 3
mov dword [esp + 0x20], ebx
add eax, edx
sar eax, 2
lea ecx, [eax + esi]
push ecx
push esi
push eax
push str.Base_Def:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
mov esi, dword [esp + 0x48]
add esp, 0x24
push 0
push 0x18
push esi
call fcn.1003b0e0
push 0
push 0x17
push esi
mov ebx, eax
call fcn.1003b0e0
push 0
push 0x16
push esi
mov edi, eax
call fcn.1003b0e0
push 0
push 0x15
push dword [esp + 0x2c]
mov esi, eax
call fcn.1003b0e0
add dword [esp + 0x20], 0x10
push ebx
mov ebx, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
push esi
push eax
push str.Base_Damage:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
mov esi, dword [esp + 0x4c]
add esp, 0x28
add ebx, 0x18
push 0
push 0x69
push esi
call fcn.1003b0e0
push eax
push str.Cast_Rate:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
add esp, 0x1c
push 0
push 0x66
push esi
call fcn.1003b0e0
push eax
push str.Block_Rate:
push 4
push 6
push 0
push ebx
push dword [esp + 0x4c]
call fcn.10058de0
add esp, 0x1c
add ebx, 0x10
push 0
push 0x63
push esi
call fcn.1003b0e0
push eax
push str.Hit_Recovery:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
add esp, 0x1c
push 0
push 0x60
push esi
call fcn.1003b0e0
push eax
push str.Run_Walk:
push 4
push 6
push 0
push ebx
push dword [esp + 0x4c]
call fcn.10058de0
add esp, 0x1c
add ebx, 0x10
push 0
push 0x44
push esi
call fcn.1003b0e0
push eax
push str.Attack_Rate:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
add esp, 0x1c
push 0
push 0x5d
push esi
call fcn.1003b0e0
push eax
push str.IAS:
push 4
push 6
push 0
push ebx
push dword [esp + 0x4c]
call fcn.10058de0
add esp, 0x1c
add ebx, 0x18
push 0
push 0x88
push esi
call fcn.1003b0e0
push eax
push str.Crushing_Blow:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
add esp, 0x1c
push 0
push 0x87
push esi
call fcn.1003b0e0
push eax
push str.Open_Wounds:
push 4
push 6
push 0
push ebx
push dword [esp + 0x4c]
call fcn.10058de0
add esp, 0x1c
add ebx, 0x10
push 0
push 0x8d
push esi
call fcn.1003b0e0
push eax
push str.Deadly_Strike:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
add esp, 0x1c
push 0
push 0x151
push esi
call fcn.1003b0e0
push eax
push str.Critical_Strike:
push 4
push 6
push 0
push ebx
push dword [esp + 0x4c]
call fcn.10058de0
add esp, 0x1c
add ebx, 0x10
push 0
push 0x3c
push esi
call fcn.1003b0e0
push eax
push str.Life_Leech:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
add esp, 0x1c
push 0
push 0x3e
push esi
call fcn.1003b0e0
push eax
push str.Mana_Leech:
push 4
push 6
push 0
push ebx
push dword [esp + 0x4c]
call fcn.10058de0
add esp, 0x1c
add ebx, 0x10
mov dword [esp + 0x20], ebx
push 0
push 0xa6
push esi
call fcn.1003b0e0
push 0
push 0x9c
push dword [esp + 0x2c]
mov esi, eax
call fcn.1003b0e0
add esi, eax
push esi
push str.Projectile_Pierce:
push 4
push 6
push 0
push ebx
push edi
call fcn.10058de0
mov edi, dword [esp + 0x40]
add esp, 0x1c
push 0
push 0x30
push edi
call fcn.1003b0e0
push 0
push 0x31
push edi
mov dword [esp + 0x60], eax
call fcn.1003b0e0
push 0
push 0x32
push edi
mov dword [esp + 0x64], eax
call fcn.1003b0e0
push 0
push 0x33
push edi
mov dword [esp + 0x54], eax
call fcn.1003b0e0
push 0
push 0x36
push edi
mov dword [esp + 0x58], eax
call fcn.1003b0e0
push 0
mov dword [esp + 0x54], eax
push 0x37
push edi
call fcn.1003b0e0
push 0
push 0x39
push edi
mov ebx, eax
call fcn.1003b0e0
push 0
push 0x3a
push edi
mov dword [esp + 0x3c], eax
call fcn.1003b0e0
push 0
push 0x3b
push edi
mov dword [esp + 0x48], eax
call fcn.1003b0e0
push 0
push 0x65
push edi
mov esi, eax
call fcn.1003b0e0
push 0
test eax, eax
push 0x34
cmovg esi, eax
push edi
mov dword [esp + 0x4c], esi
call fcn.1003b0e0
push 0
push 0x35
push dword [esp + 0x2c]
mov edi, eax
call fcn.1003b0e0
push 0
push 0x6f
push dword [esp + 0x2c]
mov esi, eax
call fcn.1003b0e0
mov ecx, dword [esp + 0x20]
push eax
push str.Added_Damage:
push 4
push 6
add ecx, 0x18
push 0
push ecx
push dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
call fcn.10058de0
add esp, 0x1c
push esi
push edi
sub esp, 0x18
mov ecx, esp
push 5
push str._d__d
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.1003f030
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x54]
push 8
push 6
push 0
push edi
push esi
call fcn.10058b30
add esp, 0x34
add edi, 0x10
push dword [esp + 0x58]
push dword [esp + 0x58]
sub esp, 0x18
mov ecx, esp
push 5
push str._d__d
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.1003f030
push 1
push 6
push 0
push edi
push dword [esp + 0x58]
call fcn.10058b30
add esp, 0x34
push ebx
push dword [esp + 0x54]
sub esp, 0x18
mov ecx, esp
push 5
push str._d__d
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.1003f030
push 3
push 6
push 0
push edi
push esi
call fcn.10058b30
add esp, 0x34
add edi, 0x10
push dword [esp + 0x4c]
push dword [esp + 0x4c]
sub esp, 0x18
mov ecx, esp
push 5
push str._d__d
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.1003f030
mov ebx, dword [esp + 0x48]
push 9
push 6
push 0
push edi
push ebx
call fcn.10058b30
movd xmm2, dword [esp + 0x74]
add esp, 0x2c
cvtdq2pd xmm2, xmm2
movaps xmm0, xmm2
divsd xmm0, qword [0x1010dd58]
movsd qword [esp], xmm0
movd xmm0, dword [esp + 0x44]
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x1010dd30]
mulsd xmm0, xmm2
cvttsd2si eax, xmm0
movd xmm0, dword [esp + 0x38]
cvtdq2pd xmm0, xmm0
push eax
mulsd xmm0, qword [0x1010dd30]
mulsd xmm0, xmm2
cvttsd2si eax, xmm0
push eax
sub esp, 0x18
mov ecx, esp
push 0x10
push str._d__d_over__.1fs
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.1003f030
push 2
push 6
push 0
push edi
push esi
call fcn.10058b30
mov esi, dword [esp + 0x60]
add esp, 0x3c
add edi, 0x18
push 0
push 0x50
push esi
call fcn.1003b0e0
push eax
push str.Magic_Find:
push 4
push 6
push 0
push edi
push ebx
call fcn.10058de0
add esp, 0x1c
push 0
push 0x4f
push esi
call fcn.1003b0e0
push eax
push str.Gold_Find:
push 4
push 6
push 0
push edi
push dword [esp + 0x4c]
call fcn.10058de0
add esp, 0x1c
add edi, 0x10
push 0
push 0xf
push esi
call fcn.1003b0e0
push eax
push str.Stash_Gold:
push 4
push 6
push 0
push edi
push ebx
call fcn.10058de0
add esp, 0x1c
call fcn.10036850
push 0xa
mov esi, eax
push 4
push esi
mov dword [esp + 0x2c], esi
call fcn.1003b2f0
test eax, eax
mov edx, str.alive
mov ecx, str.killed
cmove ecx, edx
push ecx
push str.Cow_King:
push 4
push 6
push 0
push edi
push dword [esp + 0x4c]
call fcn.10058de0
add esp, 0x1c
push 0xf
push 6
push esi
call fcn.1003b2f0
push 0xc
push 6
push dword [esp + 0x28]
mov esi, eax
call fcn.1003b2f0
push 0xf
push 0xe
push dword [esp + 0x28]
or esi, eax
call fcn.1003b2f0
push 0xc
push 0xe
push dword [esp + 0x28]
mov dword [esp + 0x3c], eax
call fcn.1003b2f0
or dword [esp + 0x30], eax
test esi, esi
jne 0x1005aa5a
mov ecx, 0x10104f5c
mov esi, 0x10104f64
jmp 0x1005aa78
push 0xf
push 6
push dword [esp + 0x28]
call fcn.1003b2f0
mov esi, 0x10104f64
test eax, eax
mov ecx, esi
mov eax, 0x10104f6c
cmove ecx, eax
push ecx
push str.Andy_Bugged:
push 4
push 6
push 0
add edi, 0x10
push edi
push ebx
call fcn.10058de0
add esp, 0x1c
cmp dword [esp + 0x30], 0
jne 0x1005aa9f
mov esi, 0x10104f5c
jmp 0x1005aab6
push 5
push 0xe
push dword [esp + 0x28]
call fcn.1003b2f0
test eax, eax
mov eax, 0x10104f6c
cmove esi, eax
push esi
push str.Dury_Bugged:
push 4
push 6
push 0
push edi
push dword [esp + 0x4c]
call fcn.10058de0
mov ebx, dword [esp + 0x54]
add esp, 0x1c
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x5c]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1005abe0
add edi, 8
xor esi, esi
nop dword [eax + eax]
mov ecx, dword [ecx + esi*4]
cmp byte [ecx + 0x1c], 0
je 0x1005ab02
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x38], eax
jmp 0x1005ab0a
mov dword [esp + 0x38], 0
push ecx
lea eax, [esp + 0x5c]
push eax
call fcn.1005ae90
push dword [esp + 0x38]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
movzx eax, word [eax + 0x1e]
push eax
push dword [esp + 0x2c]
call fcn.1003b0e0
mov ecx, dword [ebx + 0x5c]
mov edx, eax
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x1005ab84
mov ecx, dword [ecx + esi*4]
cmp dword [ecx + 0x14], 0x10
jb 0x1005ab44
mov ecx, dword [ecx]
push edx
push eax
push ecx
sub esp, 0x18
add edi, 0x10
mov ecx, esp
push 0xd
push str._s__d_:
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.1003f030
push 4
push 6
push 0
push edi
push dword [esp + 0x5c]
call fcn.10058b30
add esp, 0x38
jmp 0x1005abcc
mov eax, dword [ecx + esi*4]
cmp dword [eax + 0x14], 0x10
jb 0x1005ab8f
mov eax, dword [eax]
push edx
push eax
sub esp, 0x18
add edi, 0x10
mov ecx, esp
push 9
push 0x10104fd4
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.1003f030
push 4
push 6
push 0
push edi
push dword [esp + 0x58]
call fcn.10058b30
add esp, 0x34
mov eax, dword [ebx + 0x60]
inc esi
mov ecx, dword [ebx + 0x5c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x1005aaf0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b4e9c
mov esp, ebp
pop ebp
ret