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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x666a45
sub esp, 0x48
mov ecx, dword [esp + 0x4c]
movzx edx, byte [ecx + 0x61]
test dl, dl
jne 0x666744
mov edx, dword [ecx + 0x70]
mov ebx, dword [ecx + 0x78]
mov ebp, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x18]
test ebp, ebp
jne 0x6666e1
mov esi, dword [0x7077d8]
mov ebp, dword [0x7077dc]
cmp ebp, 1
jne 0x666733
cmp byte [esi], 0x2a
jne 0x666733
cmp ebx, 1
jae 0x666726
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
lea eax, [0x7347e0]
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 0x666a3a
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], esi
xor eax, eax
xor edi, edi
jmp 0x666949
mov eax, dword [ecx + 0x78]
mov edx, dword [ecx + 0x70]
nop
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx]
cmp ebx, eax
ja 0x666758
mov esi, ebx
jmp 0x666792
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, [0x7347e0]
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 + 0x28], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], eax
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00457450
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x4c]
movzx ebp, byte [ebx + 0x60]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x66683f
mov ebp, dword [ebx + 0x4c]
test ebp, ebp
je 0x66683f
inc edx
cmp eax, edx
jae 0x666806
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x7347e0]
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.00648630
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 0x666903
mov ebp, dword [ebx + 0x28]
test ebp, ebp
je 0x666903
inc edx
cmp eax, edx
jae 0x666881
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x7347e0]
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 0x6668d5
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x28], edx
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
lea eax, [0x7347e0]
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 + 0x28]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], 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 + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0x74], edx
mov dword [ebx + 0x78], eax
mov ebp, dword [0x900e70]
test ebp, ebp
jne 0x666918
mov dword [ebx + 0x70], ecx
jmp 0x666926
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 + 0x40]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
mov edi, esi
mov esi, dword [esp + 0x40]
cmp eax, ebp
jge 0x666a3a
mov dword [esp + 0x34], eax
movzx ecx, byte [esi + eax]
movzx esi, cl
lea ebp, [0x77cade]
movzx esi, byte [ebp + esi]
xchg esi, eax
test al, al
xchg esi, eax
je 0x6669e9
lea esi, [edi + 3]
mov edi, ecx
shr cl, 4
movzx ecx, cl
lea ebp, [0x76c600]
movzx ecx, byte [ebp + ecx]
and edi, 0xf
movzx ebp, byte [ebp + edi]
cmp ebx, esi
jae 0x6669d5
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, [0x7347e0]
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 0x666936
lea esi, [edi + 1]
cmp ebx, esi
jae 0x666a31
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, [0x7347e0]
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, [0x77cade]
mov byte [esi + edx - 1], cl
jmp 0x666936
mov eax, ebx
mov ecx, edx
mov edx, edi
jmp 0x6667ba
call fcn.00455690
jmp fcn.006666a0