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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x591296
sub esp, 0x60
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
lea edx, [0x6566dc]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0
call fcn.004bf190
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x590ee3
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
xor ebx, ebx
xor eax, eax
jmp 0x590f02
mov ecx, dword [esp + 0x68]
cmp ecx, eax
jb 0x591290
mov edx, ecx
sub ecx, eax
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x64]
add eax, ecx
cmp ebx, 1
jl 0x59123e
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], eax
mov dword [esp], eax
lea ecx, [0x63c331]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
call fcn.00402800
movzx eax, byte [esp + 0xc]
test al, al
je 0x591236
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jb 0x591286
lea eax, [ecx - 1]
mov dword [esp + 0x28], eax
mov edx, eax
neg eax
sar eax, 0x1f
and eax, 1
mov ebx, dword [esp + 0x3c]
add eax, ebx
mov dword [esp + 0x50], eax
mov dword [esp], eax
mov dword [esp + 4], edx
lea ebx, [0x6566dc]
mov dword [esp + 8], ebx
mov byte [esp + 0xc], 0
call fcn.004bf190
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x590f8c
xor edx, edx
xor eax, eax
jmp 0x590fae
mov ecx, dword [esp + 0x28]
cmp eax, ecx
ja 0x591281
mov ecx, dword [esp + 0x18]
sub ecx, eax
dec ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x50]
add eax, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00590a90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x4c], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004bede0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x5911ff
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
lea edx, [0x6566dc]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0
call fcn.004bf190
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x591028
xor edx, edx
xor eax, eax
jmp 0x591045
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
ja 0x59127c
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x4c]
add eax, ecx
cmp edx, 1
jl 0x5911c8
mov dword [esp + 0x20], edx
mov dword [esp + 0x40], eax
mov dword [esp], eax
lea ecx, [0x63c333]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
call fcn.00402800
movzx eax, byte [esp + 0xc]
test al, al
je 0x5911c8
mov ecx, dword [esp + 0x20]
cmp ecx, 1
jb 0x591272
lea eax, [ecx - 1]
mov dword [esp + 0x24], eax
mov edx, eax
neg eax
sar eax, 0x1f
and eax, 1
mov ebx, dword [esp + 0x40]
add eax, ebx
mov dword [esp + 0x48], eax
mov dword [esp], eax
mov dword [esp + 4], edx
lea ebx, [0x6566dc]
mov dword [esp + 8], ebx
mov byte [esp + 0xc], 0
call fcn.004bf190
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x5910cf
xor edx, edx
xor eax, eax
jmp 0x5910f1
mov ecx, dword [esp + 0x24]
cmp eax, ecx
ja 0x59126d
mov ecx, dword [esp + 0x20]
sub ecx, eax
dec ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x44], eax
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00590b60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x5911a1
mov ebp, dword [esp + 0x1c]
cmp ebp, ebx
je 0x591129
xor ebp, ebp
jmp 0x591164
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x58], edx
mov dword [esp], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00402800
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x30]
mov ebp, eax
mov eax, dword [esp + 0x34]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5911a1
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], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ebx
add esp, 0x60
ret
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 + 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 + 0x64]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
add esp, 0x60
ret
call fcn.0045e6b0
mov eax, 1
call fcn.0045e6b0
call fcn.0045e6b0
call fcn.0045e6b0
mov eax, 1
call fcn.0045e6b0
call fcn.0045e6b0
nop
call fcn.0045d190
jmp fcn.00590e90