Function at 0x404950
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 0x404992
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 + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 0xea
je 0x404980
test eax, eax
je 0x404a40
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
mov dword [ebp - 0x2c], eax
call eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x404a90
mov eax, dword [ebp - 0x30]
cmp eax, 2
jne 0x404b80
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404a05
cmp word [eax], 0
jne 0x404bb8
mov eax, dword [ebp - 0x24]
mov dword [esp], 0x40930c
mov dword [esp + 4], eax
call sym._output_string
mov dword [esp], 0
xor eax, eax
xor ecx, ecx
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], 0x40930c
mov dword [esp + 4], eax
call sym._output_string
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, esi
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call sym._output_value
mov dword [esp], 0x4092e6
call sym._output_string
mov eax, dword [sym.imp.ucrtbase.dll_free]
inc dword [0x40818c]
mov dword [esp], esi
mov dword [ebp - 0x2c], eax
call eax
mov edx, dword [ebp + 8]
test edx, edx
je 0x404b80
mov dword [esp], 0x202
mov eax, dword [ebp - 0x28]
call eax
mov esi, eax
mov eax, dword [ebp - 0x24]
cmp word [eax], 0
je 0x404bce
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x404ab0
sub eax, dword [ebp - 0x24]
sar eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ebx
xor edi, edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x101
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x404b78
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp], ecx
call sym._build_subkey_path
lea edx, [ebp - 0x10]
mov dword [esp + 4], esi
mov dword [esp + 0x10], edx
mov edx, dword [0x4081b0]
mov ebx, eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], 0
or edx, 0x20019
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x404b90
mov dword [esp], ebx
mov eax, dword [ebp - 0x2c]
inc edi
call eax
jmp 0x404ac6
mov dword [esp], esi
mov eax, dword [ebp - 0x2c]
call eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov dword [esp], 1
mov ecx, ebx
call sym._query_value
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x404b64
mov dword [esp], 0x6f
call sym._output_message
mov eax, 1
jmp 0x404a2f
mov dword [ebp - 0x30], 0
jmp 0x404ac1