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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408020
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1060
call fcn.00407e70
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1048]
xor esi, esi
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetEnumIDE
push 0x80000002
mov dword [ebp - 0x105c], esi
mov dword [ebp - 0x1048], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403130
mov eax, dword [ebp - 0x1048]
test eax, eax
je 0x403130
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x104c]
mov dword [ebp - 0x101c], esi
push ecx
lea ecx, [ebp - 0x101c]
mov dword [ebp - 0x104c], esi
push ecx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x403124
cmp dword [ebp - 0x101c], esi
je 0x403124
mov eax, dword [ebp - 0x104c]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x1058], esi
mov dword [ebp - 0x1068], edi
cmp dword [ebp - 0x101c], esi
jbe 0x403117
nop
mov eax, dword [ebp - 0x104c]
inc eax
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x104c]
add esp, 0xc
inc eax
mov dword [ebp - 0x1044], 0
push eax
push edi
push esi
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x403104
lea eax, [ebp - 0x1044]
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403104
mov eax, dword [ebp - 0x1044]
test eax, eax
je 0x403104
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1050]
mov dword [ebp - 0x1038], 0
push ecx
lea ecx, [ebp - 0x1038]
mov dword [ebp - 0x1050], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x1050]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov eax, dword [ebp - 0x1050]
inc eax
mov dword [ebp - 0x1060], edi
push eax
push edi
push 0
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4030eb
mov dword [ebp - 0x1054], eax
lea eax, [ebp - 0x1054]
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4030eb
push 0x1000
push eax
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x103c], 0xfff
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x1018]
push eax
push 0
push 0
push str.FriendlyName
push dword [ebp - 0x1054]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4030df
xorps xmm0, xmm0
mov dword [ebp - 0x1024], eax
mov edx, 0xf
movups xmmword [ebp - 0x1034], xmm0
mov dword [ebp - 0x1020], edx
mov byte [ebp - 0x1034], al
lea ecx, [ebp - 0x1018]
mov dword [ebp - 4], eax
xor edi, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402fc0
sub ecx, esi
je 0x40305d
nop
movzx eax, byte [ebp + edi - 0x1018]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ecx, dword [ebp - 0x1024]
add esp, 4
mov esi, dword [ebp - 0x1020]
mov dl, al
mov byte [ebp - 0x1040], dl
cmp ecx, esi
jae 0x40301d
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x1024], eax
lea eax, [ebp - 0x1034]
cmova eax, dword [ebp - 0x1034]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x40303c
push dword [ebp - 0x1040]
mov byte [ebp - 0x1064], 0
push dword [ebp - 0x1064]
push ecx
lea ecx, [ebp - 0x1034]
call fcn.00402080
lea eax, [ebp - 0x1018]
inc edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403046
sub eax, edx
cmp edi, eax
jb 0x402fd0
mov edx, dword [ebp - 0x1020]
cmp edx, 0xf
lea eax, [ebp - 0x1034]
push str.vbox
cmova eax, dword [ebp - 0x1034]
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov ecx, dword [ebp - 0x105c]
add esp, 8
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x105c], ecx
mov ecx, dword [ebp - 0x1020]
cmp ecx, 0xf
jbe 0x4030d3
mov edx, dword [ebp - 0x1034]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4030c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403150
push ecx
push edx
call fcn.004070ec
add esp, 8
mov edi, dword [ebp - 0x1060]
mov esi, dword [ebp - 0x1058]
push dword [ebp - 0x1054]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1068]
inc esi
mov dword [ebp - 0x1058], esi
cmp esi, dword [ebp - 0x101c]
jb 0x402e40
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x105c]
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406f99
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3