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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1034
call fcn.0041d300
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x1030], eax
push ebx
push esi
push edi
mov ecx, 0x26
lea edi, [esp + 0xc50]
mov esi, str.SoftwareHewlett_PackardHP_OMEN_ControlProfilesCurrent_SettingsLighting_
lea eax, [esp + 0xcea]
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 + 0x450]
push 0x800
push 0
push eax
call fcn.0040ce90
add esp, 0xc
cmp dword [0x42d3bc], 0
je 0x407de3
push str.ApplyOMENLightingCurrentSettingsRegistryToWMI___Start
lea eax, [esp + 0x454]
push 0x400
push eax
call fcn.00401120
add esp, 0xc
lea ecx, [esp + 0x450]
call fcn.004035d0
call fcn.00403c20
test eax, eax
je 0x4083d5
push 0x423938
lea eax, [esp + 0x24c]
push 0x104
push eax
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x407e4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x24c]
push eax
push str.GetUserName_fail__s__GetLastError__:_08X
lea eax, [esp + 0x45c]
push 0x400
push eax
call fcn.00401120
add esp, 0x14
jmp 0x407e6e
lea eax, [esp + 0x248]
push eax
push str.GetUserName_pass__s
lea eax, [esp + 0x458]
push 0x400
push eax
call fcn.00401120
add esp, 0x10
lea ecx, [esp + 0x450]
call fcn.004035d0
lea eax, [esp + 0xc]
push eax
push 0x2001b
push 0
lea eax, [esp + 0xc5c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [0x42d3bc]
test eax, eax
je 0x407edc
push esi
lea eax, [esp + 0xc54]
push eax
push str.RegOpenKeyEx_HKEY_CURRENT_USER_szRegPath:_s_lRegResult:_08X_n
lea eax, [esp + 0x45c]
push 0x400
push eax
call fcn.00401120
add esp, 0x14
lea eax, [esp + 0x450]
push eax
call fcn.0040adb0
mov eax, dword [0x42d3bc]
add esp, 4
test esi, esi
jne 0x4083ae
test eax, eax
je 0x407f0e
push str.lRegResult__ERROR_SUCCESS
lea eax, [esp + 0x454]
push 0x400
push eax
call fcn.00401120
add esp, 0xc
lea ecx, [esp + 0x450]
call fcn.004035d0
push str.GamingKey
lea eax, [esp + 0x44]
mov dword [esp + 0x1c], 0
push 0x104
push eax
call fcn.00401120
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
add esp, 0xc
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x407f6c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x20], al
mov eax, ecx
shr eax, 8
push str.Left
mov byte [esp + 0x25], al
lea eax, [esp + 0x44]
push 0x104
push eax
mov byte [esp + 0x2e], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x407fd6
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x23], al
mov eax, ecx
shr eax, 8
push str.Center
mov byte [esp + 0x28], al
lea eax, [esp + 0x44]
push 0x104
push eax
mov byte [esp + 0x31], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x408040
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x26], al
mov eax, ecx
shr eax, 8
push str.Right
mov byte [esp + 0x2b], al
lea eax, [esp + 0x44]
push 0x104
push eax
mov byte [esp + 0x34], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x4080aa
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x29], al
mov eax, ecx
shr eax, 8
push str.WASD
mov byte [esp + 0x2e], al
lea eax, [esp + 0x44]
push 0x104
push eax
mov byte [esp + 0x37], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x408114
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2c], al
mov eax, ecx
shr eax, 8
push str.PowerButton
mov byte [esp + 0x31], al
lea eax, [esp + 0x44]
push 0x104
push eax
mov byte [esp + 0x3a], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x40817e
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2f], al
mov eax, ecx
shr eax, 8
push str.UnderChassis
mov byte [esp + 0x34], al
lea eax, [esp + 0x44]
push 0x104
push eax
mov byte [esp + 0x3d], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x4081e8
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, ecx
shr eax, 8
push str.Speakers
mov byte [esp + 0x37], al
lea eax, [esp + 0x44]
push 0x104
push eax
mov byte [esp + 0x40], cl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x408252
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x35], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x37], cl
lea ecx, [esp + 0x20]
mov byte [esp + 0x36], al
mov word [esp + 0x38], 0
mov byte [esp + 0x3a], 0
call fcn.00408430
push str.AnimatedSpeakers
lea eax, [esp + 0x44]
push 0x104
push eax
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x4082d1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
xor ebx, ebx
lea eax, [esp + 0x40]
cmp dword [esp + 0x18], ebx
push str.AnimatedKeyboard
push 0x104
push eax
setne bl
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x40832a
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
cmp dword [esp + 0x18], 0
mov ecx, ebx
jne 0x408337
xor edx, edx
jmp 0x40833c
mov edx, 1
call fcn.004088a0
push str.LEDBrightness
lea eax, [esp + 0x44]
push 0x104
push eax
call fcn.00401120
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x408391
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call esi
mov cl, byte [esp + 0x1f]
call fcn.00408c60
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
jmp 0x4083d5
push esi
push str.RegOpenKeyEx_fail_lRegResult:_08X
lea eax, [esp + 0x458]
push 0x400
push eax
call fcn.00401120
add esp, 0x10
lea ecx, [esp + 0x450]
call fcn.004035d0
call fcn.004040b0
cmp dword [0x42d3bc], 0
je 0x408411
lea eax, [esp + 0x248]
push eax
push str.ApplyOMENLightingCurrentSettingsRegistryToWMI_return___end
lea eax, [esp + 0x458]
push 0x400
push eax
call fcn.00401120
add esp, 0x10
lea ecx, [esp + 0x450]
call fcn.004035d0
mov ecx, dword [esp + 0x103c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040aea4
mov esp, ebp
pop ebp
ret