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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59edee
sub esp, 0x48
movzx eax, byte [esp + 0x4c]
cmp al, 0xe2
ja 0x59eb8d
cmp al, 0xe1
jne 0x59ea84
mov eax, dword [esp + 0x50]
lea ecx, [0x68a100]
cmp eax, ecx
jne 0x59ea22
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
call fcn.005506d0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
je 0x59ed12
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x48
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
lea eax, [0x6c45aa]
mov dword [esp], eax
mov dword [esp + 4], 0x22
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00511cc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
cmp al, 0xe2
jne 0x59edbb
mov eax, dword [esp + 0x50]
lea ecx, [0x68a100]
cmp eax, ecx
jne 0x59eb2b
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x20], eax
call fcn.00550e10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
test eax, eax
je 0x59ed12
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x48
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
lea eax, [0x6c45aa]
mov dword [esp], eax
mov dword [esp + 4], 0x22
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00511cc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
cmp al, 0xe3
jne 0x59ec82
mov eax, dword [esp + 0x50]
lea ecx, [0x6a5300]
cmp eax, ecx
jne 0x59ec20
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
call fcn.00545fd0
movzx eax, byte [esp + 0x1c]
test al, al
jne 0x59ed12
lea eax, [0x687ca0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1a
lea ecx, [0x6c0345]
mov dword [eax], ecx
lea ecx, [0x895524]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x48
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
lea eax, [0x6c5394]
mov dword [esp], eax
mov dword [esp + 4], 0x24
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00511cc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
cmp al, 0xe4
jne 0x59edbb
mov eax, dword [esp + 0x50]
lea ecx, [0x6856e0]
cmp eax, ecx
jne 0x59ed59
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.0054fe10
movzx eax, byte [esp + 0x34]
test al, al
je 0x59ed26
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x48
ret
lea eax, [0x687ca0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x6c1498]
mov dword [eax], ecx
lea ecx, [0x895524]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x48
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
lea eax, [0x6c6039]
mov dword [esp], eax
mov dword [esp + 4], 0x26
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00511cc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
lea eax, [0x687ca0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x26
lea ecx, [0x6c60f7]
mov dword [eax], ecx
lea ecx, [0x895524]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x48
ret
call fcn.0045e260
jmp fcn.0059e980