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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x666c73
sub esp, 0xac
mov eax, 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.0044cad4
lea ecx, [0x73e960]
mov dword [esp], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 8], ecx
call fcn.0040b870
jmp 0x6668c7
lea eax, [esp + 0x7c]
mov dword [esp], eax
call fcn.0040baf0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x666bd4
mov ecx, dword [esp + 0x80]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov eax, dword [eax]
mov dword [esp + 0x40], eax
mov ebx, dword [ecx + 4]
mov dword [esp + 0x34], ebx
mov ecx, dword [ecx]
mov dword [esp + 0x24], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00666e10
movzx eax, byte [esp + 8]
test al, al
je 0x666b48
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x666b3d
movzx edx, byte [0xa7d7a8]
test dl, dl
je 0x666b34
mov dword [0xa7d7ac], ecx
mov edx, dword [0xa8f2d0]
test edx, edx
jne 0x666b20
mov eax, dword [esp + 0x34]
mov dword [0xa7d7b0], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x666b15
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x66696e
or edx, 0x80
mov ebx, edx
and edx, 0x1f
cmp edx, 0x13
jne 0x666be9
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.004a8370
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00666d50
movzx eax, byte [esp + 8]
test al, al
je 0x666a1f
lea eax, [0x734fc0]
mov dword [esp], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call fcn.0040ed50
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov dword [edi + 8], eax
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x666a05
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], eax
jmp 0x6668bb
mov eax, dword [esp + 0x38]
call fcn.0044c9e0
add edi, 4
mov eax, dword [esp + 0x3c]
call fcn.0044c9e0
jmp 0x6668bb
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.004a8370
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x70]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x730dc0]
mov dword [esp], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 4], ecx
call fcn.00407570
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
lea eax, [0x730440]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.00407490
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
lea eax, [0x7a65b9]
mov dword [esp], eax
mov dword [esp + 4], 0x30
lea eax, [esp + 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004b5080
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x666bdb
mov ecx, dword [ecx + 4]
jmp 0x666bdb
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x66696e
lea edi, [0xa7d7b0]
mov eax, dword [esp + 0x34]
call fcn.0044c9e0
jmp 0x666946
mov eax, dword [esp + 0x34]
jmp 0x666946
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x66696e
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x730dc0]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.00407570
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
lea eax, [0x7a45b6]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b5080
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x666c65
mov ecx, dword [ecx + 4]
jmp 0x666c65
add esp, 0xac
ret
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004275c0
ud2
mov dword [esp], 0
lea eax, [0x79495a]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [0x7969d0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0xf
call fcn.0043bd40
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x730dc0]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.00407570
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004275c0
ud2
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004275c0
ud2
call fcn.0044b280
jmp fcn.00666860