Function at 0x4053b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 0x800
push esi
push ebx
mov ebx, eax
sub esp, 0x44
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [esp], 0x800
mov dword [ebp - 0x28], eax
call eax
mov esi, eax
jmp 0x4053f2
mov edi, dword [ebp - 0x1c]
mov dword [esp], esi
mov dword [esp + 4], edi
call dword [sym.imp.ucrtbase.dll_realloc]
mov esi, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 0xea
je 0x4053e0
test eax, eax
je 0x405498
mov dword [ebp - 0x2c], eax
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
call edi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4054e3
mov eax, dword [ebp - 0x2c]
cmp eax, 2
jne 0x405487
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40545f
cmp word [eax], 0
jne 0x405610
mov eax, dword [ebp - 0x24]
mov dword [esp], 0x40a4a8
mov dword [esp + 4], eax
call sym._output_string
mov dword [esp], 0
xor ecx, ecx
xor eax, eax
mov edx, 1
call sym._output_value
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov dword [esp], 0x40a4a8
mov dword [esp + 4], eax
call sym._output_string
mov eax, dword [ebp - 0x1c]
mov ecx, esi
mov dword [esp], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
call sym._output_value
mov dword [esp], 0x40a482
call sym._output_string
add dword [0x40c084], 1
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
call edi
mov edx, dword [ebp + 8]
test edx, edx
je 0x405487
mov dword [esp], 0x202
mov eax, dword [ebp - 0x28]
call eax
mov edx, eax
mov eax, dword [ebp - 0x24]
cmp word [eax], 0
je 0x405626
nop
add eax, 2
cmp word [eax], 0
jne 0x405500
mov ecx, dword [ebp - 0x24]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
xor esi, esi
mov edi, edx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x101
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x405600
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._build_subkey_path
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [0x40c080]
mov dword [esp + 8], 0
or eax, 0x20019
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x4055d0
mov eax, dword [ebp - 0x28]
add esi, 1
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
jmp 0x40551a
mov dword [esp], 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call sym._query_value
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x4055b5
mov edx, edi
mov edi, dword [ebp - 0x2c]
mov dword [esp], edx
call edi
jmp 0x405487
mov dword [esp], 0x6f
call sym._output_message
mov eax, 1
jmp 0x405489
mov dword [ebp - 0x30], 0
jmp 0x405513