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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59a4ac
sub esp, 0x5c
lea edi, [esp + 0x80]
xor eax, eax
call fcn.0045e1f3
lea edi, [esp + 0x28]
call fcn.0045e1f3
lea edi, [esp + 0x28]
lea esi, [esp + 0x60]
call fcn.0045e6c0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
mov eax, ebp
mov ebp, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
call fcn.00587f00
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
lea edx, [0x5cf3a0]
mov dword [esp], edx
call fcn.0040b8e0
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
lea ecx, [0x639e8c]
mov edx, dword [esp + 0x18]
mov dword [edx + 0x30], ecx
mov ebx, dword [0x770e60]
test ebx, ebx
jne 0x59a494
mov dword [edx + 0x34], eax
lea eax, [0x5cf3a0]
mov dword [esp], eax
call fcn.0040b8e0
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
lea ecx, [0x639e8c]
mov edx, dword [esp + 0x18]
mov dword [edx + 0x38], ecx
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x59a487
mov dword [edx + 0x3c], eax
lea eax, [0x5d9f00]
mov dword [esp], eax
call fcn.0040b8e0
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 0x7c]
mov byte [eax], cl
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x59a476
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x4c], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
test edx, edx
je 0x59a2f9
mov dword [ecx + 0x24], edx
mov edx, dword [0x770e60]
test edx, edx
jne 0x59a469
mov dword [ecx + 0x20], eax
mov dword [esp], ecx
call fcn.00588ef0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x59a43f
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00589830
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x54]
nop
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x59a42f
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp eax, ecx
ja 0x59a4a6
mov dword [esp], 0
sub ebx, eax
neg ebx
sar ebx, 0x1f
and ebx, eax
add edx, ebx
mov dword [esp + 4], edx
sub ecx, eax
mov dword [esp + 8], ecx
call fcn.00448580
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004c95a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x59a422
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp ecx, eax
jb 0x59a4a1
mov dword [esp], 0
sub ebx, eax
neg ebx
sar ebx, 0x1f
and ebx, eax
add edx, ebx
mov dword [esp + 4], edx
sub ecx, eax
mov dword [esp + 8], ecx
call fcn.00448580
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004c95a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
lea edi, [esp + 0x80]
lea esi, [esp + 0x28]
call fcn.0045e68e
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
add esp, 0x5c
ret
mov ecx, 5
lea eax, [0x5eb923]
jmp 0x59a3dc
mov ecx, 5
lea eax, [0x5eb923]
jmp 0x59a378
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x80]
lea esi, [esp + 0x28]
call fcn.0045e68e
mov eax, dword [esp + 0x24]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], edx
add esp, 0x5c
ret
lea edi, [ecx + 0x20]
call fcn.0045df70
jmp 0x59a2f9
mov ecx, dword [esp + 0x18]
lea edi, [ecx + 0x4c]
call fcn.0045df70
jmp 0x59a2d9
lea edi, [edx + 0x3c]
call fcn.0045df70
jmp 0x59a2ab
lea edi, [edx + 0x34]
call fcn.0045df70
jmp 0x59a277
call fcn.0045e050
call fcn.0045e050
nop
call fcn.0045ca10
jmp fcn.0059a1d0