Function at 0x180002930
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 [0x180021e40]
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.180008de0
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 0x180002fc1
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.180008de0
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.180008de0
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.180002890
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x180002fa5
mov rcx, qword [rsp + 0x88]
call fcn.18000b400
add rax, 0x401
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
shl rax, 1
mov rcx, rax
call fcn.180005d60
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x180002f98
lea rcx, [0x180021560]
call fcn.180007160
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.180001a40
mov rcx, qword [rsp + 0xb0]
call fcn.180007260
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 0x180002f8b
mov edx, 0x1388
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x88]
call fcn.180002ff0
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 0x180002c18
cmp dword [rsp + 0x50], 0
jne 0x180002c18
cmp dword [rsp + 0x60], 0x32
jbe 0x180002c01
jmp 0x180002c18
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
jmp 0x180002bc4
cmp dword [rsp + 0x50], 0
jne 0x180002c8c
mov dword [rsp + 0x78], 1
cmp dword [rsp + 0x64], 0
je 0x180002c84
lea rdx, [rsp + 0x290]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x290]
call fcn.180005be0
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x180002c7a
mov rcx, qword [rsp + 0x80]
call fcn.18000b750
mov eax, eax
add rax, 3
mov dword [rsp + 0x50], eax
jmp 0x180002c82
mov dword [rsp + 0x50], 1
jmp 0x180002c8c
mov dword [rsp + 0x50], 0x14
mov eax, dword [rsp + 0x50]
inc eax
mov eax, eax
mov ecx, eax
call fcn.180005d60
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x180002f5f
cmp dword [rsp + 0x78], 0
je 0x180002d2c
cmp dword [rsp + 0x64], 0
je 0x180002cf7
cmp qword [rsp + 0x80], 0
je 0x180002cf5
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.18000b680
lea rdx, [0x1800214c4]
mov rcx, qword [rsp + 0x70]
call fcn.18000b5e0
mov rcx, qword [rsp + 0x80]
call fcn.180005d90
jmp 0x180002d2a
lea rcx, [0x180021588]
call fcn.180007060
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
call fcn.18000b680
mov rcx, qword [rsp + 0xb8]
call fcn.180007260
jmp 0x180002d55
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.180005d60
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x180002f55
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.180005ca0
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x180002f48
cmp dword [rsp + 0x50], 0
je 0x180002f3b
mov eax, dword [rsp + 0x50]
lea rax, [rax + rax + 0x402]
mov rcx, rax
call fcn.180005d60
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x180002f3b
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.18000b750
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.180001f10
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
cmp dword [rsp + 0x4e0], 0
je 0x180002f20
mov rcx, qword [rsp + 0x4d8]
call fcn.18000b750
mov r8, rax
mov rdx, qword [rsp + 0x4d8]
lea rcx, [rsp + 0x180]
call fcn.180006370
mov eax, dword [rsp + 0x50]
mov r9d, eax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x180]
call fcn.180006260
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.180005d90
mov rcx, qword [rsp + 0x98]
call fcn.180005d90
mov rcx, qword [rsp + 0x70]
call fcn.180005d90
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.180005d90
mov rcx, qword [rsp + 0x88]
call fcn.180005d90
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.180007a70
add rsp, 0x4b8
ret