Function at 0x402da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4050d6
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x114], esi
lea ecx, [ebp - 0x15c]
push 0x42
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 0
push str.SYSTEMCurrentControlSetControlIDConfigDBHardware_Profiles0001
movups xmmword [ebp - 0x15c], xmm0
mov dword [ebp - 0x148], 0
call fcn.00402060
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
push str.HwProfileGuid
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x118], 0
call fcn.00402060
xorps xmm0, xmm0
mov dword [ebp - 0x130], 0xf
xor edi, edi
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x134], edi
mov byte [ebp - 0x144], 0
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x148], 0x10
lea eax, [ebp - 0x15c]
push ecx
cmovae eax, dword [ebp - 0x15c]
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f10
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x114], pe_nt_image_headers32
push ecx
push edi
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push edi
push eax
push dword [ebp - 0x160]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f04
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ee2
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.004037b0
mov edi, dword [ebp - 0x134]
push dword [ebp - 0x160]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp edi, 1
jb 0x40303a
lea eax, [edi - 1]
lea ecx, [edi - 2]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
cmovae eax, dword [ebp - 0x144]
push ecx
inc eax
mov ecx, esi
push eax
call fcn.00402060
mov ecx, dword [ebp - 0x130]
cmp ecx, 0x10
jb 0x402f90
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402f86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40300d
push ecx
push edx
call fcn.00404032
add esp, 8
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x402fc6
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402fbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40300d
push ecx
push edx
call fcn.00404032
add esp, 8
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp ecx, 0x10
jb 0x40301d
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403013
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403013
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404032
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403f42
mov esp, ebp
pop ebp
ret
call fcn.00401f50
int3