Function at 0x4a5a70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x270
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
test eax, eax
jne 0x4a5cba
mov dword [ebp - 0x144], 0
lea edx, [ebp - 0x140]
mov eax, 0
mov ecx, 0x3f
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x100
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x44]
mov dword [esp + 0x2c], edx
lea edx, [ebp - 0x3c]
mov dword [esp + 0x28], edx
lea edx, [ebp - 0x38]
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x34]
mov dword [esp + 0x20], edx
lea edx, [ebp - 0x30]
mov dword [esp + 0x1c], edx
lea edx, [ebp - 0x2c]
mov dword [esp + 0x18], edx
lea edx, [ebp - 0x28]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
lea edx, [ebp - 0x20]
mov dword [esp + 8], edx
lea edx, [ebp - 0x144]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
call eax
sub esp, 0x30
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4a5cba
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4a5cba
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._calloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a5bc4
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x506d30
mov dword [esp + 8], str.w_list_all_keys
mov dword [esp + 4], 0x533
mov dword [esp], str.shared_syscheck_op.c
call dbg._merror_exit
mov dword [ebp - 0x10], 0
jmp 0x4a5c99
mov dword [ebp - 0x1c], 0x100
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x44]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x244]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
call eax
sub esp, 0x20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4a5c95
mov eax, dword [ebp - 0x10]
lea edx, [eax*4]
mov eax, dword [ebp - 0xc]
lea ebx, [edx + eax]
lea eax, [ebp - 0x244]
mov dword [esp], eax
call sym._strdup
mov dword [ebx], eax
mov eax, dword [ebx]
test eax, eax
jne 0x4a5c95
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x506d30
mov dword [esp + 8], str.w_list_all_keys
mov dword [esp + 4], 0x53e
mov dword [esp], str.shared_syscheck_op.c
call dbg._merror_exit
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x10], eax
jb 0x4a5bd0
mov eax, dword [ebp - 0x10]
lea edx, [eax*4]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [eax], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret