Function at 0x140015520
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 [0x140048370]
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 [0x1400343a0]
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 0x1400155ce
xor edx, edx
mov rcx, qword [rdi + 8]
call rax
mov qword [rdi + 0x70], rax
cmp qword [rdi + 0x50], 0
jne 0x14001560e
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.140019d30
mov r9d, ebx
lea r8, str.RegisterDeviceNotification_failed_with_error__ld...
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14001815c
jmp 0x14001563a
xor esi, esi
mov word [rbp - 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x4e]
call fcn.140019d30
lea r8, str.RegisterDeviceNotification_succeeded
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14001815c
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.1400140e0
mov byte [rsp + 0x30], 0
cmp qword [rdi + 0x68], 0
sete al
test al, al
jne 0x14001594c
mov rcx, rdi
call fcn.1400167a0
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400156a3
mov ecx, 0x80004003
call fcn.140016e80
int3
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x2f8]
mov rcx, rdi
call fcn.140016700
mov dword [rsp + 0x48], esi
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400156ce
mov ecx, 0x80004003
call fcn.140016e80
int3
mov rax, qword [rcx]
lea r8, [0x14004f280]
lea rdx, [rsp + 0x48]
call qword [rax + 0x418]
mov dword [rsp + 0x38], esi
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400156fb
mov ecx, 0x80004003
call fcn.140016e80
int3
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x338]
cmp dword [rsp + 0x38], 1
jne 0x14001572f
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140015724
mov ecx, 0x80004003
call fcn.140016e80
int3
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x2e0]
cmp qword [rdi + 0x68], 0
sete al
test al, al
jne 0x140015770
mov rbx, qword [rdi + 0x68]
test rbx, rbx
jne 0x14001574f
mov ecx, 0x80004003
call fcn.140016e80
int3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x468]
test eax, eax
jns 0x140015770
lea r8, [0x140031910]
mov rdx, rbx
mov ecx, eax
call fcn.140016e90
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400124b0
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140015791
mov ecx, 0x80004003
call fcn.140016e80
int3
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rdi + 0x78]
call qword [rax + 0x470]
test eax, eax
js 0x1400157fc
cmp dword [rdi + 0x78], 1
jne 0x1400157fc
mov dword [rsp + 0x34], esi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x140014820]
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 0x1400157ee
mov ecx, 0x80004003
call fcn.140016e80
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x2e0]
cmp byte [rsp + 0x30], 0
jne 0x14001590b
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 0x14001590b
mov word [rbp - 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x4e]
call fcn.140019d30
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 0x1400158b3
lea r8, [rsp + 0x50]
lea rdx, [0x140034618]
lea rcx, [rbp - 0x50]
call fcn.14001abcc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400158c6
test rax, rax
je 0x14001590b
lea rax, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400122a0
nop
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140015902
mov ecx, 0x80004003
call fcn.140016e80
nop
mov rdx, rax
call fcn.140012430
nop
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14001591f
mov ecx, 0x80004003
call fcn.140016e80
int3
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x4d0]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14001593e
mov ecx, 0x80004003
call fcn.140016e80
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x350]
mov edx, 0x6b
mov rcx, rdi
call fcn.140013940
mov dword [r14], 1
mov word [rbp + 0x1c0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1c2]
call fcn.140019d30
lea r8, str.1._Ready_for_clients_to_establish_connections...
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.14001815c
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.140019d00
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret