Function at 0x467254
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x46725c
push ebx
xor eax, eax
push ebp
push 0x467511
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x467520
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4674e9
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x4674e0
mov eax, dword [ebp - 0x1c]
add eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.DLL_LocalAlloc_1
mov ebx, eax
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, 0
jb 0x4674da
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
jne 0x4674da
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
mov edx, ebx
mov ecx, 0
call fcn.00405fa4
mov edx, dword [ebp - 0x20]
mov ecx, 0x467554
mov eax, dword [ebp - 0x10]
call fcn.0043f4d4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
mov edx, ebx
mov ecx, 0
call fcn.00405fa4
mov edx, dword [ebp - 0x24]
mov ecx, 0x46756c
mov eax, dword [ebp - 0x10]
call fcn.0043f4d4
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405eec
call fcn.00406084
cmp eax, 4
jne 0x467366
mov eax, dword [ebp - 8]
cmp dword [eax], 0x16
je 0x4674cd
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x467580
call fcn.0041b1c0
test eax, eax
jne 0x4674cd
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov edx, 0x467598
call fcn.00406180
mov eax, dword [ebp - 0x28]
call fcn.00406480
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4674cd
lea eax, [ebp - 4]
push eax
mov ecx, 0x4675ac
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0043f4d4
cmp dword [ebp - 4], 0
je 0x4674c4
mov eax, dword [ebp - 4]
mov edx, 0x4675c0
call fcn.00406468
je 0x4674c4
mov eax, dword [ebp - 4]
mov edx, 0x4675d8
call fcn.00406468
je 0x4674c4
mov eax, dword [ebp - 4]
mov edx, 0x4675f0
call fcn.00406468
je 0x4674c4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, 0x467608
call fcn.00406180
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, 0x80000002
call fcn.0043f4d4
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.00405d8c
lea eax, [ebp - 8]
push eax
mov ecx, 0x467640
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0043f4d4
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x467658
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0043f4d4
cmp dword [ebp - 0xc], 0
je 0x467488
push 0x467684
push dword [ebp - 0xc]
push 0x467694
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00406270
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4676a4
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0043f4d4
cmp dword [ebp - 0xc], 0
je 0x4674b1
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x467608
call fcn.00406180
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00467044
pop ecx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4672e6
push ebx
call sub.KERNEL32.DLL_LocalFree
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467518
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00405d00
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405d00
ret