Function at 0x1800567e0
Capabilities:
Check os version
Connect pipe
Create pipe
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x100
mov rsi, r9
mov r14, r8
mov ebx, edx
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
test rcx, rcx
jne 0x18005681d
mov eax, 0xc00000ef
jmp 0x180056f79
xor edx, edx
mov r8d, 0x700
call fcn.18005f850
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x148]
mov qword [rdi + 0x128], rax
mov byte [rdi + 0xe4], r15b
mov dword [rdi + 0x1fc], r15d
test bl, 2
lea r9, [0x18004e220]
cmovne r9, r15
or ebx, 8
mov r8d, 0x1600
mov edx, ebx
mov rcx, rdi
call fcn.18004f400
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180056f79
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x1800568d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0xe8f00000
jmp 0x180056df2
lea rcx, [rdi + 0x160]
lea r8, str.ProcessingMsgSrw
xor edx, edx
call fcn.180055750
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180056df6
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x148], rax
test rax, rax
je 0x1800568bc
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x150], rax
test rax, rax
je 0x1800568bc
lea rcx, [rdi + 0x100]
mov byte [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
mov edx, 0x1f0003
call qword [0x18009b4d0]
mov ebx, eax
test eax, eax
jns 0x18005695e
mov dword [rsp + 0x40], eax
jmp 0x180056df6
mov qword [rdi + 0x120], r15
mov qword [rdi + 0x108], r15
mov dword [rdi + 0x110], r15d
mov qword [rdi + 0x118], r15
mov dword [rdi + 0xf8], r15d
mov dword [rsp + 0x40], r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, qword [rsp + 0x140]
mov rdx, rsi
mov rcx, r14
call fcn.180055af0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180056df6
nop dword [rax]
or edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov dword [rsp + 0x98], eax
test eax, eax
je 0x1800568bc
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0xa8], rax
cmp rax, 0xffffffffffffffff
jne 0x180056a3d
mov qword [rdi + 0xa8], r15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x9c], eax
cmp eax, 0xe7
jne 0x180056a2f
jmp 0x1800569c0
movzx ebx, ax
or ebx, 0xe8f00000
jmp 0x180056df2
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x44]
mov r8d, 8
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.180058460
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180056df6
cmp dword [rsp + 0x44], 8
jne 0x180056ded
mov eax, dword [rsp + 0x70]
mov dword [rdi + 0x1f8], eax
mov eax, dword [rsp + 0x74]
mov dword [rdi + 0xe0], eax
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x50]
mov ecx, dword [rdi + 0x1f8]
call fcn.180057200
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180056df6
mov eax, dword [rdi + 0xe0]
add eax, 0x10
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov edx, 0x40080003
mov r9d, 1
lea r8d, [r9 + 5]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 0xb0], rax
cmp rax, 0xffffffffffffffff
jne 0x180056b03
mov qword [rdi + 0xb0], r15
jmp 0x1800568bc
movzx r8d, word [rsp + 0xa0]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rdi + 0xa8]
call fcn.180058550
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180056df6
lea rdx, [rsp + 0x78]
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x180056ba7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
sub edx, 0x217
je 0x180056ba7
sub edx, 1
je 0x180056b7e
cmp edx, 0x1cd
je 0x180056b7e
movzx ebx, bx
or ebx, 0xe8f00000
jmp 0x180056df2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [0x18009b4e8]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x180056ba7
movzx ebx, bx
or ebx, 0xe8f00000
jmp 0x180056df2
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x44]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0xa8]
call fcn.180058460
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180056df6
cmp dword [rsp + 0x44], 4
jne 0x180056ded
cmp dword [rsp + 0x60], 0x12344321
jne 0x180056ded
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0xa8]
call fcn.180058550
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180056df6
mov eax, dword [rdi + 0xe0]
add eax, 0x10
cmp byte [0x18009b380], 0
je 0x180056c65
mov ecx, 0x844
lea rsi, str.ptportpipe.c
mov qword [rsp + 0x28], rsi
mov word [rsp + 0x20], cx
xor r9d, r9d
mov r8d, 0x50545250
mov edx, eax
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x180056c7e
mov r8d, eax
xor edx, edx
mov rcx, qword [0x18009ccf0]
call qword [0x18009b430]
lea rsi, str.ptportpipe.c
mov qword [rdi + 0xf0], rax
test rax, rax
jne 0x180056c98
mov ebx, 0xc000009a
mov dword [rsp + 0x40], ebx
jmp 0x180056dfd
lea r14, [rdi + 0x170]
test r14, r14
jne 0x180056cb2
mov ebx, 0xc00000f1
mov dword [rsp + 0x40], ebx
jmp 0x180056dfd
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rdi
lea r8, [0x180056fa0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14], rax
test rax, rax
jne 0x180056cf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0xe8f00000
mov dword [rsp + 0x40], ebx
jl 0x180056dfd
jmp 0x180056d09
mov eax, dword [rsp + 0x64]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x40], r15d
mov rax, qword [rdi + 0x150]
mov qword [rsp + 0xb0], rax
mov rax, qword [r14]
mov qword [rsp + 0xb8], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
lea rcx, [rsp + 0xb0]
call fcn.18005e090
mov ebx, eax
test eax, eax
jne 0x180056d4c
mov ebx, r15d
mov dword [rsp + 0x40], ebx
jmp 0x180056dfd
cmp eax, 1
jne 0x180056de7
mov rbx, qword [r14]
test rbx, rbx
jne 0x180056d6b
mov ebx, 0xc00000ef
mov dword [rsp + 0x40], ebx
jmp 0x180056dfd
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [0x18009b4e8]
mov r14d, eax
mov dword [rsp + 0x68], eax
test eax, eax
jns 0x180056d90
mov ebx, eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x48]
jmp 0x180056de0
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 5
jne 0x180056da1
mov eax, r15d
jmp 0x180056dd5
mov qword [rsp + 0x20], r15
mov r9d, 0x30
lea r8, [rsp + 0xc8]
xor edx, edx
mov rcx, rbx
call qword [0x18009b3c8]
mov r14d, eax
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x48]
test r14d, r14d
cmovns eax, dword [rsp + 0xc8]
mov dword [rsp + 0x48], eax
mov ebx, r14d
mov dword [rsp + 0x40], ebx
test r14d, r14d
js 0x180056dfd
mov ebx, eax
mov dword [rsp + 0x40], eax
jmp 0x180056dfd
mov ebx, 0xe8000100
mov dword [rsp + 0x40], ebx
lea rsi, str.ptportpipe.c
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x180056e48
cmp byte [0x18009b380], 0
je 0x180056e34
mov r9d, 0x882
mov qword [rsp + 0x20], rsi
mov r8d, 0x50545250
lea rdx, [rsp + 0x58]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180056e43
xor edx, edx
mov rcx, qword [0x18009ccf0]
call qword [0x18009b440]
mov qword [rsp + 0x58], r15
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x180056e5b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jns 0x180056f77
lea r14, [rdi + 0xf0]
cmp qword [r14], 0
je 0x180056eba
test r14, r14
je 0x180056eba
mov r8, qword [r14]
test r8, r8
je 0x180056eba
cmp byte [0x18009b380], 0
je 0x180056ea8
mov r9d, 0x890
mov qword [rsp + 0x20], rsi
mov r8d, 0x50545250
mov rdx, r14
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180056eb7
xor edx, edx
mov rcx, qword [0x18009ccf0]
call qword [0x18009b440]
mov qword [r14], r15
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x180056ed3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xa8], r15
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x180056ef9
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xb0], r15
mov rcx, qword [rdi + 0x170]
test rcx, rcx
je 0x180056f12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x170], r15
lea rcx, [rdi + 0x160]
cmp qword [rcx], 0
je 0x180056f24
call fcn.180055a50
mov rcx, qword [rdi + 0x148]
test rcx, rcx
je 0x180056f3d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x148], r15
mov rcx, qword [rdi + 0x100]
test rcx, rcx
je 0x180056f56
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x100], r15
mov rcx, qword [rdi + 0x150]
test rcx, rcx
je 0x180056f6f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x150], r15
mov rcx, rdi
call fcn.18004f4b0
mov eax, ebx
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret