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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59d334
sub esp, 0x5c
mov eax, dword [esp + 0x88]
test eax, eax
je 0x59cf7b
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
jmp 0x59cf85
xor eax, eax
xor ecx, ecx
lea edx, [0x7e7480]
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x59cf9f
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
jmp 0x59cfb7
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
lea edi, [esi + ebp]
mov eax, dword [esp + 0x60]
cmp dword [eax + 0x4c], edi
jg 0x59d1b3
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x59d134
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], edx
test ebx, ebx
jne 0x59cfda
lea edi, [esi + ebp]
cmp dword [eax + 0x14], edi
jg 0x59d0c1
mov dword [esp], eax
call fcn.005a0380
mov eax, dword [esp + 4]
test byte [eax], al
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x59d031
nop
mov ebx, dword [esp + 0x64]
mov dword [eax + 0x68], ebx
mov ebx, dword [0x7e77b0]
test ebx, ebx
jne 0x59d00b
mov ebx, dword [esp + 0x68]
mov dword [eax + 0x6c], ebx
jmp 0x59d01b
lea edi, [eax + 0x6c]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.0045e950
mov eax, ecx
mov byte [eax + 0x70], 0
mov dword [eax + 0x74], 0
lea ebx, [eax + 0x68]
lea ecx, [0x68c28c]
jmp 0x59d0a4
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x59d070
nop
mov ebp, dword [esp + 0x70]
mov dword [eax + 0x58], ebp
mov ebp, dword [esp + 0x74]
mov dword [eax + 0x5c], ebp
mov ebp, dword [0x7e77b0]
test ebp, ebp
jne 0x59d057
mov dword [eax + 0x54], ebx
jmp 0x59d065
lea edi, [eax + 0x54]
mov ecx, eax
mov eax, ebx
call fcn.0045e950
mov eax, ecx
lea ebx, [eax + 0x54]
lea ecx, [0x68c268]
jmp 0x59d0a4
nop
mov ebx, dword [esp + 0x7c]
mov dword [eax + 0x64], ebx
mov ebx, dword [0x7e77b0]
test ebx, ebx
jne 0x59d08b
mov ebx, dword [esp + 0x78]
mov dword [eax + 0x60], ebx
jmp 0x59d09b
lea edi, [eax + 0x60]
mov ecx, eax
mov eax, dword [esp + 0x78]
call fcn.0045e950
mov eax, ecx
lea ebx, [eax + 0x60]
lea ecx, [0x68c2b0]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ebx
nop
mov ebp, dword [eax + 0x38]
mov esi, dword [eax + 0x3c]
mov edi, dword [esp + 0x84]
xor edx, edx
jmp 0x59d1e4
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], eax
call fcn.0059b240
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x5c
ret
mov dword [esp], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
call fcn.0059c670
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x5c
ret
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x5c
ret
mov dword [ebx + 8], edi
inc edx
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
cmp edx, esi
jge 0x59d1f8
mov ebx, dword [ebp + edx*4]
mov eax, dword [ebx + 0xc]
cmp edi, eax
jbe 0x59d1d8
jmp 0x59d32a
mov edx, dword [eax + 0x50]
cmp edi, edx
ja 0x59d323
mov dword [eax + 0x4c], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xc], ecx
call fcn.0059b720
movzx eax, byte [esp + 0x10]
test al, al
je 0x59d2ea
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x4c]
mov edx, dword [esp + 0x44]
lea ebx, [ecx + edx]
mov dword [esp + 0x40], ebx
mov ebp, dword [eax + 0x48]
mov esi, dword [esp + 0x48]
cmp esi, ebx
jb 0x59d251
mov edi, dword [esp + 0x58]
jmp 0x59d293
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], ebp
lea eax, [0x606780]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.00447740
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x54]
mov edi, edx
mov esi, eax
mov edx, dword [esp + 0x44]
mov dword [esp + 0x48], esi
mov dword [esp + 0x58], edi
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.0045f270
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
call fcn.005a06b0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x9c], eax
add esp, 0x5c
ret
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
call fcn.005a06b0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x5c
ret
mov ecx, edi
call fcn.0045ea10
mov ecx, edi
mov edx, eax
call fcn.0045ea10
nop
call fcn.0045d540
jmp fcn.0059cf40