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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
push esi
shr eax, 4
mov esi, ecx
push edi
mov dword [ebp - 4], esi
test al, 1
je 0x66da5b
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x66da2c
cmp dword [eax + 0xcc], 0x60
jne 0x66da1d
mov eax, dword [eax + 0xc4]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x66da07
test eax, eax
je 0x66da2c
mov al, byte [eax + 0xcc]
mov byte [ebp + 0xb], al
jmp 0x66da30
mov byte [ebp + 0xb], 0x62
movzx eax, byte [ebp + 0xb]
cmp eax, 7
jg 0x66da64
je 0x66db67
test eax, eax
jl 0x66da5b
cmp eax, 1
jle 0x66db67
cmp eax, 2
je 0x66da81
cmp eax, 4
je 0x66da81
cmp eax, 6
je 0x66da81
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp eax, 9
jl 0x66da5b
cmp eax, 0xa
jle 0x66da81
cmp eax, 0xc
je 0x66db67
cmp eax, 0x60
jle 0x66da5b
cmp eax, 0x62
jg 0x66da5b
cmp byte [ebp + 0xb], 9
jne 0x66da9a
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
test byte [eax + 0x13c], 8
je 0x66da9a
mov byte [ebp + 0xb], 4
mov ecx, ebx
call 0x5e7d40
test eax, eax
je 0x66dac0
push ebx
push dword [esi]
lea ecx, [ebp - 0x54]
call fcn.0066cca6
lea ecx, [ebp - 0x54]
call fcn.00669d46
test al, al
jne 0x66dac0
mov byte [ebp + 0xb], 2
push ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00669c54
mov esi, dword [esi + 0x20]
mov eax, dword [ebp - 0x2c]
add esi, 0x28
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp eax, dword [ebp - 0x38]
jge 0x66da5b
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x3c]
jle 0x66da5b
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x30]
jge 0x66da5b
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x34]
jle 0x66da5b
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x20]
test esi, esi
je 0x66dcb7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29], 0
je 0x66dcb7
push ebx
push dword [eax]
lea ecx, [ebp - 0x40]
call fcn.0066cc20
push 0x10311d44
lea ecx, [ebp - 0x40]
call fcn.0066c0d1
test al, al
mov eax, dword [esi]
mov ecx, esi
je 0x66db6f
call dword [eax + 0x78]
test eax, eax
je 0x66dcb7
push 0
mov ecx, ebx
call 0x5ecbc0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
jmp 0x66dcb7
xor eax, eax
inc eax
jmp 0x66da5d
call dword [eax + 0x78]
mov dword [ebp - 0xc], eax
cmp eax, 1
je 0x66dc3d
push 0x10305930
lea ecx, [ebp - 0x40]
call fcn.0066c12e
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x66dc09
cmp dword [ebp - 0xc], 0
je 0x66dc09
mov edi, dword [esi + 0x48]
test edi, edi
je 0x66dc09
mov eax, dword [edi + 0x3c]
and dword [ebp - 8], 0
cmp byte [edi + 0x18], 0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
je 0x66dbbf
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 8], ecx
mov cl, byte [edi + 0x19]
mov byte [ebp - 0x10], cl
test eax, eax
je 0x66dbda
push 0
mov ecx, eax
call 0x5ecbc0
mov eax, dword [edi]
and dword [edi + 0x3c], 0
mov ecx, edi
call dword [eax + 0x80]
mov eax, dword [edi]
push edi
call dword [eax + 8]
and dword [esi + 0x48], 0
cmp dword [ebp - 8], 0
je 0x66dc09
push dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
push edi
call fcn.0066d9e2
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x66dc09
mov ecx, dword [ebp - 8]
mov dword [eax + 0x1c], ecx
mov edi, dword [ebp - 0x1c]
push edi
push dword [esi + 0x20]
call fcn.006697a6
pop ecx
pop ecx
test eax, eax
je 0x66dc36
push dword [esi + 0x20]
call fcn.0082901b
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x20], edi
mov dword [esp], 0x800c
call dword [eax + 0x7c]
jmp 0x66dc3d
push edi
call fcn.0082901b
pop ecx
push 0x10306f98
lea ecx, [ebp - 0x40]
call fcn.0066c12e
mov edi, eax
push edi
push dword [esi + 0x24]
call fcn.006697a6
pop ecx
pop ecx
test eax, eax
je 0x66dc74
push dword [esi + 0x24]
call fcn.0082901b
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x24], edi
mov dword [esp], 0x800d
call dword [eax + 0x7c]
cmp dword [ebp - 0xc], 1
je 0x66dcb7
cmp dword [ebp - 0xc], 0
je 0x66dcb7
push 0x10311964
lea ecx, [ebp - 0x40]
call fcn.0066c12e
mov edi, eax
push edi
push dword [esi + 0x44]
call fcn.006697a6
pop ecx
pop ecx
test eax, eax
je 0x66dcb7
push dword [esi + 0x44]
call fcn.0082901b
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x44], edi
mov dword [esp], 0x8012
call dword [eax + 0x7c]
mov al, byte [ebp + 0xb]
cmp al, 2
je 0x66e250
cmp al, 4
je 0x66e106
cmp al, 6
je 0x66dcee
cmp al, 9
je 0x66ddf7
cmp al, 0xa
je 0x66dd6c
cmp al, 0x60
jbe 0x66da5b
cmp al, 0x62
ja 0x66da5b
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x66dd2b
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 4
je 0x66dd2b
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 5
je 0x66dd2b
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x20]
push 0
mov ecx, ebx
call 0x5ecbc0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov esi, dword [ebp - 4]
push ebx
push dword [esi]
lea ecx, [ebp - 0x40]
call fcn.0066cc20
push 0x10311d44
lea ecx, [ebp - 0x40]
call fcn.0066c0d1
test al, al
jne 0x66db67
push 0x10311d34
lea ecx, [ebp - 0x40]
call fcn.0066c0d1
test al, al
je 0x66df29
mov byte [ebp + 0xc], 0
jmp 0x66df39
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x66dd99
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 4
je 0x66dd99
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x20]
push 0
mov ecx, ebx
call 0x5ecbc0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x20]
test esi, esi
jne 0x66ddef
mov esi, dword [ebp - 4]
push ebx
push dword [esi]
lea ecx, [ebp - 0x40]
call fcn.0066cc20
push 0x10311d44
lea ecx, [ebp - 0x40]
call fcn.0066c0d1
test al, al
jne 0x66db67
push 0x54
call fcn.00829529
pop ecx
test eax, eax
je 0x66dde4
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
call fcn.0066d176
jmp 0x66dde6
xor eax, eax
mov byte [eax + 0x50], 1
jmp 0x66e1a4
mov edi, dword [ebp - 4]
jmp 0x66e233
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x66de24
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 2
je 0x66de24
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x20]
push 0
mov ecx, ebx
call 0x5ecbc0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov eax, dword [ebx + 4]
cmp dword [eax + 0x20], 0
jne 0x66debb
mov esi, dword [ebp - 4]
push ebx
push dword [esi]
lea ecx, [ebp - 0x40]
call fcn.0066cc20
push 0x10311d44
lea ecx, [ebp - 0x40]
call fcn.0066c0d1
test al, al
jne 0x66db67
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
mov ecx, esi
call fcn.0066bcca
push 0x64
call fcn.00829529
pop ecx
test eax, eax
je 0x66de84
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
call fcn.0066d04d
mov esi, eax
jmp 0x66de86
xor esi, esi
mov eax, dword [ebp - 0x1c]
push 1
push 0x1030ba74
mov ecx, ebx
mov dword [esi + 0x54], eax
call fcn.005e7b60
test eax, eax
setne al
mov byte [esi + 0x40], al
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
test byte [eax + 0x13c], 0x10
je 0x66deb5
mov byte [esi + 0x58], 1
push esi
jmp 0x66e1a9
mov esi, dword [eax + 0x20]
mov edi, dword [ebp - 4]
lea eax, [ebp + 0xf]
push eax
lea eax, [ebp + 8]
push eax
push ebx
mov ecx, edi
call fcn.0066bcca
push dword [ebp + 8]
push dword [esi + 0x54]
call fcn.006697a6
pop ecx
pop ecx
test eax, eax
je 0x66df1b
push dword [esi + 0x54]
call fcn.0082901b
mov eax, dword [ebp + 8]
mov dword [esi + 0x54], eax
cmp byte [edi + 0x29], 0
pop ecx
jne 0x66df00
cmp dword [edi + 0x24], esi
je 0x66e233
cmp byte [edi + 0x1c], 0
jne 0x66e233
mov eax, dword [esi]
push 0x800e
mov ecx, esi
call dword [eax + 0x7c]
jmp 0x66e233
push dword [ebp + 8]
call fcn.0082901b
pop ecx
jmp 0x66e233
cmp byte [ebp + 0xb], 0x62
je 0x66df35
cmp byte [ebp + 0xb], 0x61
jne 0x66df39
mov byte [ebp + 0xc], 1
push ebx
push dword [esi]
lea ecx, [ebp - 0x54]
call fcn.0066cca6
lea ecx, [ebp - 0x54]
call fcn.0066c1e4
test al, al
jne 0x66dff3
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x20]
test edx, edx
jne 0x66dfb6
lea ecx, [ebp - 0x54]
call fcn.00669d46
test al, al
je 0x66dfb2
push ebx
push dword [esi]
lea ecx, [ebp - 0x54]
call fcn.0066cc20
push 0x58
call fcn.00829529
pop ecx
test eax, eax
je 0x66df95
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
call fcn.0066d1b7
mov esi, eax
jmp 0x66df97
xor esi, esi
push 0
push 0x1030ba74
mov ecx, ebx
call fcn.005e7b60
test eax, eax
setne al
mov byte [esi + 0x40], al
jmp 0x66deb5
test edx, edx
je 0x66dfe2
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x78]
cmp eax, 5
jne 0x66dfe2
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x1c], ecx
inc dword [esi + 0x18]
push eax
mov ecx, esi
mov byte [eax + 0x18], 1
call fcn.00669cab
jmp 0x66e248
push 0x10311d28
lea ecx, [ebp - 0x40]
call fcn.0066c0d1
test al, al
je 0x66dffc
mov dword [ebp - 4], 1
jmp 0x66e038
xor edi, edi
inc edi
push edi
push 0x1030bb6c
mov ecx, ebx
call fcn.005e7b60
test eax, eax
jne 0x66e015
mov dword [ebp - 4], edi
jmp 0x66e038
and dword [ebp - 4], 0
mov edi, dword [ebx + 0x10]
jmp 0x66e034
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0066d9e2
cmp eax, dword [ebp - 4]
jle 0x66e031
mov dword [ebp - 4], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x66e01e
cmp byte [ebp + 0xb], 0x62
jne 0x66e046
mov eax, dword [ebp - 4]
jmp 0x66da5d
cmp dword [ebp - 4], 2
jne 0x66e05b
push ebx
mov ecx, esi
call fcn.0066d932
mov dword [ebp - 4], 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
xor edi, edi
test eax, eax
je 0x66e069
mov edi, eax
lea ecx, [ebp - 0x40]
call fcn.0066c097
test al, al
jne 0x66e0a1
cmp dword [ebp - 4], 1
je 0x66e0a1
mov eax, dword [ebx + 4]
cmp dword [eax + 0x20], 0
je 0x66e03e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push 0
mov ecx, ebx
call 0x5ecbc0
push ebx
mov ecx, esi
call fcn.0066bdcf
jmp 0x66e03e
mov eax, dword [ebx + 4]
cmp dword [eax + 0x20], 0
jne 0x66e0d8
push 0x54
call fcn.00829529
pop ecx
test eax, eax
je 0x66e0c8
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
call fcn.0066d176
jmp 0x66e0ca
xor eax, eax
push eax
mov ecx, ebx
mov byte [eax + 0x40], 0
call 0x5ecbc0
jmp 0x66e0ed
push edi
mov ecx, esi
call fcn.00669cab
mov eax, dword [esi + 0x18]
mov dword [edi + 0x1c], eax
inc dword [esi + 0x18]
mov byte [edi + 0x18], 1
lea ecx, [ebp - 0x40]
call fcn.0066c097
xor ecx, ecx
test al, al
setne cl
inc ecx
inc ecx
mov dword [ebp - 4], ecx
jmp 0x66e03e
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x66e133
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 1
je 0x66e133
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x20]
push 0
mov ecx, ebx
call 0x5ecbc0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x20]
test esi, esi
jne 0x66e1b5
mov esi, dword [ebp - 4]
push ebx
push dword [esi]
lea ecx, [ebp - 0x54]
call fcn.0066cc20
push 0x10311d44
lea ecx, [ebp - 0x54]
call fcn.0066c0d1
test al, al
jne 0x66db67
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
mov ecx, esi
call fcn.0066bcca
test al, al
je 0x66da5b
push 0x5c
call fcn.00829529
pop ecx
test eax, eax
je 0x66e196
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
call fcn.0066cfe6
jmp 0x66e198
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x20], ecx
mov cl, byte [ebp + 0xb]
mov byte [eax + 0x50], cl
mov byte [eax + 0x40], 0
push eax
mov ecx, ebx
call 0x5ecbc0
jmp 0x66e248
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xcc], 9
je 0x66e1c9
cmp eax, dword [esi + 0x54]
je 0x66e22a
mov dword [esi + 0x54], eax
mov edi, dword [ebp - 4]
lea eax, [ebp + 0xf]
push eax
lea eax, [ebp + 8]
push eax
push ebx
mov ecx, edi
call fcn.0066bcca
cmp dword [ebp + 8], 0
je 0x66da5b
push dword [ebp + 8]
push dword [esi + 0x20]
call fcn.006697a6
pop ecx
pop ecx
test eax, eax
je 0x66e21f
push dword [esi + 0x20]
call fcn.0082901b
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x20], eax
push 0x800c
test ecx, ecx
je 0x66e216
mov eax, dword [ecx]
jmp 0x66e21a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x7c]
jmp 0x66e22d
push dword [ebp + 8]
call fcn.0082901b
pop ecx
jmp 0x66e22d
mov edi, dword [ebp - 4]
cmp dword [esi + 0x58], 0
jne 0x66e23b
push esi
mov ecx, edi
call fcn.00669cab
mov eax, dword [edi + 0x18]
mov dword [esi + 0x1c], eax
inc dword [edi + 0x18]
mov byte [esi + 0x18], 1
push 3
pop eax
jmp 0x66da5d
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x66e27d
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 3
je 0x66e27d
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x20]
push 0
mov ecx, ebx
call 0x5ecbc0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x20]
mov edi, dword [ebp - 4]
test esi, esi
jne 0x66e2ec
push ebx
push dword [edi]
lea ecx, [ebp - 0x54]
call fcn.0066cc20
push 0x10311d44
lea ecx, [ebp - 0x54]
call fcn.0066c0d1
test al, al
jne 0x66db67
push 0x54
call fcn.00829529
pop ecx
test eax, eax
je 0x66e2ca
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp + 0xc]
mov ecx, eax
push ebx
push edi
call fcn.0066d13f
mov esi, eax
jmp 0x66e2cc
xor esi, esi
push 1
push 0x1030ba74
mov ecx, ebx
call fcn.005e7b60
test eax, eax
setne al
push esi
mov ecx, ebx
mov byte [esi + 0x40], al
call 0x5ecbc0
jmp 0x66e301
push esi
mov ecx, edi
call fcn.00669cab
mov eax, dword [edi + 0x18]
mov dword [esi + 0x1c], eax
inc dword [edi + 0x18]
mov byte [esi + 0x18], 1
cmp byte [ebp + 0xc], 0
je 0x66e248
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x66e248
cmp dword [eax + 0x20], 0
jne 0x66e248
mov ebx, dword [ebx + 0x10]
jmp 0x66e362
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0xcc]
cmp eax, 9
jne 0x66e347
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
test byte [eax + 0x13c], 8
je 0x66e35f
jmp 0x66e34c
cmp eax, 4
jne 0x66e35f
push 1
push ebx
mov ecx, edi
call fcn.0066d9e2
cmp eax, 3
je 0x66e248
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x66e328
jmp 0x66e248