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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59cac9
sub esp, 0x6c
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], ecx
mov ecx, 1
mov byte [esp + 0x2b], cl
mov ecx, 1
mov byte [esp + 0x2a], cl
mov ecx, dword [esp + 0x44]
jmp 0x59c6a8
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov edi, edx
mov esi, dword [esp + 0x5c]
mov byte [esp + 0x2b], cl
mov byte [esp + 0x2a], bl
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x64], edi
mov eax, dword [esp + 0x68]
sub edi, eax
cmp edi, 0xc
jle 0x59ca98
test esi, esi
je 0x59ca66
mov dword [esp + 0x38], edi
movzx edi, byte [esp + 0x2b]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x59c71f
mov dword [esp + 0x60], esi
mov esi, dword [ecx + 8]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x64]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x18], edi
call fcn.0059d9e0
mov eax, dword [esp + 0x60]
lea esi, [eax - 1]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x5c], esi
mov edi, dword [ecx + 0xc]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x64]
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x18], esi
call fcn.0059d5f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp eax, 2
je 0x59c775
movzx ebx, byte [esp + 0x2b]
test bl, bl
mov edx, ebx
mov ebx, dword [esp + 0x64]
mov ebp, eax
mov eax, ecx
mov ecx, dword [esp + 0x68]
jmp 0x59c7dc
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x64]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x18], edi
call fcn.0059d530
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
sub eax, ecx
mov edx, dword [esp + 0x64]
mov ebx, edx
sub edx, eax
lea eax, [edx - 1]
movzx edx, byte [esp + 0x2b]
test dl, dl
mov ebp, 1
mov dword [esp + 0x58], eax
je 0x59c851
movzx esi, byte [esp + 0x2a]
xchg esi, eax
test al, al
xchg esi, eax
je 0x59c856
cmp ebp, 1
jne 0x59c856
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 0x14]
mov dword [esp], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ebp, dword [esp + 0x78]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x7c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x18], edi
call fcn.0059d1a0
movzx eax, byte [esp + 0x1c]
test al, al
jne 0x59ca62
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x68]
movzx edx, byte [esp + 0x2b]
mov ebx, dword [esp + 0x64]
movzx esi, byte [esp + 0x2a]
jmp 0x59c856
movzx esi, byte [esp + 0x2a]
test ecx, ecx
jg 0x59c85e
xor ebp, ebp
jmp 0x59c8d1
mov edx, dword [esp + 0x8c]
mov ebx, dword [edx]
mov dword [esp + 0x54], ebx
lea ebp, [ecx + ecx*2]
mov esi, dword [esp + 0x74]
mov edi, dword [esi + ebp*4 - 0xc]
mov ecx, dword [esi + ebp*4 - 8]
mov ebp, dword [esi + ebp*4 - 4]
lea eax, [eax + eax*2]
mov edx, dword [esi + eax*4]
mov ebx, dword [esi + eax*4 + 4]
mov eax, dword [esi + eax*4 + 8]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x54]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
setge al
mov ecx, dword [esp + 0x68]
movzx edx, byte [esp + 0x2b]
mov ebx, dword [esp + 0x64]
movzx esi, byte [esp + 0x2a]
mov ebp, eax
mov eax, dword [esp + 0x58]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x59c92c
mov edx, dword [esp + 0x70]
mov ebp, dword [edx + 0x18]
mov dword [esp], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x78]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
call fcn.0059cf60
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
movzx ecx, byte [esp + 0x2b]
movzx ebx, byte [esp + 0x2a]
jmp 0x59c677
mov edx, dword [esp + 0x70]
mov ebp, dword [edx + 0x1c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x78]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
call fcn.0059cae0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x68]
mov edx, eax
sub eax, ecx
mov ebx, dword [esp + 0x64]
mov ebp, ebx
sub ebx, edx
movzx esi, byte [esp + 0x24]
xchg esi, eax
mov byte [esp + 0x2a], al
xchg esi, eax
mov edi, dword [esp + 0x38]
sar edi, 3
mov dword [esp + 0x40], edi
cmp ebx, eax
jle 0x59c9fa
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
mov ebx, dword [eax + 0x20]
mov dword [esp], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x78]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x7c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x1c], edi
call fcn.0059c610
mov eax, dword [esp + 0x34]
inc eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
cmp ecx, edx
setle cl
mov edx, dword [esp + 0x64]
jmp 0x59ca58
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x20]
mov dword [esp], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
mov esi, dword [esp + 0x7c]
mov dword [esp + 0xc], esi
lea edi, [edx + 1]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x1c], edi
call fcn.0059c610
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
setle cl
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
movzx ebx, byte [esp + 0x2a]
jmp 0x59c677
add esp, 0x6c
ret
mov ecx, dword [ecx + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
call fcn.0059db20
add esp, 0x6c
ret
mov ecx, dword [ecx]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
call fcn.0059de50
add esp, 0x6c
ret
call fcn.00475ee0
jmp fcn.0059c610