Function at 0x46bf54
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x46bf5c
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x46c24a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x46c258
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46c215
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_RegQueryInfoKeyA
test eax, eax
jne 0x46c20c
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 0x46c206
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 0x46c206
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
mov edx, ebx
mov ecx, 0
call fcn.00405df0
mov edx, dword [ebp - 0x20]
mov ecx, 0x46c278
mov eax, dword [ebp - 0x10]
call fcn.0046be84
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
mov edx, ebx
mov ecx, 0
call fcn.00405df0
mov edx, dword [ebp - 0x24]
mov ecx, 0x46c290
mov eax, dword [ebp - 0x10]
call fcn.0046be84
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405d4c
call fcn.00405ed0
cmp eax, 4
jne 0x46c068
mov eax, dword [ebp - 8]
cmp dword [eax], 0x16
je 0x46c1f9
push 0x7fffffff
mov esi, dword [0x69402c]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x46c2a4
call esi
test eax, eax
jne 0x46c1f9
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov edx, 0x46c2bc
call fcn.00405f80
mov eax, dword [ebp - 0x28]
call fcn.004061f8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46c1f9
lea eax, [ebp - 4]
push eax
mov ecx, 0x46c2d0
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0046be84
cmp dword [ebp - 4], 0
je 0x46c1f0
mov eax, dword [ebp - 4]
mov edx, 0x46c2e4
call fcn.004061e0
je 0x46c1f0
mov eax, dword [ebp - 4]
mov edx, 0x46c2fc
call fcn.004061e0
je 0x46c1f0
mov eax, dword [ebp - 4]
mov edx, 0x46c314
call fcn.004061e0
je 0x46c1f0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, 0x46c32c
call fcn.00405f80
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, 0x80000002
call fcn.0046be84
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.00405bec
lea eax, [ebp - 8]
push eax
mov ecx, 0x46c364
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0046be84
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x46c37c
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0046be84
cmp dword [ebp - 0xc], 0
je 0x46c18f
push 0x46c3a8
push dword [ebp - 0xc]
push 0x46c3b8
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040604c
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x46c3c8
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0046be84
cmp dword [ebp - 0xc], 0
je 0x46c1b8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x46c32c
call fcn.00405f80
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0xc]
call fcn.00406dd4
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
call fcn.00406dd4
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 4]
call fcn.00406dd4
mov eax, dword [ebp - 0x3c]
pop edx
pop ecx
call fcn.0046bcb4
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 0x46bfe8
push ebx
call sub.kernel32.dll_LocalFree
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 0x46c251
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00406ba0
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00405b60
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405b60
ret