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

Disassembly:
mov ecx, dword [0x9aee30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x659ae0
sub esp, 0x50
mov eax, 0
mov dword [esp + 0x4c], eax
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x78]
test ecx, ecx
jg 0x6597e4
add esp, 0x50
ret
lea ecx, [eax + 0x38]
mov dword [esp + 0x40], ecx
mov dword [esp], ecx
call fcn.00489310
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea eax, [0x659b40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x4c], eax
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x40]
lea edx, [0x694e40]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.0040e0a0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x659abe
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x44]
lea edx, [0x694d80]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.0040e0a0
mov esi, dword [esp + 0xc]
lea edi, [esp + 0x20]
call fcn.0046cffa
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x34]
test eax, eax
jg 0x6598fc
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x6598bf
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x40]
lea ecx, [0x694e40]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
call fcn.0040eb00
jmp 0x6598eb
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x40]
lea ecx, [0x694e40]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
call fcn.0040e630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
dec ecx
mov dword [eax], ecx
mov byte [esp + 0x13], 0
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
call eax
add esp, 0x50
ret
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov ebp, edx
sub edx, ebx
mov esi, dword [esp + 0x34]
add edx, esi
mov dword [esp + 0x14], edx
test edx, edx
jle 0x659a07
cmp ebp, ebx
jg 0x65995a
test esi, esi
jne 0x659926
xor ebp, ebp
jmp 0x659990
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jbe 0x659ab9
mov ecx, dword [esp + 0x20]
mov ebx, dword [0x9aef70]
mov ebp, dword [ecx + eax*4]
test ebx, ebx
je 0x659985
mov ebx, dword [ecx + eax*4]
call fcn.0046c890
mov dword [edi], ebx
mov dword [ecx + eax*4], 0
inc dword [esp + 0x2c]
mov dword [esp + 0x1c], ebp
mov eax, dword [ebp + 0x34]
nop
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00406ef0
movzx eax, byte [esp + 8]
test al, al
jne 0x6598fc
lea eax, [0x6a32c0]
mov dword [esp], eax
call fcn.0040d2a0
mov eax, dword [esp + 4]
lea ecx, [0x659af0]
mov dword [eax], ecx
mov ecx, dword [0x9aef70]
test ecx, ecx
jne 0x6599e3
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
jmp 0x6599f5
call fcn.0046c8a0
mov ecx, dword [esp + 0x54]
mov dword [edi], ecx
mov edx, dword [esp + 0x1c]
mov dword [edi + 4], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [esp], eax
call fcn.004462e0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x34]
test eax, eax
jne 0x659a40
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x44]
lea edx, [0x694d80]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.0040eb00
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x659aa2
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x44]
lea edx, [0x694d80]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.0040e630
mov edi, dword [esp + 0xc]
test byte [edi], al
mov eax, dword [0x9aef70]
test eax, eax
je 0x659a93
mov dword [esp + 0x3c], edi
lea eax, [0x6a9d80]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
call fcn.00412800
mov edi, dword [esp + 0x3c]
lea esi, [esp + 0x20]
call fcn.0046cffa
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x659893
mov byte [esp + 0x13], 0
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
call eax
add esp, 0x50
ret
call fcn.0046c910
lea eax, [0x6929c0]
mov dword [esp], eax
lea eax, [0x748730]
mov dword [esp + 4], eax
call fcn.00439660
nop
call fcn.00439380
add esp, 0x50
ret
call fcn.0046b490
jmp fcn.006597b0