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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, 0x800
push ebx
sub esp, 0x5c
mov dword [esp], 0x800
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
call eax
mov ebx, eax
jmp 0x405292
mov dword [esp], ebx
mov esi, dword [ebp - 0x28]
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_realloc]
mov ebx, eax
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
xor esi, esi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
cmp eax, 0xea
je 0x405280
test eax, eax
je 0x405338
mov dword [esp], ebx
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x38], eax
call esi
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x405386
mov eax, dword [ebp - 0x38]
cmp eax, 2
jne 0x405478
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x405300
cmp word [eax], 0
jne 0x4054b0
mov dword [esp], 0x409428
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call sym._output_string
xor eax, eax
xor ecx, ecx
mov dword [esp], 0
mov edx, 1
call sym._output_value
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x409428
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call sym._output_string
mov eax, dword [ebp - 0x28]
mov ecx, ebx
mov edx, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call sym._output_value
mov dword [esp], 0x409402
call sym._output_string
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
inc dword [0x40c084]
call esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x405478
mov dword [esp], 0x202
mov eax, dword [ebp - 0x34]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x30]
cmp word [eax], 0
je 0x4054c6
jmp 0x4053b0
add eax, 2
cmp word [eax], 0
jne 0x4053b0
mov edx, dword [ebp - 0x30]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
xor eax, eax
mov esi, eax
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [ebp - 0x24], 0x101
call sym._RegEnumKeyExW_32
sub esp, 0x20
test eax, eax
jne 0x405470
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._build_subkey_path
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [0x40c080]
or eax, 0x20019
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
call sym._RegOpenKeyExW_20
mov ecx, dword [ebp - 0x34]
sub esp, 0x14
test eax, eax
je 0x405488
mov dword [esp], ecx
mov eax, dword [ebp - 0x38]
inc esi
call eax
jmp 0x4053ca
mov dword [esp], ebx
mov esi, dword [ebp - 0x38]
call esi
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
call sym._query_value
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RegCloseKey_4
mov ecx, dword [ebp - 0x34]
sub esp, 4
jmp 0x405458
mov dword [esp], 0x6f
call sym._output_message
mov eax, 1
jmp 0x40532a
mov dword [ebp - 0x3c], 0
jmp 0x4053c3