Function at 0x6d488ab4
Capabilities:
Create pipe
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x138
mov eax, dword [0x6d49bb70]
xor eax, ebp
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x74]
push ebx
mov ebx, dword [ebp + 0x64]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x78]
push esi
or esi, 0xffffffff
push edi
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x3c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x2c], 2
jne 0x6d488b29
mov byte [ebp - 0x3d], 1
mov eax, dword [ebx]
push 0
push dword [ebp - 0x68]
push ebx
call dword [eax + 0x294]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x6d488d7f
cmp dword [ebp - 0x5c], edi
je 0x6d488b60
mov eax, dword [ebx]
push 0
push dword [ebp - 0x5c]
push ebx
call dword [eax + 0x294]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x6d488d7f
cmp dword [ebp - 0x64], edi
je 0x6d488b7e
mov eax, dword [ebx]
push 0
push dword [ebp - 0x64]
push ebx
call dword [eax + 0x294]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x6d488d7f
mov eax, dword [ebx]
push 0
push dword [ebp - 0x7c]
push ebx
call dword [eax + 0x2f0]
mov edi, eax
test edi, edi
je 0x6d488d7f
push 0x44
lea eax, [ebp - 0xcc]
push 0
push eax
call sub.msvcr100.dll_memset
and dword [ebp - 0x84], 0
mov dword [ebp - 0xcc], 0x44
mov dword [ebp - 0xa0], 0x100
mov dword [ebp - 0x88], 0xc
mov dword [ebp - 0x80], 1
mov eax, dword [edi]
and eax, dword [edi + 4]
add esp, 0xc
cmp eax, esi
je 0x6d488bed
mov eax, dword [edi]
mov dword [ebp - 0x94], eax
mov dword [edi], esi
mov dword [edi + 4], esi
jmp 0x6d488c34
push 0x1018
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x6d488c15
mov esi, 0x6d494eac
jmp 0x6d488d7a
mov eax, dword [ebp - 0x70]
push 0
push 1
push dword [ebp - 0x50]
mov dword [ebp - 0x94], eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
mov eax, dword [ebp - 0x50]
cdq
mov dword [edi], eax
mov dword [edi + 4], edx
push 1
push 1
push dword [ebp - 0x94]
call dword [sym.imp.kernel32.dll_SetHandleInformation]
mov eax, dword [edi + 8]
and eax, dword [edi + 0xc]
cmp eax, esi
je 0x6d488c5f
mov eax, dword [edi + 8]
mov dword [ebp - 0x90], eax
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
jmp 0x6d488c9d
push 0x1018
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
je 0x6d488c0b
mov eax, dword [ebp - 0x60]
push 0
push 1
push dword [ebp - 0x54]
mov dword [ebp - 0x90], eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
mov eax, dword [ebp - 0x54]
cdq
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
push 1
push 1
push dword [ebp - 0x90]
call dword [sym.imp.kernel32.dll_SetHandleInformation]
cmp byte [ebp + 0x7c], 0
je 0x6d488cbb
mov eax, dword [ebp - 0x90]
jmp 0x6d488cc8
mov eax, dword [edi + 0x10]
and eax, dword [edi + 0x14]
cmp eax, esi
je 0x6d488cd6
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x8c], eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
jmp 0x6d488d18
push 0x1018
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
je 0x6d488c0b
mov eax, dword [ebp - 0x6c]
push 0
push 1
push dword [ebp - 0x44]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
mov eax, dword [ebp - 0x44]
cdq
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
push 1
push 1
push dword [ebp - 0x8c]
call dword [sym.imp.kernel32.dll_SetHandleInformation]
cmp byte [ebp - 0x3d], 0
je 0x6d488d35
mov eax, 0x8000400
jmp 0x6d488d45
push dword [ebp - 0x68]
push ebx
call fcn.6d4888d9
pop ecx
pop ecx
or eax, 0x400
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0xcc]
push ecx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push eax
push 1
xor eax, eax
push eax
push eax
push dword [ebp - 0x58]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
cdq
mov dword [ebp - 0x78], eax
or eax, edx
mov dword [ebp - 0x74], edx
jne 0x6d488d9c
mov esi, str.CreateProcess
call fcn.6d48e120
push dword [ebp - 0x50]
call fcn.6d488aa2
push dword [ebp - 0x54]
call fcn.6d488aa2
push dword [ebp - 0x44]
call fcn.6d488aa2
add esp, 0xc
jmp 0x6d488db5
push dword [ebp - 0xd8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0xdc]
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
push dword [ebp - 0x70]
call fcn.6d488aa2
push dword [ebp - 0x60]
call fcn.6d488aa2
push dword [ebp - 0x6c]
call fcn.6d488aa2
xor esi, esi
add esp, 0xc
cmp dword [ebp - 0x58], esi
je 0x6d488de6
push dword [ebp - 0x58]
mov eax, dword [ebx]
push dword [ebp - 0x68]
push ebx
call dword [eax + 0x298]
cmp dword [ebp - 0x48], esi
je 0x6d488dfa
push dword [ebp - 0x48]
mov eax, dword [ebx]
push dword [ebp - 0x5c]
push ebx
call dword [eax + 0x298]
cmp dword [ebp - 0x4c], esi
je 0x6d488e0e
push dword [ebp - 0x4c]
mov eax, dword [ebx]
push dword [ebp - 0x64]
push ebx
call dword [eax + 0x298]
cmp edi, esi
je 0x6d488e20
mov eax, dword [ebx]
push esi
push edi
push dword [ebp - 0x7c]
push ebx
call dword [eax + 0x310]
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d491820
add ebp, 0x5c
leave
ret 0x1c