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

Disassembly:
sub esp, 0x5a8
push ebp
mov ebp, ecx
xor eax, eax
mov dword [esp + 8], ebp
cmp dword [ebp + 0x14], eax
je 0x66eac0
mov eax, 0x40000
jmp 0x66f0c1
cmp byte [ebp + 0x2c], al
je 0x66eacf
mov eax, 0x50000
jmp 0x66f0c1
push ebx
mov ebx, dword [esp + 0x5c0]
mov dword [esp + 0x28], eax
cmp dword [ebp], eax
je 0x66eaed
cmp ebx, 4
je 0x66eaed
mov dword [esp + 0x28], 0xc
mov ecx, dword [esp + 0x5b4]
lea edx, [esp + 0x3a8]
push edi
push 2
sub edx, ecx
pop edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, edi
test ax, ax
jne 0x66eb01
mov ax, word [esp + 0x3ac]
push esi
test ax, ax
je 0x66f0b9
push 0x2f
lea ecx, [esp + 0x3b4]
movzx edx, ax
pop ebp
cmp dx, 0x5c
jne 0x66eb37
mov word [ecx], bp
add ecx, edi
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x66eb2e
mov ebp, dword [esp + 0x14]
cmp ebx, 4
jne 0x66eb7a
lea ecx, [esp + 0x3b0]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x66eb58
sub ecx, edx
sar ecx, 1
push 0x2f
pop eax
cmp word [esp + ecx*2 + 0x3ae], ax
je 0x66eb7a
mov byte [esp + 0x13], 1
jmp 0x66eb9d
push 8
xor eax, eax
mov byte [esp + 0x17], al
pop esi
mov dword [esp + 0x2c], esi
cmp ebx, 4
je 0x66eb9f
lea eax, [esp + 0x3b0]
push eax
call fcn.0066f5e8
test al, al
je 0x66eba5
xor eax, eax
mov esi, eax
mov dword [esp + 0x2c], esi
cmp ebx, edi
jne 0x66ebb9
push dword [esp + 0x5c0]
mov ecx, ebp
call fcn.00671247
jmp 0x66ec01
cmp ebx, 1
jne 0x66ebd5
push dword [esp + 0x5c4]
mov ecx, ebp
push dword [esp + 0x5c4]
call fcn.006712c6
jmp 0x66ec01
cmp ebx, 3
jne 0x66ebf1
push dword [esp + 0x5c4]
mov ecx, ebp
push dword [esp + 0x5c4]
call fcn.006713ee
jmp 0x66ec01
cmp ebx, 4
jne 0x66f0b9
mov ecx, ebp
call fcn.006711a2
test eax, eax
jne 0x66f0be
xor ecx, ecx
lea eax, [esp + 0x198]
push ecx
push ecx
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x3c4]
mov dword [esp + 0x3c0], ecx
push eax
push ecx
push 0xfde9
mov byte [esp + 0xa8], cl
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea ecx, [esp + 0x198]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x66ec48
sub ecx, edx
mov dword [esp + 0x68], ecx
cmp byte [esp + 0x13], al
je 0x66ec78
lea edi, [esp + 0x198]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x66ec63
mov ax, word [0x77dfcc]
mov word [edi], ax
inc dword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x3a0], 1
mov word [esp + 0x7a], ax
xor edx, edx
mov eax, 0xb17
mov byte [esp + 0x29c], dl
push 0x14
mov word [esp + 0x54], ax
pop eax
mov word [esp + 0x52], ax
mov eax, dword [ebp + 0x68]
push 8
mov dword [esp + 0x5c], eax
pop eax
push 9
mov dword [esp + 0x198], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x3ac], edx
mov dword [esp + 0x60], edx
mov word [esp + 0x58], ax
pop edi
cmp dword [ebp], edx
je 0x66ecde
cmp ebx, 4
je 0x66ecde
mov eax, edi
mov word [esp + 0x54], ax
mov word [esp + 0x7c], ax
movzx eax, si
mov dword [esp + 0x14], eax
mov word [esp + 0x56], ax
lea eax, [ebp + 0x70]
test esi, esi
jne 0x66ed0c
mov ecx, dword [eax]
mov dword [esp + 0x34], eax
test ecx, ecx
js 0x66ed0c
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x60], eax
jmp 0x66ed16
mov ecx, dword [eax]
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], edx
xor eax, eax
mov ebx, dword [ebp + 0x58]
mov word [esp + 0x78], ax
lea esi, [esp + 0x18]
mov eax, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x5c]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x18]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18c], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x190], eax
mov al, byte [ebp + 0x58]
mov byte [esp + 0x1d], al
mov eax, edx
mov dword [esp + 0x64], ecx
mov ecx, ebx
shrd ecx, eax, 8
mov eax, edx
mov dword [esp + 0x70], edi
mov byte [esp + 0x1e], cl
lea edi, [esp + 0x44]
mov ecx, ebx
mov dword [esp + 0x18], 0xd5455
shrd ecx, eax, 0x10
mov al, byte [ebp + 0x50]
mov byte [esp + 0x21], al
mov byte [esp + 0x1f], cl
shrd ebx, edx, 0x18
mov edx, dword [ebp + 0x54]
mov eax, edx
mov byte [esp + 0x20], bl
mov ebx, dword [ebp + 0x50]
mov ecx, ebx
shrd ecx, eax, 8
mov eax, edx
mov byte [esp + 0x1c], 7
mov byte [esp + 0x22], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov al, byte [ebp + 0x60]
shrd ebx, edx, 0x18
mov edx, dword [ebp + 0x64]
mov byte [esp + 0x25], al
mov eax, edx
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], bl
mov ebx, dword [ebp + 0x60]
mov ecx, ebx
shrd ecx, eax, 8
mov eax, edx
mov dword [esp + 0x6c], 0x11
mov byte [esp + 0x26], cl
mov ecx, ebx
shrd ecx, eax, 0x10
shrd ebx, edx, 0x18
mov byte [esp + 0x27], cl
lea eax, [esp + 0x50]
mov byte [esp + 0x28], bl
movsd dword es:[edi], dword [esi]
push ebp
push 0x6722da
push eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x52], 5
call fcn.00671bc7
test eax, eax
je 0x66ee23
mov ecx, ebp
call fcn.00670cdb
mov eax, 0x400
jmp 0x66f0be
mov eax, dword [esp + 0x6c]
xor ebx, ebx
add eax, 0x1e
add eax, dword [esp + 0x68]
add dword [ebp + 0x18], eax
cmp dword [ebp + 0x14], ebx
je 0x66ee47
mov ecx, ebp
call fcn.00670cdb
mov eax, dword [ebp + 0x14]
jmp 0x66f0be
lea edi, [ebp + 0x30]
mov dword [ebp + 0x34], 0x23456789
mov dword [edi], 0x12345678
mov dword [ebp + 0x38], 0x34567890
mov esi, dword [ebp]
test esi, esi
je 0x66ee77
mov al, byte [esi]
test al, al
je 0x66ee77
push eax
push edi
call fcn.006722f9
add esi, 1
jne 0x66ee65
cmp byte [0x821da0], bl
jne 0x66ee96
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor esi, eax
push esi
call fcn.0069d64a
pop ecx
mov esi, ebx
call fcn.0069d629
sar eax, 7
mov byte [esp + esi + 0x38], al
inc esi
cmp esi, 0xc
jl 0x66ee98
mov eax, dword [esp + 0x58]
mov esi, ebx
shr eax, 8
mov byte [esp + 0x43], al
movzx eax, byte [esp + esi + 0x38]
push eax
push edi
call fcn.0067240f
mov byte [esp + esi + 0x38], al
inc esi
cmp esi, 0xc
jl 0x66eeb7
mov eax, dword [ebp]
test eax, eax
je 0x66eef3
cmp dword [esp + 0x5c8], 4
je 0x66eef3
push 0xc
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.00672340
add dword [ebp + 0x18], 0xc
mov eax, dword [ebp]
mov edi, ebx
test eax, eax
je 0x66ef08
cmp dword [esp + 0x5c8], 4
je 0x66ef08
xor eax, eax
inc eax
jmp 0x66ef0a
mov al, bl
cmp dword [esp + 0x5c8], 4
mov esi, dword [esp + 0x2c]
mov byte [ebp + 0x2d], al
je 0x66ef3f
push 8
pop eax
cmp esi, eax
jne 0x66ef30
lea eax, [esp + 0x50]
mov ecx, ebp
push eax
call fcn.00670d1c
jmp 0x66ef3b
test esi, esi
jne 0x66ef45
mov ecx, ebp
call fcn.00670e8e
mov edi, eax
jmp 0x66ef45
mov dword [ebp + 0x90], ebx
mov ecx, ebp
mov byte [ebp + 0x2d], bl
call fcn.00670cdb
mov ecx, dword [ebp + 0x90]
add dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x66f0be
test edi, edi
jne 0x66ee19
add ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x78]
cmp dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
sete dl
mov dword [esp + 0x60], ecx
mov eax, dword [eax]
mov dword [esp + 0x64], eax
cmp byte [ebp + 0x1c], bl
je 0x66f009
cmp dword [ebp], ebx
je 0x66ef9f
cmp dword [esp + 0x5c8], 4
jne 0x66f009
mov eax, dword [esp + 0x14]
mov word [esp + 0x56], ax
mov ax, word [esp + 0x54]
test al, 1
jne 0x66efbe
mov ecx, 0xfff7
and ax, cx
mov word [esp + 0x54], ax
mov word [esp + 0x7c], ax
mov ecx, ebp
mov eax, dword [esp + 0x84]
sub eax, dword [ebp + 0x10]
push eax
call fcn.006714bb
test al, al
je 0x66efff
push ebp
push 0x6722da
lea eax, [esp + 0x58]
push eax
call fcn.00671bc7
test eax, eax
jne 0x66ee19
push dword [ebp + 0x18]
mov ecx, ebp
call fcn.006714bb
test al, al
jne 0x66f04a
mov eax, 0x2000000
jmp 0x66f0be
mov eax, dword [esp + 0x14]
cmp word [esp + 0x56], ax
jne 0x66f0b2
test esi, esi
jne 0x66f024
test dl, dl
je 0x66f0b2
push ebp
push 0x6722da
lea eax, [esp + 0x58]
push eax
call fcn.00671aa8
test eax, eax
jne 0x66ee19
mov ax, word [esp + 0x7c]
add dword [ebp + 0x18], 0x10
mov word [esp + 0x54], ax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x66f0be
push dword [esp + 0x70]
call fcn.00689cdb
push dword [esp + 0x74]
mov esi, eax
push dword [esp + 0x198]
push esi
call fcn.0068b600
push 0x360
mov dword [esp + 0x1a4], esi
call fcn.0068973d
mov edx, eax
lea esi, [esp + 0x64]
mov ecx, 0xd8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x44]
add esp, 0x14
test ecx, ecx
jne 0x66f09e
mov dword [ebp + 0x44], edx
jmp 0x66f0ae
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x66f09c
mov dword [ecx + 0x35c], edx
xor eax, eax
jmp 0x66f0be
mov eax, 0x4000000
jmp 0x66f0be
mov eax, 0x10000
pop esi
pop edi
pop ebx
pop ebp
add esp, 0x5a8
ret 0x10