Function at 0x561720
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 0x561b13
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 0x561ab8
mov eax, dword [esp + 0xbc]
xor ebx, ebx
lea ecx, [esp + 0xa8]
mov dword [ecx], ebx
push eax
call fcn.004ca920
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0xa4]
mov dword [ecx], ebx
push eax
call fcn.004ca920
push ebx
push 1
push dword [esp + 0xc4]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x561a76
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.00436200
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 0x561861
mov eax, dword [esp + 0xb8]
jmp 0x561869
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 0x56189a
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 [0x5dbc80]
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 0x561a55
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x30]
movdqa xmmword [ecx], xmm0
push edi
call fcn.0048b090
mov esi, dword [0x5f92e0]
test esi, esi
je 0x56192d
lea ebx, [esp + 0x108]
mov ecx, ebx
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.00436200
mov ecx, esi
push ebx
push dword [esp + 0x3c]
call fcn.00558a60
cmp byte [ebx + 0xb], 0
jns 0x56192d
push dword [esp + 0x108]
call fcn.0050d52e
add esp, 4
mov eax, dword [esp + 0xa4]
inc eax
cmp eax, 2
jb 0x561959
call fcn.004cfe10
push dword [esp + 0xa4]
call fcn.004dfa90
add esp, 4
mov dword [esp + 0xa4], 0
lea ebx, [esp + 0x108]
push 0x400
push 0xff
push ebx
call fcn.00510dc0
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 0x5619c3
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x5619c3
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.00450620
mov eax, edi
mov ecx, ebx
mov ebx, esi
xor edx, edx
jmp 0x561982
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.004cfde0
add esp, 0x10
mov ecx, esi
push 0
push edi
call fcn.004da670
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
call fcn.004da6f0
mov edi, dword [ebp + 0x10]
push edi
push dword [esp + 0x34]
call fcn.0048b260
add esp, 8
mov esi, eax
mov eax, dword [edi]
mov edx, dword [esp + 0x38]
mov ecx, dword [0x5f92e0]
test ecx, ecx
je 0x561a43
push eax
push edx
call fcn.00558e40
and esi, 0xfffffffd
cmp esi, 1
setne bl
lea ecx, [esp + 0x30]
call fcn.0048b1a0
mov edi, dword [esp + 8]
cmp byte [esp + 0xa3], 0
mov esi, dword [esp + 0x1c]
jns 0x561a76
push dword [esp + 0x98]
call fcn.0050d52e
add esp, 4
mov eax, dword [esp + 0xa4]
inc eax
cmp eax, 2
jb 0x561a97
call fcn.004cfe10
push dword [esp + 0xa4]
call fcn.004dfa90
add esp, 4
mov eax, dword [esp + 0xa8]
inc eax
cmp eax, 2
jb 0x561ab8
call fcn.004cfe10
push dword [esp + 0xa8]
call fcn.004dfa90
add esp, 4
test byte [esp + 7], 0x19
je 0x561afb
cmp byte [esi], 0
je 0x561afb
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.004e1da0
add esp, 0x10
mov ecx, dword [esp + 0x508]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x108]
push esi
call fcn.004e02a0
add esp, 4
call fcn.004dfa60
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], 0x5dbd98
mov dword [esp + 4], 0x5f4c18
mov dword [esp], 0x58
call fcn.004e1250
add esp, 0x30
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov edi, 0x5dbd98
mov esi, 0x5f4c18
jmp 0x561765