Function at 0x140054270
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400f4d50]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rcx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rsi + 0x60]
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r13d, r13d
or r14, 0xffffffffffffffff
movabs r15, 0x7ffffffffffffffe
nop word [rax + rax]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r13
mov word [rbp + 8], r13w
mov r8d, 7
lea rdx, str.S_1_1_0
lea rcx, [rbp + 8]
call fcn.140002510
nop
mov r8d, 7
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x20], r13
mov word [rbp - 0x30], r13w
mov rdi, qword [rbp + 0x18]
cmp rdi, 0xffffffffffffffff
cmova rdi, r14
cmp rdi, r15
ja 0x14005483a
cmp rdi, r8
jbe 0x140054366
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1400017a0
mov r8, qword [rbp - 0x18]
jmp 0x140054374
test rdi, rdi
jne 0x140054377
mov qword [rbp - 0x20], r13
mov word [rbp - 0x30], r13w
test rdi, rdi
setne al
test al, al
je 0x1400543bc
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
lea rcx, [rbp - 0x30]
cmp r8, 8
cmovae rcx, qword [rbp - 0x30]
lea rbx, [rdi + rdi]
mov r8, rbx
call fcn.140095540
mov qword [rbp - 0x20], rdi
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov word [rax + rbx], r13w
mov qword [rbp - 8], r13
mov dword [rbp], 0x10000000
mov dword [rbp + 4], 5
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140054130
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400543ec
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rbp - 0x18], 8
jb 0x1400543fd
mov rcx, qword [rbp - 0x30]
call fcn.140095520
nop
cmp qword [rbp + 0x20], 8
jb 0x14005440d
mov rcx, qword [rbp + 8]
call fcn.140095520
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r13
mov word [rbp + 8], r13w
mov r8d, 7
lea rdx, str.S_1_5_7
lea rcx, [rbp + 8]
call fcn.140002510
nop
mov r8d, 7
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x20], r13
mov word [rbp - 0x30], r13w
mov rdi, qword [rbp + 0x18]
cmp rdi, 0xffffffffffffffff
cmova rdi, r14
cmp rdi, r15
ja 0x14005482d
cmp rdi, r8
jbe 0x140054477
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1400017a0
mov r8, qword [rbp - 0x18]
jmp 0x140054485
test rdi, rdi
jne 0x140054488
mov qword [rbp - 0x20], r13
mov word [rbp - 0x30], r13w
test rdi, rdi
setne al
test al, al
je 0x1400544cd
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
lea rcx, [rbp - 0x30]
cmp r8, 8
cmovae rcx, qword [rbp - 0x30]
lea rbx, [rdi + rdi]
mov r8, rbx
call fcn.140095540
mov qword [rbp - 0x20], rdi
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov word [rbx + rax], r13w
mov qword [rbp - 8], r13
mov dword [rbp], 0x10000000
mov dword [rbp + 4], 2
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140054130
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400544fd
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rbp - 0x18], 8
jb 0x14005450e
mov rcx, qword [rbp - 0x30]
call fcn.140095520
nop
cmp qword [rbp + 0x20], 8
jb 0x14005451e
mov rcx, qword [rbp + 8]
call fcn.140095520
lea rcx, [rsp + 0x40]
call fcn.140053bc0
mov ebx, eax
test eax, eax
jne 0x1400547d9
lea rcx, [rsi + 0x30]
cmp qword [rcx + 0x18], 8
jb 0x140054540
mov rcx, qword [rcx]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x40000003
mov r9d, 0xff
mov r8d, 6
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400547cf
xor r9d, r9d
mov edx, 1
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400547b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400545c9
cmp eax, 0x3e5
jne 0x1400546fb
jmp 0x1400545d3
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], r12
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbp - 0x58]
cmp eax, 1
je 0x14005474a
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x140054733
mov ecx, reloc.WS2_32.dll_recv
call fcn.140095cd8
mov r9, rax
test rax, rax
je 0x140054633
mov rax, qword [rsi + 0x58]
mov qword [r9], rdi
mov qword [r9 + 8], rax
jmp 0x140054636
mov r9, r13
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
lea r8, [0x1400539b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14005471c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140054678
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140054687
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140054695
call fcn.14009667c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400542e0
mov rdi, qword [rsp + 0x60]
cmp rcx, rdi
je 0x1400546f1
lea rbx, [rcx + 0x18]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400546c0
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rbx], 8
jb 0x1400546cf
mov rcx, qword [rbx - 0x18]
call fcn.140095520
mov qword [rbx], 7
mov qword [rbx - 8], r13
mov word [rbx - 0x18], r13w
add rbx, 0x38
lea rax, [rbx - 0x18]
cmp rax, rdi
jne 0x1400546b1
mov rcx, qword [rsp + 0x58]
call fcn.140095520
jmp 0x1400542e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400547d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400547d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400547d9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14005476a
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140054779
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140054787
call fcn.14009667c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400547aa
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x60]
call fcn.140053e80
mov rcx, qword [rsp + 0x58]
call fcn.140095520
xor eax, eax
jmp 0x140054847
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400547d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400547d9
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400547e9
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400547f8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140054806
call fcn.14009667c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140054829
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x60]
call fcn.140053e80
mov rcx, qword [rsp + 0x58]
call fcn.140095520
mov eax, ebx
jmp 0x140054847
lea rcx, str.string_too_long
call fcn.140075718
nop
lea rcx, str.string_too_long
call fcn.140075718
nop
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400959a0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret