Function at 0x66b674
Capabilities:
Access the windows event log
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2855
push 0
push 0
dec ecx
jne 0x66b67d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 4]
call fcn.0040b9a8
mov eax, dword [ebp - 8]
call fcn.0040b9a8
mov eax, dword [ebp + 8]
call fcn.0040b9a8
lea eax, [ebp - 0x68]
mov edx, dword [0x66a044]
call fcn.0040d1e4
xor eax, eax
push ebp
push 0x66d0b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd1], 0
xor eax, eax
mov dword [ebp - 0x70], eax
mov byte [ebp - 0xf6], 0
xor eax, eax
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
call fcn.0040c928
mov eax, dword [0x8dda48]
cmp byte [eax], 0
je 0x66c151
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 0x35], 0
jne 0x66c151
xor eax, eax
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0xc], 0
je 0x66b7b3
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x110], eax
mov edx, dword [0x8dceb4]
mov edx, dword [edx]
mov eax, dword [ebp - 0x110]
call fcn.0042f86c
test eax, eax
sete byte [ebp - 0x111]
cmp byte [ebp - 0x111], 0
jne 0x66b7b3
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0xc]
call fcn.0040c824
mov dword [ebp - 0x14208], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x3c]
call fcn.0040c824
mov dword [ebp - 0x14204], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x38]
call fcn.0040c824
mov dword [ebp - 0x141fc], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x40]
call fcn.0040c824
mov dword [ebp - 0x14200], eax
xor eax, eax
mov dword [ebp - 0x141f8], eax
push 0
push 0
lea eax, [ebp - 0x14208]
push eax
push 1
call fcn.00669a14
mov dword [ebp - 0xd8], eax
push 1
push 0
push 0
call fcn.00669c28
mov dword [ebp - 0xdc], eax
push 2
push 0
push 0
call fcn.00669c28
mov dword [ebp - 0xe0], eax
xor eax, eax
push ebp
push 0x66c14a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 0x34], 0
je 0x66b7f8
mov dword [ebp - 0x104], 0x201
jmp 0x66b802
mov dword [ebp - 0x104], 0x101
mov eax, dword [ebp - 0x104]
push eax
push 0x66d0c8
mov eax, dword [ebp - 0x2c]
call fcn.0040c5ac
push eax
mov eax, dword [ebp - 0xd8]
push eax
call fcn.00669b1c
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
seta byte [ebp - 0xf5]
xor eax, eax
push ebp
push 0x66c10f
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x66c0cb
mov eax, dword [ebp - 0xa8]
dec eax
test eax, eax
jl 0x66c0c2
inc eax
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x41f4]
mov dword [ebp - 0x174], eax
xor eax, eax
push ebp
push 0x66c0a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x68]
mov edx, dword [0x66a044]
call fcn.0040d5d0
mov edx, 0x38
call fcn.005fd110
xor esi, esi
xor eax, eax
mov dword [ebp - 0xec], eax
xor eax, eax
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xec]
push eax
push 0
push esi
push 0
mov eax, dword [ebp - 0x174]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xdc]
push eax
call fcn.00669cc4
mov esi, dword [ebp - 0xec]
mov eax, esi
call fcn.0040712c
mov dword [ebp - 0xf4], eax
xor eax, eax
push ebp
push 0x66bcbd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp - 0xf4]
push eax
push esi
push 0
mov eax, dword [ebp - 0x174]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xdc]
push eax
call fcn.00669cc4
test eax, eax
je 0x66bca2
mov ebx, dword [ebp - 0xf4]
lea eax, [ebp - 0x58]
mov edx, dword [ebx]
call fcn.0040c884
mov byte [ebp - 0xf6], 1
add ebx, 0x20
movzx eax, word [ebx]
mov dword [ebp - 0x50], eax
add ebx, 0x20
movzx eax, byte [ebx]
cmp eax, 4
ja case.default.0x66b94d
jmp dword [eax*4 + 0x66b954]
mov byte [ebp - 0x68], 3
jmp case.default.0x66b94d
mov byte [ebp - 0x68], 4
jmp case.default.0x66b94d
mov byte [ebp - 0x68], 0
jmp case.default.0x66b94d
mov byte [ebp - 0x68], 1
jmp case.default.0x66b94d
mov byte [ebp - 0x68], 2
add ebx, 0x40
mov eax, dword [ebx]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x6c]
movzx edx, byte [eax + 0x20]
lea eax, [ebp - 0x38]
call fcn.005fd1a0
fstp qword [ebp - 0x60]
wait
fld qword [ebp - 0x60]
fld qword [0x8f6878]
fucompp
wait
fnstsw ax
sahf
jbe 0x66b9bf
mov byte [ebp - 0xf6], 0
jmp 0x66b9d7
fld qword [ebp - 0x60]
fld qword [0x8f6880]
fucompp
wait
fnstsw ax
sahf
jbe 0x66b9d7
mov byte [ebp - 0xf6], 1
cmp byte [ebp - 0xf6], 1
jne 0x66bca2
add ebx, 0x70
lea eax, [ebp - 0x44]
mov edx, dword [ebx]
call fcn.0040c884
add ebx, 0x10
lea edx, [ebp - 0xc]
mov eax, dword [ebx]
call fcn.005fbfec
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 0x18], 0
je 0x66bbb6
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0xffffffff
je 0x66ba9f
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xbc]
call fcn.004b8ea4
cmp dword [ebp - 0x1c], 0
je 0x66bbb6
mov ecx, 1
mov edx, dword [ebp - 0x1c]
mov eax, 0x66d0d8
call fcn.0040cdb0
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xc0]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.0040cc5c
lea eax, [ebp - 0x4c]
push eax
mov edx, dword [ebp - 0xc0]
inc edx
mov ecx, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.0040cc5c
jmp 0x66bbb6
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x4174]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2174]
push eax
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x44]
call fcn.0040c824
push eax
call sub.advapi32.dll_LookupAccountSidW
test eax, eax
je 0x66bb7c
lea edx, [ebp - 0x1420c]
lea eax, [ebp - 0x2174]
call fcn.004318f4
mov edx, dword [ebp - 0x1420c]
lea eax, [ebp - 0x4c]
call fcn.0040bcec
lea edx, [ebp - 0x14210]
lea eax, [ebp - 0x4174]
call fcn.004318f4
mov edx, dword [ebp - 0x14210]
lea eax, [ebp - 0x48]
call fcn.0040bcec
lea eax, [ebp - 0x14214]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1422c], eax
mov byte [ebp - 0x14228], 0x11
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14224], eax
mov byte [ebp - 0x14220], 0x11
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1421c], eax
mov byte [ebp - 0x14218], 0x11
lea edx, [ebp - 0x1422c]
mov ecx, 2
mov eax, 0x66d0e8
call fcn.00431adc
mov edx, dword [ebp - 0x14214]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x66bbb6
lea eax, [ebp - 0x14230]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14238], eax
mov byte [ebp - 0x14234], 0x11
lea edx, [ebp - 0x14238]
xor ecx, ecx
mov eax, 0x66d108
call fcn.00431adc
mov edx, dword [ebp - 0x14230]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x58]
call fcn.0040c928
push 0
push 0
push 0
mov eax, dword [ebp - 0x30]
call fcn.0040c5ac
push eax
push 0
call fcn.00669d54
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
je 0x66bc3e
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x141f2]
push eax
push 0xfffe
push 1
push 0
push 0
push 0
mov eax, dword [ebp - 0x174]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xe8]
push eax
call fcn.00669dfc
test eax, eax
je 0x66bc3e
lea eax, [ebp - 0x1423c]
lea edx, [ebp - 0x141f2]
mov ecx, 0x7fff
call fcn.0040c570
mov edx, dword [ebp - 0x1423c]
lea eax, [ebp - 0x40]
call fcn.0040c914
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x141f2]
push eax
push 0xfffe
push 3
push 0
push 0
push 0
mov eax, dword [ebp - 0x174]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xe8]
push eax
call fcn.00669dfc
test eax, eax
je 0x66bc96
lea eax, [ebp - 0x14240]
lea edx, [ebp - 0x141f2]
mov ecx, 0x7fff
call fcn.0040c570
mov edx, dword [ebp - 0x14240]
lea eax, [ebp - 0x54]
call fcn.0040c914
mov eax, dword [ebp - 0xe8]
push eax
call fcn.00669aa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66bcc4
mov eax, dword [ebp - 0xf4]
call fcn.0040717c
pop eax
jmp eax
cmp byte [ebp - 0xd1], 0
jne 0x66c0f3
lea eax, [ebp - 0xa8]
push eax
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x41f4]
push eax
push 0x20
mov eax, dword [ebp - 0xe4]
push eax
call fcn.00669ba0
test eax, eax
jne 0x66b84a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66c116
mov eax, dword [ebp - 0xe4]
push eax
call fcn.00669aa4
pop eax
jmp eax
cmp byte [ebp - 0xf5], 0
jne 0x66d03a
xor eax, eax
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x48]
mov byte [ebp - 0xd1], 0
mov dword [ebp - 0xa4], 0x10000
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 0x34], 0
je 0x66c1a4
mov dword [ebp - 0x9c], 9
jmp 0x66c1ae
mov dword [ebp - 0x9c], 5
mov eax, dword [ebp - 0x6c]
call fcn.0066af7c
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.00430c70
test al, al
je 0x66c1d9
mov eax, dword [ebp - 8]
call fcn.0040c824
push eax
push 0
call sub.advapi32.dll_OpenBackupEventLogW
mov dword [ebp - 0x74], eax
jmp 0x66c1f3
mov eax, dword [ebp - 8]
call fcn.0040c824
push eax
mov eax, dword [ebp - 4]
call fcn.0040c824
push eax
call sub.advapi32.dll_OpenEventLogW
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x66c206
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x70], eax
jmp 0x66d03a
mov dl, 1
mov eax, dword [0x48df14]
call fcn.004b9df4
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov word [eax + 0x18], 0x3b
mov dl, 1
mov eax, dword [ebp - 0xc8]
call fcn.004b7540
mov dl, 1
mov eax, dword [0x48df14]
call fcn.004b9df4
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov word [eax + 0x18], 0xd
mov dl, 1
mov eax, dword [ebp - 0xcc]
call fcn.004b7540
lea eax, [ebp - 0x10]
call fcn.0040b8b4
lea eax, [ebp - 0x14]
call fcn.0040b8b4
lea eax, [ebp - 0x18]
call fcn.0040b8b4
xor eax, eax
push ebp
push 0x66d033
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 0x44], 0
je 0x66c434
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x14], 0
je 0x66c434
lea eax, [ebp - 0xd0]
push eax
push 0x20019
push 0
push 0x66d144
push dword [ebp - 8]
push 0x66d0d8
push dword [ebp - 8]
lea eax, [ebp - 0x14248]
mov edx, 4
call fcn.0040cb14
mov eax, dword [ebp - 0x14248]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x66c434
mov word [ebp - 0x2174], 0
mov dword [ebp - 0xa8], 0x2000
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2174]
push eax
push 0
push 0
push 0x66d19c
mov eax, dword [ebp - 0xd0]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x66c34c
lea eax, [ebp - 0x1424c]
lea edx, [ebp - 0x2174]
mov ecx, 0x1000
call fcn.0040c8d8
mov eax, dword [ebp - 0x1424c]
lea ecx, [ebp - 0x28]
mov dl, 1
call fcn.006053c0
jmp 0x66c354
lea eax, [ebp - 0x28]
call fcn.0040b8b4
mov word [ebp - 0x2174], 0
mov dword [ebp - 0xa8], 0x2000
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2174]
push eax
push 0
push 0
push 0x66d1c0
mov eax, dword [ebp - 0xd0]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x66c3b6
lea eax, [ebp - 0x14250]
lea edx, [ebp - 0x2174]
mov ecx, 0x1000
call fcn.0040c8d8
mov eax, dword [ebp - 0x14250]
lea ecx, [ebp - 0x24]
mov dl, 1
call fcn.006053c0
jmp 0x66c3be
lea eax, [ebp - 0x24]
call fcn.0040b8b4
mov word [ebp - 0x2174], 0
mov dword [ebp - 0xa8], 0x2000
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2174]
push eax
push 0
push 0
push 0x66d1e8
mov eax, dword [ebp - 0xd0]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x66c420
lea eax, [ebp - 0x14254]
lea edx, [ebp - 0x2174]
mov ecx, 0x1000
call fcn.0040c8d8
mov eax, dword [ebp - 0x14254]
lea ecx, [ebp - 0x20]
mov dl, 1
call fcn.006053c0
jmp 0x66c428
lea eax, [ebp - 0x20]
call fcn.0040b8b4
mov eax, dword [ebp - 0xd0]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0xa4]
call fcn.00407160
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0xc1], 0
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x74]
push eax
call sub.advapi32.dll_ReadEventLogW
test eax, eax
jne 0x66c4e3
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0x7a
jne 0x66c4d2
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x84]
call fcn.00407194
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x74]
push eax
call sub.advapi32.dll_ReadEventLogW
jmp 0x66c4e3
cmp dword [ebp - 0xb0], 0x5dc
setne byte [ebp - 0xc1]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jbe 0x66cfdb
lea eax, [ebp - 0x68]
mov edx, dword [0x66a044]
call fcn.0040d5d0
mov edx, 0x38
call fcn.005fd110
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x78]
add edx, 0x38
call fcn.0040c884
cmp dword [ebp + 8], 0
je 0x66c570
push 0
lea eax, [ebp - 0x14258]
mov ecx, 0x66d220
mov edx, dword [ebp + 8]
call fcn.0040ca8c
mov eax, dword [ebp - 0x14258]
push eax
lea eax, [ebp - 0x1425c]
mov ecx, 0x66d220
mov edx, dword [ebp - 0x58]
call fcn.0040ca8c
mov eax, dword [ebp - 0x1425c]
xor ecx, ecx
pop edx
call fcn.005fd5a8
test eax, eax
jle 0x66cfb8
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x66c59d
mov eax, dword [ebp - 0x158]
mov eax, dword [eax - 4]
mov dword [ebp - 0x158], eax
mov ebx, dword [ebp - 0x158]
inc ebx
add ebx, ebx
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x78]
add edx, 0x38
add edx, ebx
call fcn.0040c884
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x2c]
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x88], 0x1000
mov dword [ebp - 0x8c], 0x1000
lea eax, [ebp - 0x4c]
call fcn.0040b8b4
lea eax, [ebp - 0x48]
call fcn.0040b8b4
mov eax, dword [ebp - 0x98]
push eax
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x66c7ce
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x98]
call fcn.005fbfec
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0xc]
call fcn.0040bcec
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 0x18], 0
je 0x66c7ce
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0xffffffff
je 0x66c6b7
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xbc]
call fcn.004b8ea4
cmp dword [ebp - 0x1c], 0
je 0x66c7ce
mov ecx, 1
mov edx, dword [ebp - 0x1c]
mov eax, 0x66d0d8
call fcn.0040cdb0
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xc0]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.0040cc5c
lea eax, [ebp - 0x4c]
push eax
mov edx, dword [ebp - 0xc0]
inc edx
mov ecx, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.0040cc5c
jmp 0x66c7ce
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x4174]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2174]
push eax
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x44]
call fcn.0040c824
push eax
call sub.advapi32.dll_LookupAccountSidW
test eax, eax
je 0x66c794
lea edx, [ebp - 0x14260]
lea eax, [ebp - 0x2174]
call fcn.004318f4
mov edx, dword [ebp - 0x14260]
lea eax, [ebp - 0x4c]
call fcn.0040bcec
lea edx, [ebp - 0x14264]
lea eax, [ebp - 0x4174]
call fcn.004318f4
mov edx, dword [ebp - 0x14264]
lea eax, [ebp - 0x48]
call fcn.0040bcec
lea eax, [ebp - 0x14268]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1422c], eax
mov byte [ebp - 0x14228], 0x11
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14224], eax
mov byte [ebp - 0x14220], 0x11
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1421c], eax
mov byte [ebp - 0x14218], 0x11
lea edx, [ebp - 0x1422c]
mov ecx, 2
mov eax, 0x66d0e8
call fcn.00431adc
mov edx, dword [ebp - 0x14268]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x66c7ce
lea eax, [ebp - 0x1426c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14238], eax
mov byte [ebp - 0x14234], 0x11
lea edx, [ebp - 0x14238]
xor ecx, ecx
mov eax, 0x66d108
call fcn.00431adc
mov edx, dword [ebp - 0x1426c]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
mov dword [ebp - 0xac], eax
xor ebx, ebx
jmp 0x66c847
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x78]
mov edx, dword [edx + 0x24]
add edx, dword [ebp - 0x78]
add edx, ebx
call fcn.0040c884
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x1c]
call fcn.0040ca34
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x66c825
mov eax, dword [ebp - 0x164]
mov eax, dword [eax - 4]
mov dword [ebp - 0x164], eax
mov ebx, dword [ebp - 0x164]
mov eax, ebx
add eax, eax
add eax, 2
mov ebx, eax
lea eax, [ebp - 0x3c]
mov edx, 0x66d134
call fcn.0040ca34
inc dword [ebp - 0xac]
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x1a]
cmp eax, dword [ebp - 0xac]
jg 0x66c7da
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x66c883
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax - 4]
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 0x16c]
dec edx
lea eax, [ebp - 0x3c]
call fcn.0040c9b0
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x14]
and ax, 0xffff
movzx eax, ax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x18]
cmp eax, 0x10
ja case.0x66c8b6.0
movzx eax, byte [eax + 0x66c8bd]
jmp dword [eax*4 + 0x66c8ce]
mov byte [ebp - 0x68], 0
jmp 0x66c908
mov byte [ebp - 0x68], 1
jmp 0x66c908
mov byte [ebp - 0x68], 2
jmp 0x66c908
mov byte [ebp - 0x68], 3
jmp 0x66c908
mov byte [ebp - 0x68], 4
jmp 0x66c908
mov byte [ebp - 0x68], 2
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax + 0x20]
xor al, 1
call fcn.004eab24
fstp qword [ebp - 0x60]
wait
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
lea eax, [ebp - 0x14238]
call fcn.005fd218
mov eax, dword [ebp - 0x14238]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14234]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 0x44], 0
je 0x66cf27
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x14], 0
jne 0x66c9ae
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0xc], 0
jne 0x66c97b
mov eax, dword [ebp - 0x6c]
add eax, 0x14
push eax
push 0x80000002
push 0
call sub.advapi32.dll_RegConnectRegistryW
jmp 0x66c9ae
mov eax, dword [ebp - 0x6c]
add eax, 0x14
push eax
push 0x80000002
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x14270]
mov edx, 0x66d230
call fcn.0040ca8c
mov eax, dword [ebp - 0x14270]
call fcn.0040c824
push eax
call sub.advapi32.dll_RegConnectRegistryW
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x28]
call fcn.0040bcec
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x24]
call fcn.0040bcec
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x20]
call fcn.0040bcec
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x14], 0
je 0x66cbe9
lea eax, [ebp - 0xd0]
push eax
push 0x20019
push 0
push 0x66d144
push dword [ebp - 8]
push 0x66d0d8
push dword [ebp - 0x58]
lea eax, [ebp - 0x14274]
mov edx, 4
call fcn.0040cb14
mov eax, dword [ebp - 0x14274]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x66cbe9
mov word [ebp - 0x2174], 0
mov dword [ebp - 0xa8], 0x2000
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2174]
push eax
push 0
push 0
push 0x66d19c
mov eax, dword [ebp - 0xd0]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x66cabb
lea eax, [ebp - 0x14278]
lea edx, [ebp - 0x2174]
mov ecx, 0x1000
call fcn.0040c8d8
mov eax, dword [ebp - 0x14278]
lea ecx, [ebp - 0x1c]
mov dl, 1
call fcn.006053c0
cmp dword [ebp - 0x1c], 0
je 0x66cabb
cmp dword [ebp - 0x10], 0
je 0x66cab0
push dword [ebp - 0x10]
push 0x66d244
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040cb14
jmp 0x66cabb
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040bcec
mov word [ebp - 0x2174], 0
mov dword [ebp - 0xa8], 0x2000
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2174]
push eax
push 0
push 0
push 0x66d1c0
mov eax, dword [ebp - 0xd0]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x66cb4c
lea eax, [ebp - 0x1427c]
lea edx, [ebp - 0x2174]
mov ecx, 0x1000
call fcn.0040c8d8
mov eax, dword [ebp - 0x1427c]
lea ecx, [ebp - 0x1c]
mov dl, 1
call fcn.006053c0
cmp dword [ebp - 0x1c], 0
je 0x66cb4c
cmp dword [ebp - 0x14], 0
je 0x66cb41
push dword [ebp - 0x14]
push 0x66d244
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040cb14
jmp 0x66cb4c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.0040bcec
mov word [ebp - 0x2174], 0
mov dword [ebp - 0xa8], 0x2000
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2174]
push eax
push 0
push 0
push 0x66d1e8
mov eax, dword [ebp - 0xd0]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x66cbdd
lea eax, [ebp - 0x14280]
lea edx, [ebp - 0x2174]
mov ecx, 0x1000
call fcn.0040c8d8
mov eax, dword [ebp - 0x14280]
lea ecx, [ebp - 0x1c]
mov dl, 1
call fcn.006053c0
cmp dword [ebp - 0x1c], 0
je 0x66cbdd
cmp dword [ebp - 0x18], 0
je 0x66cbd2
push dword [ebp - 0x18]
push 0x66d244
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040cb14
jmp 0x66cbdd
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call fcn.0040bcec
mov eax, dword [ebp - 0xd0]
push eax
call sub.advapi32.dll_RegCloseKey
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xcc]
call fcn.004b8cdc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc8]
call fcn.004b8cdc
mov eax, dword [ebp - 0xc8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x66cd6e
inc eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x66cd5c
inc eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0xb8], 0
lea ecx, [ebp - 0x14284]
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xcc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov esi, dword [ebp - 0x14284]
mov ecx, 1
mov edx, esi
mov eax, 0x66d254
call fcn.0040cdb0
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 1
jne 0x66cd4a
xor eax, eax
push ebp
push 0x66cd26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14288]
push eax
lea eax, [ebp - 0x1428c]
push eax
lea ecx, [ebp - 0x14290]
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xcc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14290]
mov ecx, 0x7fffffff
mov edx, 3
call fcn.0040cc5c
mov eax, dword [ebp - 0x1428c]
or edx, 0xffffffff
call fcn.004306e4
push eax
lea ecx, [ebp - 0x14294]
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xc8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14294]
xor ecx, ecx
pop edx
call fcn.0066aa04
mov eax, dword [ebp - 0x14288]
lea ecx, [ebp - 0x1c]
xor edx, edx
call fcn.0066abdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x66cd30
cmp dword [ebp - 0x1c], 0
je 0x66cd4a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xcc]
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc dword [ebp - 0xb8]
dec dword [ebp - 0x10c]
jne 0x66cc4f
inc dword [ebp - 0xb4]
dec dword [ebp - 0x108]
jne 0x66cc2a
lea edx, [ebp - 0x14298]
mov eax, dword [ebp - 0xcc]
call fcn.004b7d0c
mov edx, dword [ebp - 0x14298]
lea eax, [ebp - 0x3c]
call fcn.0040bcec
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc8]
call fcn.004b8cdc
mov eax, dword [ebp - 0xc8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x66ce46
inc eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0xb4], 0
xor eax, eax
push ebp
push 0x66ce19
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1429c]
push eax
lea ecx, [ebp - 0x142a0]
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xc8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x142a0]
mov edx, dword [ebp - 0x78]
movzx edx, word [edx + 0x1c]
mov ecx, dword [ebp - 0x3c]
call fcn.0066aa04
mov eax, dword [ebp - 0x1429c]
lea edx, [ebp - 0x1c]
call fcn.0042faa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x66ce23
cmp dword [ebp - 0x1c], 0
je 0x66ce34
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x1c]
call fcn.0040bcec
inc dword [ebp - 0xb4]
dec dword [ebp - 0x108]
jne 0x66cdc0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc8]
call fcn.004b8cdc
mov eax, dword [ebp - 0xc8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x66cf01
inc eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0xb4], 0
xor eax, eax
push ebp
push 0x66ced4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x142a4]
push eax
lea ecx, [ebp - 0x142a8]
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xc8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x142a8]
mov edx, dword [ebp - 0x78]
mov edx, dword [edx + 0x14]
mov ecx, dword [ebp - 0x3c]
call fcn.0066aa04
mov eax, dword [ebp - 0x142a4]
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
call fcn.0066abdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x66cede
cmp dword [ebp - 0x1c], 0
je 0x66ceef
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
call fcn.0040bcec
inc dword [ebp - 0xb4]
dec dword [ebp - 0x108]
jne 0x66ce79
cmp dword [ebp - 0x54], 0
jne 0x66cf27
lea edx, [ebp - 0x142ac]
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x1c]
call fcn.00430488
mov edx, dword [ebp - 0x142ac]
lea eax, [ebp - 0x54]
call fcn.0040bcec
cmp dword [ebp - 0x40], 0
jne 0x66cf49
lea edx, [ebp - 0x142b0]
mov eax, dword [ebp - 0x3c]
call fcn.0042faa8
mov edx, dword [ebp - 0x142b0]
lea eax, [ebp - 0x40]
call fcn.0040bcec
fld qword [ebp - 0x60]
fld qword [0x8f6878]
fucompp
wait
fnstsw ax
sahf
jbe 0x66cf63
mov byte [ebp - 0xf7], 0
jmp 0x66cf7b
fld qword [ebp - 0x60]
fld qword [0x8f6880]
fucompp
wait
fnstsw ax
sahf
jbe 0x66cf7b
mov byte [ebp - 0xf7], 1
cmp byte [ebp - 0xf7], 1
jne 0x66cfaf
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
call fcn.0066ae90
mov eax, dword [ebp - 0x6c]
cmp word [eax + 0x2a], 0
je 0x66cfaf
lea eax, [ebp - 0xd1]
push eax
lea ecx, [ebp - 0x68]
mov ebx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
cmp byte [ebp - 0xd1], 0
jne 0x66cfdb
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
sub dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x90], 0
ja 0x66c4ff
cmp byte [ebp - 0xd1], 0
jne 0x66cff1
cmp byte [ebp - 0xc1], 0
je 0x66c449
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66d03a
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x7c]
call fcn.0040717c
mov eax, dword [ebp - 0x74]
push eax
call sub.advapi32.dll_CloseEventLog
mov eax, dword [ebp - 0xc8]
call fcn.004099cc
mov eax, dword [ebp - 0xcc]
call fcn.004099cc
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66d0bc
lea eax, [ebp - 0x142b0]
mov edx, 0x1c
call fcn.0040b914
lea eax, [ebp - 0x14240]
mov edx, 2
call fcn.0040b984
lea eax, [ebp - 0x14230]
call fcn.0040b8b4
lea eax, [ebp - 0x14214]
mov edx, 3
call fcn.0040b914
lea eax, [ebp - 0x68]
mov edx, dword [0x66a044]
call fcn.0040d5d0
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0040b984
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.0040b914
lea eax, [ebp + 8]
call fcn.0040b8b4
pop eax
jmp eax