Function at 0x4d874c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a75d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x74], ecx
and dword [ebp - 0x28], 0
push str.getChildKeyByIndex
push dword [0x6ed2c8]
lea ecx, [ebp - 0x14]
call fcn.0061a2ae
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x74]
call fcn.004d8b3c
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
push dword [ebp + 0xc]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xea
jne 0x4d885d
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x30], 0x100
jb 0x4d880b
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov eax, dword [ebp + 8]
jmp 0x4d892a
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x30]
shl eax, 1
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x30], eax
xor ecx, ecx
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x30]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b9b3
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x74]
add eax, 0x34
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
je 0x4d885d
mov ecx, dword [ebp - 0x40]
call fcn.004d8db5
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40]
call fcn.004d8d62
cmp dword [ebp - 0x18], 0xea
je 0x4d878d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x4d888a
cmp dword [ebp - 0x78], 0x103
je 0x4d888c
cmp dword [ebp - 0x78], 0x5aa
je 0x4d888c
jmp 0x4d88b3
jmp 0x4d88c8
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov eax, dword [ebp + 8]
jmp 0x4d892a
push 0x1d9
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x18]
call fcn.004daaed
add esp, 0xc
cmp dword [ebp - 0x10], 0
jbe 0x4d88e7
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 2]
test eax, eax
jne 0x4d88e7
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x10]
push dword [ebp - 0x44]
mov ecx, dword [ebp + 0x14]
call fcn.00409128
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 8]
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x74]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x10