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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x70
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x48], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x44], eax
sub esp, 0x30
test eax, eax
jne 0x4048e0
mov eax, dword [ebp + 8]
or eax, dword [ebp - 0x24]
je 0x40467b
mov dword [esp + 4], esi
mov dword [esp], 0x40930c
call sym._output_string
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x200
mov esi, 0x100
mov dword [ebp - 0x4c], edi
call edi
mov dword [esp], 0x800
mov dword [ebp - 0x2c], eax
call edi
mov dword [ebp - 0x34], 0
mov ebx, eax
mov eax, dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x30], 0x800
mov dword [ebp - 0x3c], eax
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], esi
mov dword [esp + 0x18], ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x404730
cmp eax, 0xea
jne 0x404770
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x30]
jbe 0x404750
mov dword [esp], ebx
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], edi
call eax
mov dword [ebp - 0x30], edi
mov ebx, eax
jmp 0x4046c0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call sym._output_value
inc dword [ebp - 0x34]
jmp 0x4046c0
mov eax, dword [ebp - 0x2c]
lea edi, [esi + esi]
shl esi, 2
mov dword [esp + 4], esi
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x2c], eax
jmp 0x4046c0
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
call esi
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x34]
or eax, dword [ebp + 8]
jne 0x4048a0
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x4047a8
mov eax, dword [ebp - 0x44]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x202
mov eax, dword [ebp - 0x4c]
call eax
mov edi, eax
mov eax, dword [ebp - 0x40]
cmp word [eax], 0
je 0x40493b
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4047c8
sub eax, dword [ebp - 0x40]
sar eax, 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x38]
xor ebx, ebx
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], ebx
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x4048f8
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4048c0
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._build_subkey_path
mov dword [esp + 8], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [0x4081b0]
mov dword [esp + 4], edi
or eax, 0x20019
mov dword [esp], esi
mov dword [esp + 0xc], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x404910
mov eax, dword [ebp - 0x2c]
inc ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
jmp 0x4047e1
mov dword [esp], 0x4092e6
call sym._output_string
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x404796
jmp 0x4047a8
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], edi
inc ebx
mov dword [esp], str._1_2_n
mov dword [esp + 4], eax
call sym._output_string
jmp 0x4047e1
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x44]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov esi, dword [ebp - 0x30]
call esi
mov eax, dword [ebp - 0x44]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
mov edx, dword [ebp - 0x2c]
mov ecx, 1
mov eax, dword [ebp - 0x10]
call sym._query_all
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40488b
mov dword [ebp - 0x34], 0
jmp 0x4047d9