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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x84
mov ecx, dword [esp + 0xa0]
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
test ecx, ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
je 0x66e706
mov ebx, dword [esp + 0x9c]
xor eax, eax
movzx edx, word [ebx + eax*2]
add eax, 1
add word [esp + edx*2 + 0x44], 1
cmp eax, ecx
jne 0x66e6f5
mov eax, dword [esp + 0xa8]
movzx edi, word [esp + 0x62]
mov eax, dword [eax]
test di, di
mov dword [esp + 8], eax
jne 0x66ee49
cmp word [esp + 0x60], 0
jne 0x66ee07
cmp word [esp + 0x5e], 0
jne 0x66ee5d
cmp word [esp + 0x5c], 0
jne 0x66ee53
cmp word [esp + 0x5a], 0
jne 0x66ee86
cmp word [esp + 0x58], 0
jne 0x66ee7c
cmp word [esp + 0x56], 0
jne 0x66eead
cmp word [esp + 0x54], 0
jne 0x66eea0
cmp word [esp + 0x52], 0
jne 0x66eeba
cmp word [esp + 0x50], 0
jne 0x66eec7
cmp word [esp + 0x4e], 0
jne 0x66eee1
cmp word [esp + 0x4c], 0
jne 0x66eed4
cmp word [esp + 0x4a], 0
jne 0x66eefb
cmp word [esp + 0x48], 0
jne 0x66eeee
cmp word [esp + 0x46], 0
jne 0x66e808
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov eax, dword [edx]
mov byte [eax], 0x40
mov byte [eax + 1], 1
mov word [eax + 2], 0
mov byte [eax + 4], 0x40
mov byte [eax + 5], 1
mov word [eax + 6], 0
add eax, 8
mov dword [edx], eax
xor eax, eax
mov dword [ebx], 1
add esp, 0x84
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x28], 1
mov edx, 1
movzx ebx, word [esp + 0x46]
mov esi, 2
mov eax, 0xffffffff
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x48]
add esi, esi
mov eax, 0xffffffff
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x4a]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x4c]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x4e]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x50]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x52]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x54]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x56]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x58]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x5a]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x5c]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x5e]
add esi, esi
sub esi, ebx
js 0x66e7fd
movzx ebx, word [esp + 0x60]
add esi, esi
sub esi, ebx
js 0x66e7fd
add esi, esi
movzx ebx, di
sub esi, ebx
cmp esi, 0
jl 0x66e7fd
je 0x66e900
cmp dword [esp + 0x28], 1
jne 0x66ef08
mov eax, dword [esp + 0x98]
test eax, eax
je 0x66ef08
movzx eax, word [esp + 0x46]
mov word [esp + 0x66], 0
mov word [esp + 0x68], ax
add ax, word [esp + 0x48]
mov word [esp + 0x6a], ax
add ax, word [esp + 0x4a]
mov word [esp + 0x6c], ax
add ax, word [esp + 0x4c]
mov word [esp + 0x6e], ax
add ax, word [esp + 0x4e]
mov word [esp + 0x70], ax
add ax, word [esp + 0x50]
mov word [esp + 0x72], ax
add ax, word [esp + 0x52]
mov word [esp + 0x74], ax
add ax, word [esp + 0x54]
mov word [esp + 0x76], ax
add ax, word [esp + 0x56]
mov word [esp + 0x78], ax
add ax, word [esp + 0x58]
mov word [esp + 0x7a], ax
add ax, word [esp + 0x5a]
mov word [esp + 0x7c], ax
add ax, word [esp + 0x5c]
mov word [esp + 0x7e], ax
add ax, word [esp + 0x5e]
mov word [esp + 0x80], ax
add ax, word [esp + 0x60]
test ecx, ecx
mov word [esp + 0x82], ax
je 0x66e9dc
mov edi, dword [esp + 0x9c]
xor eax, eax
mov dword [esp + 0xc], edx
lea esi, [esi]
movzx edx, word [edi + eax*2]
test dx, dx
je 0x66e9d1
movzx edx, dx
movzx ebx, word [esp + edx*2 + 0x64]
movzx esi, bx
add ebx, 1
mov word [ebp + esi*2], ax
mov word [esp + edx*2 + 0x64], bx
add eax, 1
cmp eax, ecx
jne 0x66e9b0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x66ecc7
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], 0x13
mov esi, dword [esp + 8]
cmp dword [esp + 0x28], esi
mov dword [esp + 0x24], 1
mov edi, dword [esp + 0xa4]
mov eax, esi
cmovbe eax, dword [esp + 0x28]
mov edi, dword [edi]
cmp edx, eax
cmovae eax, edx
mov ecx, eax
shl dword [esp + 0x24], cl
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
sub ebx, 1
cmp dword [esp + 0x98], 1
mov dword [esp + 0x34], ebx
sete byte [esp + 0x42]
cmp dword [esp + 0x24], 0x353
ja 0x66ed16
cmp dword [esp + 0x98], 2
sete byte [esp + 0x43]
cmp dword [esp + 0x24], 0x24f
ja 0x66ed2b
mov eax, dword [esp + 0x20]
mov esi, ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], 0
nop
movzx ebx, word [esi]
xor esi, esi
movzx ecx, byte [esp + 0xc]
sub cl, byte [esp + 0x10]
mov edi, ecx
movzx ecx, bx
cmp dword [esp + 0x2c], ecx
jg 0x66eac7
mov ebx, 0
mov esi, 0x60
jge 0x66eac7
mov ebp, dword [esp + 0x3c]
movzx esi, byte [ebp + ecx*2]
mov ebp, dword [esp + 0x38]
movzx ebx, word [ebp + ecx*2]
mov ecx, dword [esp + 0xc]
mov ebp, 1
sub ecx, dword [esp + 0x10]
shl ebp, cl
mov ecx, eax
mov dword [esp + 4], ebp
mov ebp, 1
shl ebp, cl
mov ecx, dword [esp + 4]
mov dword [esp + 0x18], ebp
mov ebp, edx
neg ecx
shl ecx, 2
mov dword [esp + 8], ecx
movzx ecx, byte [esp + 0x10]
shr ebp, cl
mov ecx, dword [esp + 0x18]
add ecx, ebp
mov ebp, dword [esp + 0x1c]
sub ecx, dword [esp + 4]
lea ecx, [ebp + ecx*4]
mov ebp, dword [esp + 0x18]
mov dword [esp], ecx
mov ecx, esi
mov esi, eax
mov eax, edi
mov edi, edx
mov byte [esp + 0x41], cl
mov edx, eax
mov ecx, dword [esp]
movzx eax, byte [esp + 0x41]
lea esi, [esi]
mov byte [ecx], al
mov byte [ecx + 1], dl
mov word [ecx + 2], bx
add ecx, dword [esp + 8]
sub ebp, dword [esp + 4]
jne 0x66eb30
mov ecx, edx
mov edx, edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
mov eax, esi
mov esi, 1
sub ecx, 1
shl esi, cl
test esi, edx
je 0x66eb66
lea esi, [esi]
shr esi, 1
test esi, edx
jne 0x66eb60
test esi, esi
je 0x66ecc0
lea ebx, [esi - 1]
and ebx, edx
lea edx, [ebx + esi]
mov esi, dword [esp + 0xc]
movzx ebx, word [esp + esi*2 + 0x44]
sub ebx, 1
test bx, bx
mov word [esp + esi*2 + 0x44], bx
jne 0x66ebaf
mov ebx, dword [esp + 0x28]
cmp esi, ebx
je 0x66ed40
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
movzx ecx, word [esi + 2]
movzx ecx, word [edi + ecx*2]
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0xc]
cmp dword [esp + 0x20], ebx
jae 0x66ecad
mov edi, dword [esp + 0x34]
and edi, edx
cmp edi, dword [esp + 0x30]
je 0x66ecad
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
test eax, eax
mov eax, ebx
cmovne ecx, dword [esp + 0x10]
sub eax, ecx
cmp ebx, esi
mov dword [esp + 0x10], ecx
jae 0x66ec40
mov esi, dword [esp + 0xc]
mov ebx, 1
mov ecx, eax
shl ebx, cl
mov dword [esp + 8], ebx
movzx ebx, word [esp + esi*2 + 0x44]
sub dword [esp + 8], ebx
mov ebp, dword [esp + 8]
test ebp, ebp
jle 0x66ec40
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], edx
mov ebp, dword [esp + 0x28]
lea esi, [esp + ecx*2 + 0x44]
mov ebx, ecx
mov ecx, dword [esp + 8]
jmp 0x66ec32
movzx edx, word [esi + eax*2]
add ecx, ecx
sub ecx, edx
test ecx, ecx
jle 0x66ec3c
add eax, 1
lea edx, [eax + ebx]
cmp ebp, edx
ja 0x66ec26
mov edx, dword [esp + 4]
mov ebx, 1
mov ecx, eax
shl ebx, cl
add dword [esp + 0x24], ebx
cmp dword [esp + 0x24], 0x353
ja 0x66ee67
cmp dword [esp + 0x24], 0x24f
ja 0x66ee90
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x30], edi
mov ecx, dword [ebp]
lea esi, [esi + ebx*4]
movzx ebx, byte [esp + 0x20]
mov dword [esp + 0x1c], esi
lea esi, [edi*4]
mov byte [ecx + edi*4], al
mov ecx, dword [ebp]
mov byte [ecx + esi + 1], bl
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ebp]
sub ecx, ebx
sar ecx, 2
mov word [ebx + esi + 2], cx
add dword [esp + 0x14], 2
mov esi, dword [esp + 0x14]
jmp 0x66ea90
xor edx, edx
jmp 0x66eb76
cmp dword [esp + 0x98], 1
mov eax, 0x100
mov dword [esp + 0x2c], 0xffffffff
cmovne eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x778d20
mov dword [esp + 0x38], 0x778ca0
mov dword [esp + 0x2c], eax
mov eax, 0x778ade
cmovne eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, 0x778a5e
cmovne eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
jmp 0x66e9fb
cmp byte [esp + 0x42], 0
mov eax, 1
je 0x66ea54
jmp 0x66e7fd
cmp byte [esp + 0x43], 0
mov eax, 1
je 0x66ea6f
jmp 0x66e7fd
test edx, edx
mov ebx, ecx
je 0x66edc5
movzx ebp, byte [esp + 0x20]
mov esi, 1
mov eax, edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
test edi, edi
je 0x66ed8a
mov edi, dword [esp + 0x34]
and edi, edx
cmp edi, dword [esp + 0x30]
je 0x66ee01
mov edi, dword [esp + 0xa4]
mov eax, ebp
mov dword [esp + 0x10], 0
mov edi, dword [edi]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x20]
lea ebx, [edi - 1]
mov edi, edx
shr edi, cl
mov ecx, edi
mov edi, dword [esp + 0x1c]
lea ecx, [edi + ecx*4]
mov edi, esi
mov byte [ecx], 0x40
mov byte [ecx + 1], al
mov word [ecx + 2], 0
mov ecx, ebx
shl edi, cl
test edi, edx
mov dword [esp + 4], edi
je 0x66edbd
mov ecx, edi
shr ecx, 1
test ecx, edx
jne 0x66edb3
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x66edea
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0xa4]
mov ecx, dword [esp + 0x20]
shl eax, 2
add dword [ebp], eax
mov eax, dword [esp + 0xa8]
mov dword [eax], ecx
xor eax, eax
jmp 0x66e7fd
mov edi, dword [esp + 4]
sub edi, 1
and edi, edx
mov edx, dword [esp + 4]
add edx, edi
jne 0x66ed52
jmp 0x66edc5
mov ecx, dword [esp + 0x10]
jmp 0x66ed8a
mov dword [esp + 0x28], 0xe
nop
cmp word [esp + 0x46], 0
mov edx, 1
mov eax, dword [esp + 0x28]
jne 0x66e815
add edx, 1
cmp edx, eax
je 0x66e815
cmp word [esp + edx*2 + 0x44], 0
je 0x66ee25
movzx eax, word [esp + 0x46]
mov esi, 2
sub esi, eax
jmp 0x66e828
mov dword [esp + 0x28], 0xf
jmp 0x66ee10
mov dword [esp + 0x28], 0xc
jmp 0x66ee10
mov dword [esp + 0x28], 0xd
jmp 0x66ee10
cmp byte [esp + 0x42], 0
je 0x66ec5b
mov eax, 1
jmp 0x66e7fd
mov dword [esp + 0x28], 0xa
jmp 0x66ee10
mov dword [esp + 0x28], 0xb
jmp 0x66ee10
cmp byte [esp + 0x43], 0
je 0x66ec69
jmp 0x66ee72
mov dword [esp + 0x28], 8
jmp 0x66ee10
mov dword [esp + 0x28], 9
jmp 0x66ee10
mov dword [esp + 0x28], 7
jmp 0x66ee10
mov dword [esp + 0x28], 6
jmp 0x66ee10
mov dword [esp + 0x28], 4
jmp 0x66ee10
mov dword [esp + 0x28], 5
jmp 0x66ee10
mov dword [esp + 0x28], 2
jmp 0x66ee10
mov dword [esp + 0x28], 3
jmp 0x66ee10
mov eax, 0xffffffff
jmp 0x66e7fd