Function at 0x4e7dd7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576cd9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x30], 0
mov eax, dword [0x5be480]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x40060]
mov dword [ebp - 0x5c], edx
lea eax, [ebp - 0x40]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x40050]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4e7e62
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0054d328
mov eax, dword [ebp - 0x4c]
jmp 0x4e7fde
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4e7ed3
cmp dword [ebp - 0x34], 0xea
je 0x4e7ed3
cmp dword [ebp - 0x34], 0x7a
je 0x4e7ed3
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0054d328
mov eax, dword [ebp - 0x50]
jmp 0x4e7fde
mov edx, dword [ebp - 0x48]
lea eax, [edx + edx + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4e7f1e
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x54], 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0054d328
mov eax, dword [ebp - 0x54]
jmp 0x4e7fde
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x48]
add eax, 1
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4e7f80
mov ecx, dword [ebp - 0x44]
push ecx
push 0x5bd5ec
lea edx, [ebp - 0x24]
push edx
call fcn.0054ab7c
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
call fcn.0054c5b3
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
jmp 0x4e7f9c
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
lea ecx, [eax + eax + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x34], 0x103
je 0x4e7fb1
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x20]
jb 0x4e7f25
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0054d328
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4