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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x666a25
sub esp, 0x48
mov ecx, dword [esp + 0x4c]
movzx edx, byte [ecx + 0x61]
test dl, dl
jne 0x666724
mov edx, dword [ecx + 0x70]
mov ebx, dword [ecx + 0x78]
mov ebp, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x18]
test ebp, ebp
jne 0x6666c1
mov esi, dword [0x7076f8]
mov ebp, dword [0x7076fc]
cmp ebp, 1
jne 0x666713
cmp byte [esi], 0x2a
jne 0x666713
cmp ebx, 1
jae 0x666706
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov byte [edx], 0x2a
mov edi, 1
jmp 0x666a1a
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], esi
xor eax, eax
xor edi, edi
jmp 0x666929
mov eax, dword [ecx + 0x78]
mov edx, dword [ecx + 0x70]
nop
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx]
cmp ebx, eax
ja 0x666738
mov esi, ebx
jmp 0x666772
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], ebx
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00457450
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x4c]
movzx ebp, byte [ebx + 0x60]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x66681f
mov ebp, dword [ebx + 0x4c]
test ebp, ebp
je 0x66681f
inc edx
cmp eax, edx
jae 0x6667e6
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x4c]
mov byte [edx + ecx - 1], 0x3f
lea ebp, [ebx + 0x48]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call fcn.006485f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c]
mov ebp, ecx
mov ecx, eax
mov eax, edx
mov edx, ebp
jmp 0x6668e3
mov ebp, dword [ebx + 0x28]
test ebp, ebp
je 0x6668e3
inc edx
cmp eax, edx
jae 0x666861
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x4c]
mov byte [edx + ecx - 1], 0x3f
mov ebp, dword [ebx + 0x28]
mov esi, dword [ebx + 0x24]
lea edi, [edx + ebp]
cmp eax, edi
jae 0x6668b5
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], edx
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], ecx
add edx, ecx
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.00457450
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x74], edx
mov dword [ebx + 0x78], eax
mov ebp, dword [0x901e80]
test ebp, ebp
jne 0x6668f8
mov dword [ebx + 0x70], ecx
jmp 0x666906
lea edi, [ebx + 0x70]
mov ebx, eax
mov eax, ecx
call fcn.00456ac0
mov eax, ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
add esp, 0x48
ret
inc eax
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
mov edi, esi
mov esi, dword [esp + 0x3c]
cmp eax, ebp
jge 0x666a1a
mov dword [esp + 0x34], eax
movzx ecx, byte [esi + eax]
movzx esi, cl
lea ebp, [0x77cd7e]
movzx esi, byte [ebp + esi]
xchg esi, eax
test al, al
xchg esi, eax
je 0x6669c9
lea esi, [edi + 3]
mov edi, ecx
shr cl, 4
movzx ecx, cl
lea ebp, [0x76c8a0]
movzx ecx, byte [ebp + ecx]
and edi, 0xf
movzx ebp, byte [ebp + edi]
cmp ebx, esi
jae 0x6669b5
mov byte [esp + 0x23], cl
xchg ebp, eax
mov byte [esp + 0x22], al
xchg ebp, eax
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
movzx ecx, byte [esp + 0x23]
movzx ebp, byte [esp + 0x22]
mov byte [esi + edx - 3], 0x25
mov byte [esi + edx - 2], cl
xchg ebp, eax
mov byte [esi + edx - 1], al
xchg ebp, eax
jmp 0x666916
lea esi, [edi + 1]
cmp ebx, esi
jae 0x666a11
mov byte [esp + 0x21], cl
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
movzx ecx, byte [esp + 0x21]
lea ebp, [0x77cd7e]
mov byte [esi + edx - 1], cl
jmp 0x666916
mov eax, ebx
mov ecx, edx
mov edx, edi
jmp 0x66679a
call fcn.00455690
jmp fcn.00666680