Function at 0x140004a40
Capabilities:
Create thread
Get session user name

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f8]
sub rsp, 0x6f0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002bb20]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov rax, rdx
mov rbx, rcx
mov qword [rcx + 0x10], rdx
lea rdx, [rcx + 0x2c]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x78]
call fcn.140008e70
nop
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, str.ExtraHelperCapabilitiesFlags
lea rcx, [rbp - 0x80]
call fcn.140008990
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x30], eax
lea rdi, [rbx + 0x78]
mov dword [rdi], 1
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140008e00
nop
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.140009080
test eax, eax
je 0x140004b35
mov qword [rsp + 0x20], rsi
mov r9, rdi
mov r8, rdi
lea rdx, str.UseSetProcessDPIAware
lea rcx, [rsp + 0x50]
call fcn.140008990
lea rcx, [rsp + 0x50]
call fcn.140008940
mov ecx, dword [rdi]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x140004b5e
cmp qword [rbx + 0x70], 0
je 0x140004b5e
call fcn.1400053a0
test eax, eax
jne 0x140004b5e
call fcn.140005350
xor edx, edx
lea rcx, str.SynTPEnhWndClass
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rbx + 0x18], rax
mov edx, 0x8000
mov rcx, qword [rbx + 0x10]
call fcn.140007e20
test eax, eax
jne 0x140004ba5
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140005300]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [rsp + 0x34], 0x101
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea r9, [rbp - 0x30]
lea r8, str..pipe_sA81FA0C8_FC78_41D6_89D1_4AE8D6B47686
mov edx, 0x200
lea rcx, [rbp + 0x1e0]
call fcn.14000b0d4
lea r9, [0x14001eff8]
lea r8, [0x14001f0cc]
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.140007b30
cmp qword [rax + 0x10], 0
setne dil
cmp qword [rbp - 0x40], 8
jb 0x140004c0a
mov rcx, qword [rbp - 0x58]
call fcn.140009b44
test dil, dil
je 0x140004c66
lea r9, [0x14001eff8]
lea r8, [0x14001f0cc]
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.140007b30
cmp qword [rax + 0x18], 8
jb 0x140004c32
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1e0]
lea r8, str._s_s
mov edx, 0x200
lea rcx, [rbp + 0x1e0]
call fcn.14000b0d4
cmp qword [rbp - 0x40], 8
jb 0x140004c66
mov rcx, qword [rbp - 0x58]
call fcn.140009b44
mov edx, 0x3d
lea rcx, [rbp + 0x1e0]
call fcn.140002bd0
mov qword [rbx + 0x68], rax
test rax, rax
je 0x140004c8b
mov rdx, rbx
mov rcx, rax
call fcn.140002020
lea rcx, [rbx + 8]
call fcn.14000af98
nop
lea rcx, [rsp + 0x48]
call fcn.140008f20
nop
lea rcx, [rsp + 0x78]
call fcn.140008f20
mov eax, 1
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.14000ac80
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret