Function at 0x140001200
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, [rbp + 0x28]
mov qword [rsp + 0x50], rsi
xor esi, esi
lea rdx, str.SOFTWAREOEMPower_Management
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], rax
mov edi, esi
mov qword [rbp + 0x28], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001285
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x10]
lea rdx, str.LightSensor
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x18]
xor r9d, r9d
xor r8d, r8d
mov dword [rbp + 0x10], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x28]
test eax, eax
cmove edi, dword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140007a00
mov dword [0x1402225d4], 0x64
mov dword [0x140222534], 0x64
mov dword [0x1402228f4], 0x64
mov dword [0x140222744], 0x64
mov dword [0x1402228a0], 0x64
mov dword [0x140222578], 0x64
mov dword [0x140222710], 0x64
test eax, eax
jne 0x140001308
mov dword [0x1402226f0], 0x64
mov dword [0x1402228b4], 0x64
mov dword [0x14022256c], 0x64
mov dword [0x1402225cc], 0x64
mov dword [0x140222754], 0x64
jmp 0x140001326
mov dword [0x1402226f0], esi
mov dword [0x1402228b4], esi
mov dword [0x14022256c], esi
mov dword [0x1402225cc], esi
mov dword [0x140222754], esi
mov qword [rsp + 0x58], rbx
mov dword [0x1402228e0], 1
mov dword [0x1402228a8], 1
mov dword [0x140222550], 0x4b0
mov dword [0x1402226f4], 0x384
mov dword [0x1402228c4], esi
mov dword [0x140222598], esi
mov dword [0x140222528], esi
mov dword [0x140222770], 0x708
mov dword [0x140222764], esi
mov dword [0x140222580], esi
mov dword [0x1402226d4], esi
mov dword [0x14022252c], 0x3840
mov dword [0x1402228c0], 1
mov dword [0x1402226ec], 1
mov dword [0x14022255c], 1
mov dword [0x140222730], 1
mov dword [0x1402226cc], 2
mov dword [0x1402226e0], 2
mov dword [0x14022257c], 1
mov dword [0x1402225f8], 1
mov dword [0x1402225c4], esi
mov dword [0x14022270c], esi
mov dword [0x140222520], esi
mov dword [0x140222590], esi
mov dword [0x1402225b4], 2
mov dword [0x1402228f0], 2
mov dword [0x140222588], esi
mov dword [0x140222780], 0x384
mov dword [0x1402226dc], esi
mov dword [0x1402225e8], 0x1e0
mov dword [0x140222750], 1
mov dword [0x140222904], esi
mov dword [0x14022288c], 0x64
mov dword [0x1402228e8], 0x50
mov dword [0x140222570], 1
mov dword [0x140222748], 1
mov dword [0x140222560], esi
mov dword [0x140222890], 2
mov dword [0x140222584], 5
mov dword [0x140222778], 5
mov dword [0x140222554], esi
mov dword [0x140222740], esi
mov dword [0x140222784], 0xa
mov dword [0x140222548], 0xa
mov dword [0x140222530], 1
mov dword [0x1402226e8], 1
mov dword [0x14022276c], 1
mov dword [0x1402225bc], 1
mov dword [0x1402225e4], 0x384
mov dword [0x140222720], 0x78
mov dword [0x1402226f8], esi
mov dword [0x140222868], 3
mov dword [0x1402228e4], 0x708
mov dword [0x14022253c], 0x384
mov dword [0x140222758], esi
mov dword [0x1402228d4], esi
mov dword [0x140222704], 0xa8c0
mov dword [0x14022275c], 0x2a30
mov dword [0x140222874], 1
mov dword [0x140222880], 1
mov dword [0x1402226c8], 1
mov dword [0x1402228f8], 1
mov dword [0x1402228bc], 1
mov dword [0x140222878], 1
mov dword [0x1402225ec], esi
mov dword [0x1402228ec], esi
mov dword [0x1402225c0], 1
mov dword [0x140222888], 2
mov dword [0x1402228d8], 2
mov dword [0x1402225fc], esi
mov dword [0x140222538], 0x258
mov dword [0x1402225a4], 0x258
mov dword [0x14022289c], esi
mov dword [0x1402225f0], 0x12c
mov dword [0x140222594], 1
mov dword [0x14022278c], esi
mov dword [0x140222788], 0x64
mov dword [0x1402226e4], 0x28
mov dword [0x14022287c], 1
mov dword [0x140222738], esi
lea rax, [rbp - 0x30]
lea rdx, str.SOFTWAREOEMPower_Management
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x1402225dc], esi
mov qword [rsp + 0x20], rax
mov dword [0x14022254c], 2
mov dword [0x1402228dc], 5
mov dword [0x140222718], 5
mov dword [0x1402228b8], esi
mov dword [0x1402225a8], esi
mov dword [0x1402228d0], 0xa
mov dword [0x140222700], 0xa
mov dword [0x1402228ac], 1
mov dword [0x140222790], 1
mov dword [0x140222898], 2
mov dword [0x14022271c], 2
mov dword [0x1402225d8], 1
mov dword [0x140222794], 1
mov dword [0x140222564], 0x258
mov dword [0x1402225a0], 0x78
mov dword [0x1402225d0], esi
mov dword [0x1402225e0], 3
mov dword [0x14022258c], 0x384
mov dword [0x140222798], 0x258
mov dword [0x140222870], esi
mov dword [0x14022273c], esi
mov dword [0x14022279c], 0xa8c0
mov dword [0x1402228b0], 0x1c20
mov dword [0x140222708], 1
mov dword [0x1402226d0], 1
mov dword [0x140222558], 1
mov dword [0x140222724], 1
mov dword [0x14022277c], 1
mov dword [0x14022274c], 1
mov dword [0x1402228a4], esi
mov dword [0x1402226fc], esi
mov dword [0x140222728], 1
mov dword [0x14022259c], 2
mov dword [0x14022286c], 2
mov dword [0x1402225c8], esi
mov dword [0x140222524], 0x258
mov dword [0x1402225ac], 0x12c
mov dword [0x140222734], esi
mov dword [0x14022272c], 0xb4
mov dword [0x140222574], 1
mov dword [0x1402225b8], esi
mov dword [0x140222894], 0x64
mov dword [0x140222540], 0xa
mov dword [0x1402225f4], esi
mov dword [0x140222884], esi
mov dword [0x140222774], esi
mov dword [0x1402226d8], 2
mov dword [0x140222714], 5
mov dword [0x140222900], 5
mov dword [0x1402228fc], esi
mov dword [0x140222760], esi
mov dword [0x140222768], 0xa
mov dword [0x140222568], 0xa
mov dword [0x140222544], 1
mov dword [0x1402228cc], 1
mov dword [0x1402228c8], 2
mov dword [0x1402225b0], 2
mov qword [rbp - 0x30], rsi
mov dword [rbp + 0x20], esi
mov dword [rbp + 0x18], esi
mov dword [rbp + 0x10], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001999
mov rcx, qword [rbp - 0x30]
lea rax, [rbp + 0x10]
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea rdx, str.BIOS_TYPE
xor r8d, r8d
mov dword [rbp + 0x10], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001999
cmp dword [rbp + 0x18], 4
jne 0x140001999
cmp dword [rbp + 0x10], 4
jne 0x140001999
cmp dword [rbp + 0x20], 3
jne 0x140001999
mov dword [0x140222588], 0x258
mov dword [0x140222780], 0x258
mov dword [0x140222528], 0x258
mov dword [0x140222770], 0x258
mov dword [0x1402226dc], 0xb4
mov dword [0x1402225e8], 0xb4
mov dword [0x1402226cc], 1
mov dword [0x1402226e0], 1
mov dword [0x1402228e8], 0x1e
mov dword [0x140222538], 0x258
mov dword [0x1402225a4], 0x258
mov dword [0x1402228e4], 0x258
mov dword [0x14022253c], 0x258
mov dword [0x14022289c], 0xb4
mov dword [0x1402225f0], 0xb4
mov dword [0x140222898], 1
mov dword [0x14022271c], 1
mov dword [0x1402226e4], 0x1e
mov dword [0x140222524], 0x258
mov dword [0x1402225ac], 0x258
mov dword [0x14022258c], 0x258
mov dword [0x140222798], 0x258
mov dword [0x140222734], 0xb4
mov dword [0x14022272c], 0xb4
mov dword [0x1402228c8], 1
mov dword [0x1402225b0], 1
mov dword [0x140222540], 0x1e
jmp 0x1400019e0
test edi, edi
jne 0x1400019bd
mov dword [0x1402228e8], 0x50
mov dword [0x1402226e4], 0x28
mov dword [0x140222540], 0xa
jmp 0x1400019e0
cmp edi, 1
jne 0x1400019fe
mov dword [0x1402228e8], 0x14
mov dword [0x1402226e4], 0x14
mov dword [0x140222540], 0x14
mov dword [0x14022288c], 0x64
mov dword [0x140222788], 0x64
mov dword [0x140222894], 0x64
lea rax, [rbp - 0x30]
lea rdx, str.SOFTWAREOEMModelSpecific
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rbp - 0x30], rsi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x20], esi
mov dword [rbp + 0x18], esi
mov dword [rbp + 0x10], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rsp + 0x48]
test eax, eax
jne 0x140001a9c
mov rcx, qword [rbp - 0x30]
lea rax, [rbp + 0x10]
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea rdx, str.Brightness_DC_HighPerformance
xor r8d, r8d
mov dword [rbp + 0x10], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001a9c
cmp dword [rbp + 0x18], 4
jne 0x140001a9c
cmp dword [rbp + 0x10], 4
jne 0x140001a9c
mov eax, dword [rbp + 0x20]
mov ecx, dword [0x1402228e8]
cmp eax, 0x64
cmovbe ecx, eax
mov dword [0x1402228e8], ecx
lea rax, [rbp - 0x30]
lea rdx, str.SOFTWAREOEMModelSpecific
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rbp - 0x30], rsi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x20], esi
mov dword [rbp + 0x18], esi
mov dword [rbp + 0x10], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001b38
mov rcx, qword [rbp - 0x30]
lea rax, [rbp + 0x10]
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea rdx, str.Brightness_DC_Balance
xor r8d, r8d
mov dword [rbp + 0x10], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001b38
cmp dword [rbp + 0x18], 4
jne 0x140001b38
cmp dword [rbp + 0x10], 4
jne 0x140001b38
mov eax, dword [rbp + 0x20]
mov r8d, dword [0x1402226e4]
cmp eax, 0x64
cmovbe r8d, eax
mov dword [0x1402226e4], r8d
lea rax, [rbp - 0x30]
lea rdx, str.SOFTWAREOEMModelSpecific
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rbp - 0x30], rsi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x20], esi
mov dword [rbp + 0x18], esi
mov dword [rbp + 0x10], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rsi, qword [rsp + 0x50]
test eax, eax
jne 0x140001bd6
mov rcx, qword [rbp - 0x30]
lea rax, [rbp + 0x10]
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea rdx, str.Brightness_DC_PowerSaver
xor r8d, r8d
mov dword [rbp + 0x10], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001bd6
cmp dword [rbp + 0x18], 4
jne 0x140001bd6
cmp dword [rbp + 0x10], 4
jne 0x140001bd6
mov eax, dword [rbp + 0x20]
mov ecx, dword [0x140222540]
cmp eax, 0x64
cmovbe ecx, eax
mov dword [0x140222540], ecx
mov rbx, qword [rsp + 0x58]
add rsp, 0x60
pop rbp
ret