Function at 0x180002740
Capabilities:
Create pipe
Create process on windows
Get common file path
Read file on windows
Read pipe
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x4b8
mov rax, qword [0x180026250]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x78], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xd0], 0
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0xf8]
call fcn.18000a8b0
mov dword [rsp + 0xf8], 0x18
mov dword [rsp + 0x108], 1
mov qword [rsp + 0x100], 0
mov r9d, 0x100000
lea r8, [rsp + 0xf8]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x180002dd1
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x110]
call fcn.18000a8b0
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.18000a8b0
mov dword [rsp + 0x110], 0x68
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x168], rax
mov eax, dword [rsp + 0x14c]
bts eax, 8
mov dword [rsp + 0x14c], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1800026a0
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x180002db5
mov rcx, qword [rsp + 0x88]
call fcn.18000ced0
add rax, 0x401
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
shl rax, 1
mov rcx, rax
call fcn.180006950
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x180002da8
lea rcx, [0x180025a30]
call fcn.180007d50
mov qword [rsp + 0xb0], rax
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
call fcn.180001cc0
mov rcx, qword [rsp + 0xb0]
call fcn.180007e50
lea rdx, [rsp + 0x290]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180002d9b
mov edx, 0x1388
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x88]
call fcn.180002e00
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180002a28
cmp dword [rsp + 0x50], 0
jne 0x180002a28
cmp dword [rsp + 0x60], 0x32
jbe 0x180002a11
jmp 0x180002a28
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
jmp 0x1800029d4
cmp dword [rsp + 0x50], 0
jne 0x180002a9c
mov dword [rsp + 0x78], 1
cmp dword [rsp + 0x64], 0
je 0x180002a94
lea rdx, [rsp + 0x290]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x290]
call fcn.1800067d0
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x180002a8a
mov rcx, qword [rsp + 0x80]
call fcn.18000d290
mov eax, eax
add rax, 3
mov dword [rsp + 0x50], eax
jmp 0x180002a92
mov dword [rsp + 0x50], 1
jmp 0x180002a9c
mov dword [rsp + 0x50], 0x14
mov eax, dword [rsp + 0x50]
inc eax
mov eax, eax
mov ecx, eax
call fcn.180006950
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x180002d6f
cmp dword [rsp + 0x78], 0
je 0x180002b3c
cmp dword [rsp + 0x64], 0
je 0x180002b07
cmp qword [rsp + 0x80], 0
je 0x180002b05
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.18000d1c0
lea rdx, [0x18002443c]
mov rcx, qword [rsp + 0x70]
call fcn.18000d120
mov rcx, qword [rsp + 0x80]
call fcn.180006980
jmp 0x180002b3a
lea rcx, [0x180025a58]
call fcn.180007c50
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
call fcn.18000d1c0
mov rcx, qword [rsp + 0xb8]
call fcn.180007e50
jmp 0x180002b65
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd8]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
lea rax, [rax + rax + 2]
mov rcx, rax
call fcn.180006950
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x180002d65
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x70]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x98]
call fcn.180006890
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x180002d58
cmp dword [rsp + 0x50], 0
je 0x180002d4b
mov eax, dword [rsp + 0x50]
lea rax, [rax + rax + 0x402]
mov rcx, rax
call fcn.180006950
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x180002d4b
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x4c0]
mov ecx, dword [rcx]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x4c0]
mov ecx, dword [rcx + 4]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x58]
mov dword [rax + 0xc], 2
mov rax, qword [rsp + 0x58]
mov dword [rax + 0x10], 4
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x4c8]
mov dword [rax + 0x14], ecx
mov dword [rsp + 0x68], 0x24
mov rcx, qword [rsp + 0x90]
call fcn.18000d290
mov ecx, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, qword [rsp + 0x90]
call fcn.1800011e0
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x68]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x7c]
mov dword [rax + 0x1c], ecx
mov eax, dword [rsp + 0x7c]
add eax, 3
and eax, 0xfffffffc
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
sub eax, 4
mov rcx, qword [rsp + 0x58]
add rcx, 4
xor r8d, r8d
mov edx, eax
call fcn.180001d20
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
cmp dword [rsp + 0x4e0], 0
je 0x180002d30
mov rcx, qword [rsp + 0x4d8]
call fcn.18000d290
mov r8, rax
mov rdx, qword [rsp + 0x4d8]
lea rcx, [rsp + 0x180]
call fcn.180006f60
mov eax, dword [rsp + 0x50]
mov r9d, eax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x180]
call fcn.180006e50
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x4e8]
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x90]
call fcn.180006980
mov rcx, qword [rsp + 0x98]
call fcn.180006980
mov rcx, qword [rsp + 0x70]
call fcn.180006980
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xa0]
call fcn.180006980
mov rcx, qword [rsp + 0x88]
call fcn.180006980
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.180009540
add rsp, 0x4b8
ret