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

Disassembly:
mov ecx, dword [0x9ec7ac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59f9ee
sub esp, 0x64
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.00487cf0
mov dword [esp + 0x39], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
xor edx, edx
jmp 0x59f844
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x50], esi
add ebx, esi
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00468df0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
cmp eax, edx
jle 0x59f993
mov dword [esp + 0x2c], edx
mov ebx, dword [ecx + edx*4]
test edx, edx
jle 0x59f8de
mov ebp, dword [esp + 0x54]
nop
nop
test ebp, ebp
je 0x59f872
lea esi, [esp + 0x54]
cmp ebp, esi
je 0x59f87a
jmp 0x59f9d5
lea ebp, [esp + 0x54]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
inc esi
mov edi, dword [esp + 0x58]
cmp ebp, esi
jae 0x59f8d5
mov dword [esp + 0x24], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x5c], esi
mov byte [esi + edi - 1], 0x2e
lea eax, [esp + 0x39]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x13
mov ecx, ebx
sar ebx, 0x1f
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0xa
call fcn.00495e70
mov eax, dword [esp + 0x54]
nop
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x59f92d
lea ebx, [esp + 0x54]
cmp eax, ebx
je 0x59f935
jmp 0x59f9bd
lea eax, [esp + 0x54]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
lea ebp, [ebx + ecx]
mov esi, dword [esp + 0x58]
cmp eax, ebp
jae 0x59f7ff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], edx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
jmp 0x59f7ff
mov eax, dword [esp + 0x58]
mov ecx, eax
neg eax
mov edx, dword [esp + 0x5c]
cmp edx, eax
ja 0x59f9af
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x64
ret
test ecx, ecx
je 0x59f9b8
call fcn.0045fa60
call fcn.0045faa0
lea eax, [0x6e41c0]
mov dword [esp], eax
lea eax, [0x7aa508]
mov dword [esp + 4], eax
call fcn.004386b0
lea eax, [0x6e41c0]
mov dword [esp], eax
lea eax, [0x7aa508]
mov dword [esp + 4], eax
call fcn.004386b0
nop
call fcn.00467050
jmp fcn.0059f780