Function at 0x180014f50
Capabilities:
Create thread
Resume thread
Terminate process

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x190
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x180], rax
lea rcx, [rsp + 0x50]
call fcn.180014480
nop
cmp qword [rsp + 0x170], 0
jne 0x180014fba
lea rcx, str.c:_xscp.txt
call fcn.180003cf0
lea rcx, [0x1800339e8]
call fcn.180003e40
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae rcx, qword [rsp + 0x88]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea rcx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 0x10
cmovae rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [rbp + 0x18]
call fcn.1800199c8
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800150c1
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 0x10
cmovae rcx, qword [rsp + 0xd8]
lea r9, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 0x10
cmovae r9, qword [rsp + 0xb0]
lea r8, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae r8, qword [rsp + 0x88]
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.180014a30
mov rdi, rax
jmp 0x1800150c4
mov rdi, rbp
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x178]
lea rax, [rcx + 0xc]
mov qword [rsp + 0x28], rax
lea rax, [0x1800338d0]
mov qword [rsp + 0x20], rax
lea r9, [0x18002e50b]
lea r8, [0x1800338cc]
mov ecx, dword [rcx + 8]
call fcn.180013620
mov rsi, rax
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x18001515d
lea rcx, [rbx + 0x1e088]
mov r8d, 0xfff
mov rdx, qword [rax + 8]
call fcn.180018920
mov dword [rbx + 0x1e080], ebp
mov dword [rbx + 0x1e084], ebp
mov dword [rbx + 0x1e07c], ebp
mov byte [rbx + 0x1f088], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x9c40
mov dword [rbx + 0x1e084], eax
mov rcx, rsi
call fcn.180001800
mov r11, qword [rsp + 0x178]
test r11, r11
je 0x180015175
mov dword [r11], ebp
lea rcx, [rsp + 0x50]
call fcn.180013cd0
lea r11, [rsp + 0x40]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x180014f20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800151b3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x180014ef0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800151e7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rcx, str.P2PPlatGuard_Start
call fcn.180003e40
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180017f70
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret