Function at 0x482f1c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48315d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call sym.StartupControl.exe__Registry_TRegistry_SetCurrentKey_qqrp6HKEY__
xor eax, eax
push ebp
push 0x483133
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call sym.StartupControl.exe__Registry_TRegistry_GetKeyInfo_qqrr20Registry_TRegKeyInfo
test al, al
je 0x483117
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004c2b34
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x483117
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004c2a84
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
test eax, eax
jne 0x48310b
mov eax, dword [ebp - 0x14]
call fcn.004c2a84
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.004c2bb4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call sym.StartupControl.exe__Registry_TRegistry_GetKey_qqrx20System_UnicodeString
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x48310b
xor eax, eax
push ebp
push 0x483104
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call sym.StartupControl.exe__Registry_TRegistry_SetCurrentKey_qqrp6HKEY__
xor eax, eax
push ebp
push 0x4830e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.004c2a84
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.004c2bb4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call sym.StartupControl.exe__Registry_TRegistry_CreateKey_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x14]
call fcn.004c2a84
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.004c2bb4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call sym.StartupControl.exe__Registry_TRegistry_GetKey_qqrx20System_UnicodeString
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4830c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00482de0
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00482f1c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4830ca
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0xc]
dec dword [ebp - 0x28]
jne 0x482fa7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48313a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call sym.StartupControl.exe__Registry_TRegistry_SetCurrentKey_qqrp6HKEY__
ret