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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5c9c5d
sub esp, 0x60
nop
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
lea edx, [0x835f6c]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0
call fcn.004d0f60
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x5c9c13
xor eax, eax
xor ecx, ecx
nop
cmp ecx, 1
jge 0x5c9bdf
xor edx, edx
test dl, dl
je 0x5c9ba8
cmp ecx, 1
jb 0x5c9c4f
dec ecx
mov dword [esp + 0x2c], ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
add eax, ecx
mov dword [esp + 0x4c], eax
nop
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [0x835f6c]
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 0
call fcn.004d0f60
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x5c9b84
xor eax, eax
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005c9410
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 8]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.004d0ba0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
je 0x5c9b4d
mov dword [esp + 0x38], eax
mov dword [esp + 0x5c], ecx
nop
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
lea edx, [0x835f6c]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0
call fcn.004d0f60
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x5c9b28
xor eax, eax
xor ecx, ecx
nop
cmp eax, 1
jge 0x5c9af4
xor edx, edx
test dl, dl
je 0x5c9abd
cmp eax, 1
jb 0x5c9c3a
dec eax
mov dword [esp + 0x1c], eax
mov edx, eax
neg eax
sar eax, 0x1f
and eax, 1
add eax, ecx
mov dword [esp + 0x50], eax
nop
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [0x835f6c]
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 0
call fcn.004d0f60
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x5c9a98
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005c94f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x5c9a91
mov ebp, dword [esp + 0x18]
cmp ebp, eax
je 0x5c9a53
xor ebp, ebp
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5c9a2c
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
add esp, 0x60
ret
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x6c], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], eax
add esp, 0x60
ret
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ebx
mov dword [esp], ebx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00402010
movzx ebp, byte [esp + 0xc]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
jmp 0x5c99ef
xor ebp, ebp
jmp 0x5c99ef
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
ja 0x5c9c33
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ebx, dword [esp + 0x50]
lea ecx, [ebx + eax]
mov eax, edx
jmp 0x5c99b9
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
add esp, 0x60
ret
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], ecx
mov dword [esp], ecx
lea eax, [0x81415a]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.00402010
movzx edx, byte [esp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
jmp 0x5c9966
mov ecx, dword [esp + 0x28]
cmp eax, ecx
ja 0x5c9c41
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ebx, dword [esp + 0x44]
lea ecx, [eax + ebx]
mov eax, edx
jmp 0x5c995a
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
add esp, 0x60
ret
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
ja 0x5c9c48
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ebx, dword [esp + 0x4c]
add eax, ebx
mov ecx, edx
jmp 0x5c98dd
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
add esp, 0x60
ret
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ecx
mov dword [esp], eax
lea ecx, [0x814158]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
call fcn.00402010
movzx edx, byte [esp + 0xc]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
jmp 0x5c988a
mov ecx, dword [esp + 0x68]
cmp eax, ecx
ja 0x5c9c56
sub ecx, eax
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ebp, dword [esp + 0x64]
add eax, ebp
mov ecx, ebx
jmp 0x5c987e
call fcn.004288c0
ud2
call fcn.004288c0
ud2
call fcn.004288c0
ud2
call fcn.004288c0
ud2
call fcn.004288c0
ud2
call fcn.004288c0
ud2
call fcn.0044d880
jmp fcn.005c9830