Function at 0x140014160
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x3f8]
sub rsp, 0x4e0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140046350]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rdi, rcx
mov r14, qword [rbp + 0x420]
xor eax, eax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov dword [rbp - 0x5c], eax
mov dword [rbp - 0x78], 0x20
mov dword [rbp - 0x74], 5
movups xmm0, xmmword [0x140033360]
movups xmmword [rbp - 0x6c], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov qword [rdi + 0x50], rax
lea rcx, str.User32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.RegisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001420e
xor edx, edx
mov rcx, qword [rdi + 8]
call rax
mov qword [rdi + 0x70], rax
cmp qword [rdi + 0x50], 0
jne 0x14001424e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor esi, esi
mov word [rbp - 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x4e]
call fcn.140018400
mov r9d, ebx
lea r8, str.RegisterDeviceNotification_failed_with_error__ld...
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.140018ec0
jmp 0x14001427a
xor esi, esi
mov word [rbp - 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x4e]
call fcn.140018400
lea r8, str.RegisterDeviceNotification_succeeded
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.140018ec0
mov edx, 0xc9
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rbp - 0x50]
or r8, 0xffffffffffffffff
mov edx, 0x181
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, qword [rdi + 8]
call sub.WTSAPI32.dll_WTSRegisterSessionNotification
mov rcx, rdi
call fcn.1400131c0
mov byte [rsp + 0x30], 0
cmp qword [rdi + 0x68], 0
sete al
test al, al
jne 0x140014564
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400142db
mov ecx, 0x80004003
call fcn.140015570
int3
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x2f8]
mov rcx, rdi
call fcn.140015000
mov dword [rsp + 0x48], esi
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140014306
mov ecx, 0x80004003
call fcn.140015570
int3
mov rax, qword [rcx]
lea r8, [0x14004d25c]
lea rdx, [rsp + 0x48]
call qword [rax + 0x418]
mov dword [rsp + 0x38], esi
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140014333
mov ecx, 0x80004003
call fcn.140015570
int3
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x338]
cmp dword [rsp + 0x38], 1
jne 0x140014367
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14001435c
mov ecx, 0x80004003
call fcn.140015570
int3
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x2e0]
cmp qword [rdi + 0x68], 0
sete al
test al, al
jne 0x1400143a8
mov rbx, qword [rdi + 0x68]
test rbx, rbx
jne 0x140014387
mov ecx, 0x80004003
call fcn.140015570
int3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x468]
test eax, eax
jns 0x1400143a8
lea r8, [0x140030920]
mov rdx, rbx
mov ecx, eax
call fcn.140015580
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140011d20
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400143c9
mov ecx, 0x80004003
call fcn.140015570
int3
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rdi + 0x78]
call qword [rax + 0x470]
test eax, eax
js 0x140014434
cmp dword [rdi + 0x78], 1
jne 0x140014434
mov dword [rsp + 0x34], esi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x1400135d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140014426
mov ecx, 0x80004003
call fcn.140015570
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x2e0]
cmp byte [rsp + 0x30], 0
jne 0x140014545
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], esi
mov qword [rbp - 0x80], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareIntelDisplayigfxcuiprofiles_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014545
mov word [rbp - 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x4e]
call fcn.140018400
mov dword [rsp + 0x34], 0x208
mov dword [rsp + 0x4c], 1
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.AutoApplyProfileName
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400144eb
lea r8, [rsp + 0x50]
lea rdx, [0x1400335e8]
lea rcx, [rbp - 0x50]
call fcn.1400192bc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x50]
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140014500
test rax, rax
je 0x140014545
lea rax, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.140011b20
nop
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14001453c
mov ecx, 0x80004003
call fcn.140015570
nop
mov rdx, rax
call fcn.140011ca0
nop
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140014559
mov ecx, 0x80004003
call fcn.140015570
int3
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x4d0]
mov edx, 0x6b
mov rcx, rdi
call fcn.140012a20
mov dword [r14], 1
mov word [rbp + 0x1c0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1c2]
call fcn.140018400
lea r8, str.1._Ready_for_clients_to_establish_connections...
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.140018ec0
mov edx, 0xc9
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rbp + 0x1c0]
or r8, 0xffffffffffffffff
mov edx, 0x181
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.1400183d0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret