Function at 0x4824c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4824c8
push ecx
push ebx
xor eax, eax
push ebp
push 0x48276a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x482778
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x482742
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 0x482739
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 0x482733
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 0x482733
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00403e50
mov edx, dword [ebp - 0x20]
mov ecx, 0x482794
mov eax, dword [ebp - 4]
call fcn.00478b40
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00403e50
mov edx, dword [ebp - 0x20]
mov ecx, 0x4827a8
mov eax, dword [ebp - 4]
call fcn.00478b40
mov eax, dword [ebp - 0x10]
call fcn.00403f18
cmp eax, 4
jne 0x4825c2
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x16
je 0x482726
push 0xffffffffffffffff
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x4827b8
call fcn.0041a114
test eax, eax
jne 0x482726
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4827cc
call fcn.00403f64
mov eax, dword [ebp - 0x20]
call fcn.004040dc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x482726
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4827dc
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00478b40
cmp dword [ebp - 0xc], 0
je 0x48271d
mov eax, dword [ebp - 0xc]
mov edx, 0x4827ec
call fcn.00404028
je 0x48271d
mov eax, dword [ebp - 0xc]
mov edx, 0x482800
call fcn.00404028
je 0x48271d
mov eax, dword [ebp - 0xc]
mov edx, 0x482814
call fcn.00404028
je 0x48271d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov edx, 0x482828
call fcn.00403f64
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov eax, 0x80000002
call fcn.00478b40
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00403d34
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x48285c
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00478b40
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x482870
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00478b40
cmp dword [ebp - 0x14], 0
je 0x4826e1
push 0x482898
push dword [ebp - 0x14]
push 0x4828a4
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403fd8
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4828b0
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00478b40
cmp dword [ebp - 0x14], 0
je 0x48270a
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x482828
call fcn.00403f64
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004822b8
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 0x482553
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 0x482771
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403cc0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403cc0
ret