Function at 0x4071b0
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1030
call fcn.0041d300
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x102c], eax
push esi
push edi
mov ecx, 0x26
lea edi, [esp + 0xc48]
mov esi, str.SoftwareHewlett_PackardHP_OMEN_ControlProfilesCurrent_SettingsLighting_
lea eax, [esp + 0xce2]
rep movsd dword es:[edi], dword [esi]
push 0x34e
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0040ce90
add esp, 0xc
lea eax, [esp + 0x448]
push 0x800
push 0
push eax
call fcn.0040ce90
add esp, 0xc
cmp dword [0x42d3bc], 0
je 0x407242
push str.ApplyOMENLightingLEDColorCurrentSettingsRegistryToWMI___Start
lea eax, [esp + 0x44c]
push 0x400
push eax
call fcn.00401120
add esp, 0xc
lea ecx, [esp + 0x448]
call fcn.004035d0
call fcn.00403c20
test eax, eax
je 0x40771b
push 0x423938
lea eax, [esp + 0x244]
push 0x104
push eax
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4072ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x244]
push eax
push str.GetUserName_fail__s__GetLastError__:_08X
lea eax, [esp + 0x454]
push 0x400
push eax
call fcn.00401120
add esp, 0x14
jmp 0x4072cd
lea eax, [esp + 0x240]
push eax
push str.GetUserName_pass__s
lea eax, [esp + 0x450]
push 0x400
push eax
call fcn.00401120
add esp, 0x10
lea ecx, [esp + 0x448]
call fcn.004035d0
lea eax, [esp + 8]
push eax
push 0x2001b
push 0
lea eax, [esp + 0xc54]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [0x42d3bc]
test eax, eax
je 0x40733b
push esi
lea eax, [esp + 0xc4c]
push eax
push str.RegOpenKeyEx_HKEY_CURRENT_USER_szRegPath:_s_lRegResult:_08X_n
lea eax, [esp + 0x454]
push 0x400
push eax
call fcn.00401120
add esp, 0x14
lea eax, [esp + 0x448]
push eax
call fcn.0040adb0
mov eax, dword [0x42d3bc]
add esp, 4
test esi, esi
jne 0x4076f4
test eax, eax
je 0x40736d
push str.lRegResult__ERROR_SUCCESS
lea eax, [esp + 0x44c]
push 0x400
push eax
call fcn.00401120
add esp, 0xc
lea ecx, [esp + 0x448]
call fcn.004035d0
push str.GamingKey
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], 0
push 0x104
push eax
call fcn.00401120
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
add esp, 0xc
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
test eax, eax
jne 0x4073cb
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x18], al
mov eax, ecx
shr eax, 8
push str.Left
mov byte [esp + 0x1d], al
lea eax, [esp + 0x3c]
push 0x104
push eax
mov byte [esp + 0x26], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
test eax, eax
jne 0x407435
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x1b], al
mov eax, ecx
shr eax, 8
push str.Center
mov byte [esp + 0x20], al
lea eax, [esp + 0x3c]
push 0x104
push eax
mov byte [esp + 0x29], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
test eax, eax
jne 0x40749f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x1e], al
mov eax, ecx
shr eax, 8
push str.Right
mov byte [esp + 0x23], al
lea eax, [esp + 0x3c]
push 0x104
push eax
mov byte [esp + 0x2c], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
test eax, eax
jne 0x407509
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x21], al
mov eax, ecx
shr eax, 8
push str.WASD
mov byte [esp + 0x26], al
lea eax, [esp + 0x3c]
push 0x104
push eax
mov byte [esp + 0x2f], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
test eax, eax
jne 0x407573
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x24], al
mov eax, ecx
shr eax, 8
push str.PowerButton
mov byte [esp + 0x29], al
lea eax, [esp + 0x3c]
push 0x104
push eax
mov byte [esp + 0x32], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
test eax, eax
jne 0x4075dd
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x27], al
mov eax, ecx
shr eax, 8
push str.UnderChassis
mov byte [esp + 0x2c], al
lea eax, [esp + 0x3c]
push 0x104
push eax
mov byte [esp + 0x35], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
test eax, eax
jne 0x407647
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2a], al
mov eax, ecx
shr eax, 8
push str.Speakers
mov byte [esp + 0x2f], al
lea eax, [esp + 0x3c]
push 0x104
push eax
mov byte [esp + 0x38], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
test eax, eax
jne 0x4076b1
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call esi
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2f], cl
lea ecx, [esp + 0x18]
mov byte [esp + 0x2e], al
mov word [esp + 0x30], 0
mov byte [esp + 0x32], 0
call fcn.00408430
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
jmp 0x40771b
push esi
push str.RegOpenKeyEx_fail_lRegResult:_08X
lea eax, [esp + 0x450]
push 0x400
push eax
call fcn.00401120
add esp, 0x10
lea ecx, [esp + 0x448]
call fcn.004035d0
call fcn.004040b0
cmp dword [0x42d3bc], 0
je 0x407757
lea eax, [esp + 0x240]
push eax
push str.ApplyOMENLightingLEDColorCurrentSettingsRegistryToWMI_return___end
lea eax, [esp + 0x450]
push 0x400
push eax
call fcn.00401120
add esp, 0x10
lea ecx, [esp + 0x448]
call fcn.004035d0
mov ecx, dword [esp + 0x1034]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040aea4
mov esp, ebp
pop ebp
ret