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

Disassembly:
mov ecx, dword [0x84873c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59034e
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.004c38e0
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 0x5901a4
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.0046af80
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 0x5902f3
mov dword [esp + 0x2c], edx
mov ebx, dword [ecx + edx*4]
test edx, edx
jle 0x59023e
mov ebp, dword [esp + 0x54]
nop
nop
test ebp, ebp
je 0x5901d2
lea esi, [esp + 0x54]
cmp ebp, esi
je 0x5901da
jmp 0x590335
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 0x590235
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, [0x64c660]
mov dword [esp + 0x10], eax
call fcn.0044fab0
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.0049e920
mov eax, dword [esp + 0x54]
nop
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x59028d
lea ebx, [esp + 0x54]
cmp eax, ebx
je 0x590295
jmp 0x59031d
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 0x59015f
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], ecx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
lea eax, [0x64c660]
mov dword [esp + 0x10], eax
call fcn.0044fab0
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 0x59015f
mov eax, dword [esp + 0x58]
mov ecx, eax
neg eax
mov edx, dword [esp + 0x5c]
cmp edx, eax
ja 0x59030f
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x64
ret
test ecx, ecx
je 0x590318
call fcn.004611e0
call fcn.00461220
lea eax, [0x64c320]
mov dword [esp], eax
lea eax, [0x6dac40]
mov dword [esp + 4], eax
call fcn.004389a0
lea eax, [0x64c320]
mov dword [esp], eax
lea eax, [0x6dac40]
mov dword [esp + 4], eax
call fcn.004389a0
nop
call fcn.00469200
jmp fcn.005900e0