Function at 0x561800
Capabilities:
Create pipe
Create process on windows
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x510
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x508], eax
mov al, byte [0x5f4c18]
xor ebx, ebx
mov byte [esp + 7], al
test al, 0x19
jne 0x561bf3
xor edi, edi
dec edi
xor esi, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
lea eax, [esp + 0xbc]
mov dword [eax], ebx
lea ecx, [esp + 0xb8]
mov dword [ecx], ebx
lea edx, [esp + 0xac]
mov dword [edx], 0xc
mov dword [edx + 8], 1
mov dword [edx + 4], ebx
push ebx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x561b98
mov eax, dword [esp + 0xbc]
xor ebx, ebx
lea ecx, [esp + 0xa8]
mov dword [ecx], ebx
push eax
call fcn.004caa00
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0xa4]
mov dword [ecx], ebx
push eax
call fcn.004caa00
push ebx
push 1
push dword [esp + 0xc4]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x561b56
mov dword [esp + 0x1c], esi
mov bl, byte [ebp + 8]
xor eax, eax
dec eax
lea esi, [esp + 0x98]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.00436230
pxor xmm0, xmm0
movdqu xmmword [esp + 0x78], xmm0
movdqu xmmword [esp + 0x68], xmm0
movdqu xmmword [esp + 0x58], xmm0
mov dword [esp + 0x88], 0
mov dword [esp + 0x54], 0x44
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x90], eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 0x8c], eax
test bl, bl
je 0x561941
mov eax, dword [esp + 0xb8]
jmp 0x561949
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 8], edi
mov dword [esp + 0x94], eax
mov dword [esp + 0x80], 0x100
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
cmp byte [esp + 0xa3], 0
jns 0x56197a
mov esi, dword [esp + 0x98]
sub esp, 0x28
lea edi, [esp + 0x68]
mov dword [esp + 0x24], edi
lea eax, [esp + 0x7c]
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
movdqa xmm0, xmmword [0x5dbd00]
movdqu xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x561b35
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x30]
movdqa xmmword [ecx], xmm0
push edi
call fcn.0048b210
mov esi, dword [0x5f92f0]
test esi, esi
je 0x561a0d
lea ebx, [esp + 0x108]
mov ecx, ebx
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.00436230
mov ecx, esi
push ebx
push dword [esp + 0x3c]
call fcn.00558b40
cmp byte [ebx + 0xb], 0
jns 0x561a0d
push dword [esp + 0x108]
call fcn.0050d60e
add esp, 4
mov eax, dword [esp + 0xa4]
inc eax
cmp eax, 2
jb 0x561a39
call fcn.004cfef0
push dword [esp + 0xa4]
call fcn.004dfb70
add esp, 4
mov dword [esp + 0xa4], 0
lea ebx, [esp + 0x108]
push 0x400
push 0xff
push ebx
call fcn.00510ea0
add esp, 0xc
xor edx, edx
lea eax, [esp + 0xc0]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0xc0], edx
push edx
mov edi, eax
push eax
push 0x400
mov esi, ebx
push ebx
push dword [esp + 0xcc]
mov ebx, ecx
call ecx
test eax, eax
je 0x561aa3
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x561aa3
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.00450700
mov eax, edi
mov ecx, ebx
mov ebx, esi
xor edx, edx
jmp 0x561a62
pcmpeqd xmm0, xmm0
lea esi, [esp + 0xc0]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x20]
push 0x87
push str....._baseprocesslaunch_win.cc
push str.GetAppOutputInternal
push edi
call fcn.004cfec0
add esp, 0x10
mov ecx, esi
push 0
push edi
call fcn.004da750
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
call fcn.004da7d0
mov edi, dword [ebp + 0x10]
push edi
push dword [esp + 0x34]
call fcn.0048b3e0
add esp, 8
mov esi, eax
mov eax, dword [edi]
mov edx, dword [esp + 0x38]
mov ecx, dword [0x5f92f0]
test ecx, ecx
je 0x561b23
push eax
push edx
call fcn.00558f20
and esi, 0xfffffffd
cmp esi, 1
setne bl
lea ecx, [esp + 0x30]
call fcn.0048b320
mov edi, dword [esp + 8]
cmp byte [esp + 0xa3], 0
mov esi, dword [esp + 0x1c]
jns 0x561b56
push dword [esp + 0x98]
call fcn.0050d60e
add esp, 4
mov eax, dword [esp + 0xa4]
inc eax
cmp eax, 2
jb 0x561b77
call fcn.004cfef0
push dword [esp + 0xa4]
call fcn.004dfb70
add esp, 4
mov eax, dword [esp + 0xa8]
inc eax
cmp eax, 2
jb 0x561b98
call fcn.004cfef0
push dword [esp + 0xa8]
call fcn.004dfb70
add esp, 4
test byte [esp + 7], 0x19
je 0x561bdb
cmp byte [esi], 0
je 0x561bdb
mov eax, dword [esp + 0x10]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10c], eax
sub esp, 0x10
movq xmm0, qword [esp + 0x118]
movq qword [esp + 8], xmm0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004e1e80
add esp, 0x10
mov ecx, dword [esp + 0x508]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x108]
push esi
call fcn.004e0380
add esp, 4
call fcn.004dfb40
sub esp, 0x30
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], 0x5dbe18
mov dword [esp + 4], 0x5f4c18
mov dword [esp], 0x58
call fcn.004e1330
add esp, 0x30
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov edi, 0x5dbe18
mov esi, 0x5f4c18
jmp 0x561845