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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x660881
sub esp, 0x6c
lea eax, [0x7d1f60]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
lea eax, [0x7e1f39]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 6
call fcn.0040fc40
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test ecx, ecx
je 0x660844
mov dword [esp + 0x30], ecx
mov dword [esp + 0x58], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [0x7e03da]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
call fcn.004e1440
mov eax, dword [esp + 0x10]
lea ecx, [0x7923e0]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov edx, dword [esp + 0x30]
add eax, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 8], eax
call fcn.004430a0
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, dword [esp + 0x3c]
xor ebx, ebx
jmp 0x6607e5
mov ebx, eax
mov ebp, edx
mov eax, dword [esp + 0x5c]
mov edx, ecx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jle 0x6607d6
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x40], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x7e03da]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call fcn.004e3f90
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x6607c5
mov edx, dword [esp + 0x28]
cmp edx, ecx
jb 0x66087b
lea eax, [ecx + 1]
cmp edx, eax
jb 0x660874
sub edx, eax
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, eax
mov eax, dword [esp + 0x54]
add edx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x5c], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00634bc0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x660563
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x68]
jmp 0x6604b6
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x7e03dc]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call fcn.004e3f90
mov ecx, dword [esp + 0x10]
test ecx, ecx
jl 0x6607b4
mov edx, dword [esp + 0x2c]
cmp ecx, edx
ja 0x66086f
lea eax, [ecx + 1]
cmp eax, edx
ja 0x660868
sub edx, eax
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, eax
mov eax, dword [esp + 0x50]
add edx, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebx
test ecx, ecx
jne 0x660777
xor ebp, ebp
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x660766
mov ebp, dword [esp + 0x78]
test ebp, ebp
je 0x66075f
cmp ecx, ebp
je 0x66072a
mov esi, 1
xchg esi, eax
test al, al
xchg esi, eax
je 0x66060d
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x68]
jmp 0x6604b6
mov dword [esp], edx
mov dword [esp + 4], ebx
mov byte [esp + 8], 1
call fcn.00660e80
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x660640
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x68]
jmp 0x6604b6
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
lea eax, [0x7cb720]
mov dword [esp], eax
call fcn.0040b570
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [0xa8c6b0]
test ecx, ecx
jne 0x660718
mov ecx, dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xa8c6b0]
test ecx, ecx
jne 0x660703
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x40]
cmp ebx, edx
jb 0x6606c4
mov ebp, dword [esp + 0x68]
mov esi, dword [0xa8c6b0]
lea edi, [ebp + ecx*4]
test esi, esi
jne 0x6606bd
mov dword [ebp + ecx*4], eax
mov eax, ebx
mov ecx, edx
mov edx, ebp
jmp 0x6604b6
call fcn.0045c330
jmp 0x6606b2
mov dword [esp + 0x64], eax
lea eax, [0x7923e0]
mov dword [esp], eax
mov ebp, dword [esp + 0x68]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.004431f0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x44]
jmp 0x6606a0
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045c330
mov eax, ecx
jmp 0x66068d
mov edi, eax
mov eax, dword [esp + 0x50]
call fcn.0045c330
mov eax, edi
jmp 0x660675
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00402950
movzx esi, byte [esp + 0xc]
xor esi, 1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x78]
jmp 0x6605f6
xor esi, esi
jmp 0x6605f6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x68]
jmp 0x6604b6
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x80a1c8]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004e3380
mov eax, dword [esp + 0x10]
test eax, eax
xchg ebp, ebx
setl bl
xchg ebp, ebx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x20]
jmp 0x6605d3
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
xor edx, edx
jmp 0x6605bd
mov eax, dword [esp + 0x54]
xor ebx, ebx
xor edx, edx
mov ecx, dword [esp + 0x28]
jmp 0x660532
mov esi, dword [esp + 0x48]
lea ecx, [esi + 1]
mov eax, ebp
mov esi, edx
mov edx, ebx
mov ebx, esi
mov ebp, dword [esp + 0x30]
cmp ecx, ebp
jge 0x66082e
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x58]
lea edx, [eax + ecx*8]
mov ebx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.00634bc0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x60]
jmp 0x6604c4
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], edx
add esp, 0x6c
ret
lea eax, [0xa8c444]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
mov ecx, edx
call fcn.0045c410
call fcn.0045c3d0
mov ecx, edx
call fcn.0045c410
call fcn.0045c3d0
nop
call fcn.0045ade0
jmp fcn.00660400