Function at 0x4066c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48abfc
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x840]
push 0x10
push str.InprocServer32_
mov dword [ebp - 0x82c], 0xf
mov dword [ebp - 0x830], 0
mov byte [ebp - 0x840], 0
call fcn.004070d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x828]
push 0x17
push str.SOFTWAREClassesCLSID_
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
call fcn.004070d0
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x828]
lea ecx, [ebp - 0x870]
call fcn.004078e0
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x858]
call fcn.00407910
add esp, 8
mov eax, dword [ebp - 0x85c]
cmp eax, 0x10
jb 0x4067a3
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00402390
mov dword [ebp - 0x85c], 0xf
mov dword [ebp - 0x860], 0
mov byte [ebp - 0x870], 0
mov eax, dword [ebp - 0x814]
cmp eax, 0x10
jb 0x4067dc
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.00402390
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x82c]
cmp eax, 0x10
jb 0x406819
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.00402390
cmp dword [ebp - 0x844], 0x10
lea ecx, [ebp - 0x874]
push ecx
push 1
lea eax, [ebp - 0x858]
mov dword [ebp - 0x82c], 0xf
cmovae eax, dword [ebp - 0x858]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x830], 0
mov byte [ebp - 0x840], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4068c8
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0046a2f0
add esp, 0xc
mov dword [ebp - 0x878], 0x400
lea eax, [ebp - 0x878]
mov dword [ebp - 0x87c], 1
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x87c]
push eax
push 0
push 0x49ef1c
push dword [ebp - 0x874]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x874]
test eax, eax
je 0x40695d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov eax, dword [ebp - 0x844]
cmp eax, 0x10
jb 0x4068e8
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.00402390
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x844], 0xf
mov dword [ebp - 0x848], 0
mov byte [ebp - 0x858], 0
cmp eax, 0x10
jb 0x406918
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00402390
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x40693f
inc ecx
push ecx
push dword [ebp + 0x20]
lea ecx, [ebp + 0x20]
call fcn.00402390
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00451a48
mov esp, ebp
pop ebp
ret 0x30
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x400
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0046a2f0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
sub esp, 0x18
lea eax, [ebp - 0x810]
mov ecx, esp
push eax
call fcn.00406e40
call fcn.004477f0
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
push eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00401d80
call fcn.004477f0
add esp, 0x18
mov bl, 1
jmp 0x4068ca