Function at 0x1400155e0
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 [0x140048360]
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 [0x140034320]
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 0x14001568e
xor edx, edx
mov rcx, qword [rdi + 8]
call rax
mov qword [rdi + 0x70], rax
cmp qword [rdi + 0x50], 0
jne 0x1400156ce
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.1400198d0
mov r9d, ebx
lea r8, str.RegisterDeviceNotification_failed_with_error__ld...
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.140018878
jmp 0x1400156fa
xor esi, esi
mov word [rbp - 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x4e]
call fcn.1400198d0
lea r8, str.RegisterDeviceNotification_succeeded
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.140018878
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.1400141a0
mov byte [rsp + 0x30], 0
cmp qword [rdi + 0x68], 0
sete al
test al, al
jne 0x140015a0c
mov rcx, rdi
call fcn.140016860
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140015763
mov ecx, 0x80004003
call fcn.140016fb0
int3
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x2f8]
mov rcx, rdi
call fcn.1400167c0
mov dword [rsp + 0x48], esi
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14001578e
mov ecx, 0x80004003
call fcn.140016fb0
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 0x1400157bb
mov ecx, 0x80004003
call fcn.140016fb0
int3
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x338]
cmp dword [rsp + 0x38], 1
jne 0x1400157ef
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400157e4
mov ecx, 0x80004003
call fcn.140016fb0
int3
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x2e0]
cmp qword [rdi + 0x68], 0
sete al
test al, al
jne 0x140015830
mov rbx, qword [rdi + 0x68]
test rbx, rbx
jne 0x14001580f
mov ecx, 0x80004003
call fcn.140016fb0
int3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x468]
test eax, eax
jns 0x140015830
lea r8, [0x140034118]
mov rdx, rbx
mov ecx, eax
call fcn.140016fc0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140012570
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140015851
mov ecx, 0x80004003
call fcn.140016fb0
int3
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rdi + 0x78]
call qword [rax + 0x470]
test eax, eax
js 0x1400158bc
cmp dword [rdi + 0x78], 1
jne 0x1400158bc
mov dword [rsp + 0x34], esi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x1400148e0]
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 0x1400158ae
mov ecx, 0x80004003
call fcn.140016fb0
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x2e0]
cmp byte [rsp + 0x30], 0
jne 0x1400159cb
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 0x1400159cb
mov word [rbp - 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x4e]
call fcn.1400198d0
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 0x140015973
lea r8, [rsp + 0x50]
lea rdx, [0x140034538]
lea rcx, [rbp - 0x50]
call fcn.14001a66c
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 0x140015986
test rax, rax
je 0x1400159cb
lea rax, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.140012370
nop
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400159c2
mov ecx, 0x80004003
call fcn.140016fb0
nop
mov rdx, rax
call fcn.1400124f0
nop
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400159df
mov ecx, 0x80004003
call fcn.140016fb0
int3
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x4d0]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400159fe
mov ecx, 0x80004003
call fcn.140016fb0
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x350]
mov edx, 0x6b
mov rcx, rdi
call fcn.140013a00
mov dword [r14], 1
mov word [rbp + 0x1c0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1c2]
call fcn.1400198d0
lea r8, str.1._Ready_for_clients_to_establish_connections...
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.140018878
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.1400198a0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret