Function at 0x14012fef0
Capabilities:
Create pipe
Create thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x14027f238]
xor rax, rsp
mov qword [rbp], rax
mov r15, r8
mov r14, rdx
mov qword [rbp - 0x48], rdx
xor r12d, r12d
lea r13, [0x14028d510]
nop word [rax + rax]
lea rdx, [rbp - 0x20]
mov rcx, r14
call fcn.1401377c0
cmp qword [rax + 0x18], 8
jb 0x14012ff56
mov rax, qword [rax]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x40000003
mov r9d, 0xff
mov r8d, 6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov r8, qword [rbp - 8]
cmp r8, 8
jb 0x14012ffa7
inc r8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x20]
call fcn.1400be810
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r12
mov word [rbp - 0x20], r12w
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140130252
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
call fcn.140130620
nop
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r15
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.14012ed30
movzx ebx, al
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x140130368
test bl, bl
je 0x140130123
mov dword [rsp + 0x50], r12d
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x140130123
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
lea r8d, [rax + 0x39]
lea rdx, str._Wa3rdPartyHost::ServerListen__GetOverlappedResult_failed
lea rcx, [rbp - 0x40]
call fcn.1400be520
nop
call fcn.1400da700
mov rbx, rax
mov qword [rbp - 0x58], r13
mov rcx, r13
call fcn.140166958
test eax, eax
je 0x1401300a0
mov ecx, eax
call fcn.1401664c4
mov byte [rbp - 0x50], 1
cmp qword [rbx + 0x48], 0
je 0x1401300e0
mov dword [rsp + 0x40], 1
mov rdi, qword [rbx + 0x48]
test rdi, rdi
je 0x14013026d
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call rbx
jmp 0x1401300ed
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400d5cb0
nop
mov rcx, r13
call fcn.14016697c
test eax, eax
je 0x140130101
mov ecx, eax
call fcn.1401664c4
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14013011b
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.1400be810
mov rcx, rsi
jmp 0x140130223
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
mov r8d, 0x2f
lea rdx, str._Wa3rdPartyHost::ServerListen__client_connected
lea rcx, [rbp - 0x40]
call fcn.1400be520
nop
call fcn.1400da700
mov rbx, rax
mov qword [rsp + 0x58], r13
mov rcx, r13
call fcn.140166958
test eax, eax
je 0x14013016b
mov ecx, eax
call fcn.1401664c4
mov byte [rsp + 0x60], 1
cmp qword [rbx + 0x48], 0
je 0x1401301ac
mov dword [rsp + 0x40], 1
mov rdi, qword [rbx + 0x48]
test rdi, rdi
je 0x140130273
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call rbx
jmp 0x1401301b9
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400d5cb0
nop
mov rcx, r13
call fcn.14016697c
test eax, eax
je 0x1401301cd
mov ecx, eax
call fcn.1401664c4
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x1401301e7
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.1400be810
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140165194
mov qword [rax + 8], rsi
mov qword [rax], r14
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140136e70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140130279
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14012ff40
mov rcx, rbx
call fcn.1401305c0
mov edx, 8
mov rcx, rbx
call fcn.14016591c
jmp 0x14012ff40
mov edx, 0x1f4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140130464
jmp 0x14012ff40
call fcn.140166364
nop
call fcn.140166364
nop
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
mov r8d, 0x32
lea rdx, str._Wa3rdPartyHost::ServerListen__CreateThread_failed
lea rcx, [rbp - 0x40]
call fcn.1400be520
nop
call fcn.1400da700
mov rbx, rax
mov qword [rsp + 0x58], r13
mov rcx, r13
call fcn.140166958
test eax, eax
je 0x1401302c1
mov ecx, eax
call fcn.1401664c4
mov byte [rsp + 0x60], 1
cmp qword [rbx + 0x48], 0
je 0x140130304
mov dword [rsp + 0x40], 1
mov rdi, qword [rbx + 0x48]
test rdi, rdi
jne 0x1401302e4
call fcn.140166364
int3
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call rbx
jmp 0x140130311
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400d5cb0
nop
mov rcx, r13
call fcn.14016697c
test eax, eax
je 0x140130325
mov ecx, eax
call fcn.1401664c4
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x140130340
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.1400be810
nop
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140130464
mov rcx, rbx
call fcn.1401305c0
mov edx, 8
mov rcx, rbx
call fcn.14016591c
jmp 0x140130464
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
mov r8d, 0x34
lea rdx, str._Wa3rdPartyHost::ServerListen__cancelHandle_signaled
lea rcx, [rbp - 0x40]
call fcn.1400be520
nop
call fcn.1400da700
mov rbx, rax
mov qword [rsp + 0x58], r13
mov rcx, r13
call fcn.140166958
test eax, eax
je 0x1401303b0
mov ecx, eax
call fcn.1401664c4
mov byte [rsp + 0x60], 1
cmp qword [rbx + 0x48], 0
je 0x1401303f3
mov dword [rsp + 0x40], 1
mov rdi, qword [rbx + 0x48]
test rdi, rdi
jne 0x1401303d3
call fcn.140166364
int3
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call rbx
jmp 0x140130400
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400d5cb0
nop
mov rcx, r13
call fcn.14016697c
test eax, eax
je 0x140130414
mov ecx, eax
call fcn.1401664c4
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14013042e
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.1400be810
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140130458
mov rcx, rbx
call fcn.1401305c0
mov edx, 8
mov rcx, rbx
call fcn.14016591c
nop
mov rcx, r14
call fcn.1400d0880
mov al, 1
jmp 0x14013046e
mov rcx, r14
call fcn.1400d0880
xor al, al
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140164ec0
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret