Function at 0x4622d4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4622dc
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x4625b9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4625c8
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462584
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 0x46257b
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 0x462575
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 0x462575
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00404990
mov edx, dword [ebp - 0x20]
mov ecx, 0x4625e4
mov eax, dword [ebp - 4]
call fcn.0046220c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00404990
mov edx, dword [ebp - 0x24]
mov ecx, 0x4625f8
mov eax, dword [ebp - 4]
call fcn.0046220c
mov eax, dword [ebp - 0x10]
call fcn.00404a58
cmp eax, 4
jne 0x4623d7
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x16
je 0x462568
push 0x7fffffff
mov esi, dword [0x533404]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x462608
call esi
test eax, eax
jne 0x462568
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, 0x46261c
call fcn.00404aa4
mov eax, dword [ebp - 0x28]
call fcn.00404c58
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462568
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x46262c
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0046220c
cmp dword [ebp - 0xc], 0
je 0x46255f
mov eax, dword [ebp - 0xc]
mov edx, 0x46263c
call fcn.00404ba4
je 0x46255f
mov eax, dword [ebp - 0xc]
mov edx, 0x462650
call fcn.00404ba4
je 0x46255f
mov eax, dword [ebp - 0xc]
mov edx, 0x462664
call fcn.00404ba4
je 0x46255f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov edx, 0x462678
call fcn.00404aa4
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, 0x80000002
call fcn.0046220c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
call fcn.00404820
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4626ac
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0046220c
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4626c0
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0046220c
cmp dword [ebp - 0x14], 0
je 0x4624fe
push 0x4626e8
push dword [ebp - 0x14]
push 0x4626f4
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404b18
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x462700
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0046220c
cmp dword [ebp - 0x14], 0
je 0x462527
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x462678
call fcn.00404aa4
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x14]
call fcn.004050e8
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x10]
call fcn.004050e8
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0xc]
call fcn.004050e8
mov eax, dword [ebp - 0x3c]
pop edx
pop ecx
call fcn.00462040
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 0x462368
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 0x4625c0
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404f5c
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.004047ac
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004047ac
ret