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

Disassembly:
push edi
xor eax, eax
mov edx, 0x25005c
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xabc
mov word [ebp - 0xa68], ax
mov eax, 0x730025
movdqa xmm0, xmmword [str.___s__s__n_s____x]
mov dword [ebp - 0xa88], eax
mov eax, dword [0x419678]
movaps xmmword [ebp - 0xa78], xmm0
mov dword [ebp - 0xa84], edx
mov dword [ebp - 0xa80], 0x73
mov dword [ebp - 0xa5c], eax
lea eax, [ebp - 0xa9c]
mov dword [ebp - 0xa54], 5
mov dword [ebp - 0xa40], 0x100
mov dword [ebp - 0xa58], 0xffff0001
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 4], str.TypeLib_
mov dword [esp], 0x80000000
mov dword [ebp - 0xaa4], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x4052e3
lea ebx, [ebp - 0x818]
mov esi, 0xffffffff
mov dword [ebp - 0xaa8], esi
lea esi, [esi]
add dword [ebp - 0xaa8], 1
mov eax, dword [ebp - 0xaa8]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa9c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4052a7
lea eax, [ebp - 0xa98]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa9c]
mov dword [esp], eax
mov eax, dword [ebp - 0xaa4]
call eax
sub esp, 0xc
test eax, eax
jne 0x405060
mov dword [ebp - 0xaa0], 0xffffffff
lea esi, [esi]
nop
add dword [ebp - 0xaa0], 1
lea esi, [ebp - 0xa18]
mov eax, dword [ebp - 0xaa0]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa98]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405290
lea eax, [ebp - 0xa94]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa98]
mov dword [esp], eax
mov eax, dword [ebp - 0xaa4]
call eax
sub esp, 0xc
test eax, eax
jne 0x4050d0
mov dword [ebp - 0xa8c], 0x200
lea edi, [ebp - 0xa8c]
lea esi, [ebp - 0x618]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xa94]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
jne 0x40517d
cmp word [ebp - 0x618], 0
jne 0x4052ef
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa44], eax
mov eax, dword [sym.imp.user32.dll_wsprintfW]
lea edx, [ebp - 0x418]
lea esi, [ebp - 0x218]
mov dword [ebp - 0xab0], eax
mov eax, dword [ebp - 0xa94]
mov dword [ebp - 0xaac], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0xa18]
sub esp, 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xa88]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov edx, dword [ebp - 0xaac]
mov dword [esp], edx
mov eax, dword [ebp - 0xab0]
call eax
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, dword [ebp - 0xaac]
mov ecx, eax
mov byte [eax], 2
xor eax, eax
lea esi, [esi]
nop
movzx edi, word [edx + eax]
mov word [ecx + eax + 2], di
add eax, 2
test di, di
jne 0x405208
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [ecx + eax + 0x202], dx
add eax, 2
test dx, dx
jne 0x405220
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax + 0x402], dx
add eax, 2
test dx, dx
jne 0x405240
lea eax, [ebp - 0xa5c]
mov dword [ebp - 0xa30], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x419030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4050d0
mov eax, dword [ebp - 0xa98]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405060
mov eax, dword [ebp - 0xa9c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x419678]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp + 0xc], eax
mov eax, dword [0x419030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
lea edx, [ebp - 0x418]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [ebp - 0xaac], edx
mov dword [esp + 4], 0xdd
mov eax, dword [0x41903c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov edx, dword [ebp - 0xaac]
mov eax, esi
sub esp, 0x10
cmp word [ebp - 0x618], 0
je 0x405341
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405338
lea ecx, [ebp - 0xa18]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0xa78]
mov dword [ebp - 0xaac], edx
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_wsprintfW]
mov dword [esp + 4], ecx
mov dword [ebp - 0xab0], eax
call eax
lea eax, [ebp - 0xa90]
mov dword [ebp - 0xa44], esi
mov dword [ebp - 0xa8c], 0x100
lea esi, [ebp - 0x218]
mov dword [esp + 8], eax
mov dword [esp + 4], str.0win32
mov eax, dword [ebp - 0xa94]
mov dword [esp], eax
mov eax, dword [ebp - 0xaa4]
call eax
sub esp, 0xc
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xa90]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov eax, dword [ebp - 0xa90]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0xaac]
sub esp, 4
jmp 0x4051a0