Function at 0x42a138
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x42a140
push ebx
xor eax, eax
push ebp
push 0x42a3e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42a3f0
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42a3bc
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 - 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x42a3b3
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 0x42a3ad
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 - 4]
push eax
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
jne 0x42a3ad
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00404758
mov edx, dword [ebp - 0x20]
mov ecx, 0x42a40c
mov eax, dword [ebp - 4]
call fcn.0041d9bc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00404758
mov edx, dword [ebp - 0x24]
mov ecx, 0x42a420
mov eax, dword [ebp - 4]
call fcn.0041d9bc
mov eax, dword [ebp - 0x10]
call fcn.00404820
cmp eax, 4
jne 0x42a239
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x16
je 0x42a3a0
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x42a430
call fcn.00407e78
test eax, eax
jne 0x42a3a0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, 0x42a444
call fcn.0040486c
mov eax, dword [ebp - 0x28]
call fcn.00404a20
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42a3a0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x42a454
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0041d9bc
cmp dword [ebp - 0xc], 0
je 0x42a397
mov eax, dword [ebp - 0xc]
mov edx, 0x42a464
call fcn.0040496c
je 0x42a397
mov eax, dword [ebp - 0xc]
mov edx, 0x42a478
call fcn.0040496c
je 0x42a397
mov eax, dword [ebp - 0xc]
mov edx, 0x42a48c
call fcn.0040496c
je 0x42a397
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov edx, 0x42a4a0
call fcn.0040486c
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, 0x80000002
call fcn.0041d9bc
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
call fcn.004045f8
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x42a4d4
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0041d9bc
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x42a4e8
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0041d9bc
cmp dword [ebp - 0x14], 0
je 0x42a35b
push 0x42a510
push dword [ebp - 0x14]
push 0x42a51c
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004048e0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x42a528
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0041d9bc
cmp dword [ebp - 0x14], 0
je 0x42a384
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x42a4a0
call fcn.0040486c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00429f30
pop ecx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x42a1ca
push ebx
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a3eb
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00404584
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404584
ret