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

Disassembly:
sub esp, 0x278
mov ecx, 3
mov eax, 6
mov dword [esp + 0x90], ecx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0xb8], ecx
lea ecx, [esp + 0x8c]
push ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xdc], eax
push ebp
mov eax, 0xa
mov dword [esp + 0x28], ecx
push esi
lea ecx, [esp + 0xf4]
push edi
mov ebp, 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov edi, 1
lea edx, [esp + 0x7c]
lea eax, [esp + 0xc4]
push ecx
push ebp
mov dword [esp + 0xa4], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xc4], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], edi
mov dword [esp + 0x4c], 8
mov dword [esp + 0x50], edx
mov dword [esp + 0x30], eax
call fcn.00679766
test eax, eax
jne 0x6642c2
push 0x6476b8
call dword [fcn.0064b024]
mov ebx, eax
cmp ebx, 0x20
mov dword [esp + 0x18], ebx
jb 0x6642c2
mov esi, dword [fcn.0064b17c]
push 0x6476a4
push ebx
call esi
push 0x647690
push ebx
mov dword [esp + 0x3c], eax
call esi
push 0x64767c
push ebx
call esi
push 0x647668
push ebx
mov dword [esp + 0x48], eax
call esi
push 0x64765c
call dword [fcn.0064b024]
cmp eax, 0x20
mov dword [esp + 0x10], eax
jae 0x664106
push ebx
call dword [fcn.0064b0ec]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x278
ret
push 0x64764c
push eax
call esi
mov edx, dword [esp + 0x10]
push 0x64763c
push edx
mov ebx, eax
call esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push 0x647628
push eax
call esi
lea ecx, [esp + 0xf0]
lea edx, [esp + 0xec]
push ecx
push edx
mov esi, eax
call dword [fcn.0064b03c]
push eax
call dword [esp + 0x40]
xor ecx, ecx
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x4c]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x28], edi
call ebx
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push 0xa1
call edi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x28], ebp
call ebx
lea edx, [esp + 0x24]
lea eax, [esp + 0x64]
push edx
push eax
call ebx
mov bl, 0x54
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push 0xa1
call edi
test eax, eax
je 0x6642a0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call dword [esp + 0x20]
test eax, eax
jne 0x6642a0
cmp dword [esp + 0x58], 6
jne 0x6641ad
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
call dword [esp + 0x20]
test eax, eax
jne 0x6642a0
mov eax, dword [esp + 0x70]
test eax, eax
je 0x6641ad
mov cl, byte [eax]
cmp cl, 0x44
jne 0x664233
cmp byte [eax + 1], 0x45
jne 0x664233
cmp byte [eax + 2], 0x53
jne 0x664233
cmp byte [eax + 3], bl
jne 0x664233
mov dl, byte [eax + 4]
test dl, dl
je 0x6641ad
test cl, cl
jne 0x66425e
mov cl, byte [eax + 1]
test cl, cl
jne 0x66425e
mov cl, byte [eax + 2]
test cl, cl
jne 0x66425e
mov cl, byte [eax + 3]
test cl, cl
jne 0x66425e
mov cl, byte [eax + 4]
test cl, cl
jne 0x66425e
mov cl, byte [eax + 5]
test cl, cl
je 0x6641ad
mov ecx, dword [esp + 0x28c]
mov edx, dword [eax]
mov dword [ecx], edx
mov ax, word [eax + 4]
mov word [ecx + 4], ax
lea ecx, [esp + 0x4c]
push ecx
call esi
lea edx, [esp + 0x64]
push edx
call esi
mov eax, dword [esp + 0x18]
mov esi, dword [fcn.0064b0ec]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x278
ret
lea edx, [esp + 0x4c]
push edx
call esi
lea eax, [esp + 0x64]
push eax
call esi
mov ecx, dword [esp + 0x18]
mov esi, dword [fcn.0064b0ec]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x278
ret