Function at 0x4840d3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fb39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 4], 0
mov eax, dword [0x5be480]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov ecx, dword [0x5be480]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 8]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x484169
mov dword [ebp - 0x50], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x50]
jmp 0x484375
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4841f2
cmp dword [ebp - 0x38], 0xea
je 0x4841f2
cmp dword [ebp - 0x38], 0x7a
je 0x4841f2
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x54]
jmp 0x484375
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx + ecx + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x48424b
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x58]
jmp 0x484375
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x4c]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4842ff
mov edx, dword [ebp - 0x48]
push edx
push 0x5b264c
lea eax, [ebp - 0x28]
push eax
call fcn.0054ab7c
add esp, 0xc
mov ecx, dword [ebp - 0x48]
push ecx
push str.S_1_5_19_Classes
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4842f4
mov edx, dword [ebp - 0x48]
push edx
push str.S_1_5_20_Classes
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4842f4
mov eax, dword [ebp - 0x48]
push eax
push 0x5b269c
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4842f4
mov ecx, dword [ebp - 0x48]
push ecx
push str.S_1_5_19SoftwareClasses
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4842f4
mov edx, dword [0x5c2fc8]
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, 0x5c2fc0
call fcn.0054c5b3
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
jmp 0x48431b
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx + ecx + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x38], 0x103
je 0x484330
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x24]
jb 0x484252
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret