Function at 0x140007220
Capabilities:
Acquire debug privileges
Create thread
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x140054118]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r15, rcx
call fcn.14000705c
mov edi, eax
mov dword [rsp + 0x30], eax
lea rcx, str.SeDebugPrivilege
call fcn.140008df8
lea rcx, str.SeImpersonatePrivilege
call fcn.140008df8
lea rcx, [r15 + 0x298]
call fcn.140011260
xor r13d, r13d
mov dword [rsp + 0x78], r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x48], r13
lea rdx, str.SoftwareIntelDisplayigfxcui
xor ecx, ecx
call fcn.140004fdc
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400072fc
mov dword [rsp + 0x70], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x7c]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x40], r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x60], r13
lea rdx, str.SoftwareIntelDisplayigfxcuiMISC
mov ebx, 1
mov ecx, ebx
call fcn.140004fdc
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140007410
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 3]
xor r8d, r8d
lea rdx, str.InstallStage
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rsp + 0x78], 3
jne 0x1400073f5
lea rdx, str.AutoApplyProfileFeature
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x90], r13
mov r9d, 0x2001f
lea r8, str.SoftwareIntelDisplayigfxcuiMISC
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x80]
call fcn.140006b2c
test eax, eax
jne 0x1400073e2
lea rdx, str.AutoApplyProfileFeature
mov rbx, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x1400073f5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r13
jmp 0x1400073ea
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400073f5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r13
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
mov ebx, 1
cmp dword [rsp + 0x78], 3
ja 0x140007425
call fcn.14000dce8
mov dl, bl
xor ecx, ecx
call fcn.14000df24
lea rdx, str.SoftwareIntelDisplayigfxcui
xor ecx, ecx
call fcn.140004fdc
mov r14, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000748a
mov dword [rsp + 0x70], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x7c]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x40], r13d
mov eax, dword [rsp + 0x78]
cmp eax, 3
jae 0x1400074a4
lea rcx, [0x140056030]
call fcn.1400094bc
jmp 0x14000766a
test eax, eax
je 0x14000766a
mov qword [rsp + 0x9c], 5
mov dword [rsp + 0xb4], r13d
mov dword [rsp + 0x98], 0x20
movups xmm0, xmmword [0x140038d48]
movdqu xmmword [rsp + 0xa4], xmm0
mov r8d, ebx
lea rdx, [rsp + 0x98]
mov rcx, qword [r15 + 0x268]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov qword [0x140056020], rax
mov r8d, ebx
lea rdx, [0x14003d968]
mov rcx, qword [r15 + 0x268]
call qword [sym.imp.USER32.dll_RegisterPowerSettingNotification]
mov qword [0x140056028], rax
lea rcx, [rsp + 0x68]
call fcn.1400012a0
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0xc8], rax
lea edi, [rax + 0x6d]
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.1400156c0
mov dword [rsp + 0xd9], ebx
mov dword [rsp + 0xd1], ebx
xor eax, eax
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], eax
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
mov dword [rsp + 0xd5], ebx
cmp eax, ebx
jne 0x14000759a
mov al, byte [rsp + 0x80]
neg al
sbb ecx, ecx
add ecx, 2
mov dword [rsp + 0xd5], ecx
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
mov r8d, edi
mov edx, 5
lea rcx, [rsp + 0x68]
call fcn.14000146c
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x140007658
cmp byte [rsp + 0xb8], r13b
jne 0x140007658
movzx eax, word [rsp + 0xeb]
mov ecx, 0x1000
and ax, cx
cmp r13w, ax
jne 0x1400075f9
test byte [rsp + 0xeb], 4
je 0x14000764c
mov rcx, r15
call fcn.1400061fc
test eax, eax
jne 0x14000764c
lea rbx, [r15 + 0x2a0]
mov qword [rsp + 0x20], rbx
lea r9, [0x140039120]
xor edx, edx
lea r8d, [rax + 0x17]
lea rcx, [0x140038f40]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
cmovs edi, r13d
mov dword [rsp + 0x30], edi
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x1400386f0]
mov ebx, 1
mov edx, ebx
mov rcx, r15
call fcn.1400043a8
jmp 0x140007660
mov edi, r13d
mov dword [rsp + 0x30], r13d
lea rcx, [rsp + 0x68]
call fcn.1400012b0
call fcn.14000635c
test al, al
je 0x1400076aa
mov dword [rsp + 0x70], r13d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [0x140003410]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400076aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rsi, rsi
je 0x1400076b9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r14, r14
je 0x1400076c8
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x1400076ce
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140013ad0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret