Function at 0x46455c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x464564
push ebx
xor eax, eax
push ebp
push 0x464812
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x464820
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4647ea
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 0x4647e1
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_2
mov ebx, eax
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, 0
jb 0x4647db
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 0x4647db
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
mov edx, ebx
mov ecx, 0
call fcn.004073f4
mov edx, dword [ebp - 0x20]
mov ecx, 0x464854
mov eax, dword [ebp - 0x10]
call fcn.00434eb0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
mov edx, ebx
mov ecx, 0
call fcn.004073f4
mov edx, dword [ebp - 0x24]
mov ecx, 0x46486c
mov eax, dword [ebp - 0x10]
call fcn.00434eb0
mov eax, dword [ebp - 8]
call fcn.004072a0
cmp eax, 4
jne 0x464667
mov eax, dword [ebp - 8]
cmp dword [eax], 0x16
je 0x4647ce
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x464880
call fcn.0040e354
test eax, eax
jne 0x4647ce
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov edx, 0x464898
call fcn.00407530
mov eax, dword [ebp - 0x28]
call fcn.004076c4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4647ce
lea eax, [ebp - 4]
push eax
mov ecx, 0x4648ac
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00434eb0
cmp dword [ebp - 4], 0
je 0x4647c5
mov eax, dword [ebp - 4]
mov edx, 0x4648c0
call fcn.0040767c
je 0x4647c5
mov eax, dword [ebp - 4]
mov edx, 0x4648d8
call fcn.0040767c
je 0x4647c5
mov eax, dword [ebp - 4]
mov edx, 0x4648f0
call fcn.0040767c
je 0x4647c5
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, 0x464908
call fcn.00407530
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, 0x80000002
call fcn.00434eb0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.00407268
lea eax, [ebp - 8]
push eax
mov ecx, 0x464940
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00434eb0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x464958
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00434eb0
cmp dword [ebp - 0xc], 0
je 0x464789
push 0x464984
push dword [ebp - 0xc]
push 0x464994
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004075b4
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4649a4
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00434eb0
cmp dword [ebp - 0xc], 0
je 0x4647b2
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x464908
call fcn.00407530
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046434c
pop ecx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4645ee
push ebx
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464819
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00406e54
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406e54
ret