Function at 0x40e380
Capabilities:
Create pipe
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x42074b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 0
lea ebx, [ebp + 8]
push 0
mov ecx, ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
call fcn.004024b0
mov eax, dword [ebx + 8]
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x94], 0
mov dword [ebx], 0x421228
call fcn.00402a90
xor ecx, ecx
xor esi, esi
mov edi, eax
mov dword [ebx], 0x421208
mov dword [ebp], 0x4212a0
mov edx, dword [ebx]
push esi
mov ecx, ebx
mov dword [esp + 0x90], 1
call dword [edx + 4]
mov eax, dword [esp + 0x94]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x2c]
call fcn.00402940
mov eax, dword [esp + 0x2c]
mov edi, 0x421250
cmp eax, 0xffffffff
mov dword [esp + 0x24], edi
jne 0x40e43b
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x2c], eax
je 0x40e43b
cmp byte [ecx], 0
je 0x40e43b
inc eax
mov dword [esp + 0x2c], eax
cmp byte [ecx + eax], 0
jne 0x40e430
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c], 2
push ecx
mov ecx, ebx
call fcn.004025d0
lea edx, [esp + 0x30]
push 1
push edx
mov ecx, ebx
mov byte [esp + 0x94], 1
mov dword [ebp + 0x18], esi
mov dword [ebp + 4], 0xffffffff
call fcn.0040b420
mov ebx, eax
push 0xffffffffffffffff
push 0x425834
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 3
call fcn.00402940
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
cmp eax, 0xffffffff
jne 0x40e4b4
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x2c], eax
je 0x40e4b4
cmp byte [ecx], 0
je 0x40e4b4
inc eax
mov dword [esp + 0x2c], eax
cmp byte [ecx + eax], 0
jne 0x40e4a9
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
mov byte [esp + 0x90], 4
call fcn.00407c00
test eax, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0x4211f8
sete bl
cmp eax, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
je 0x40e4f2
push eax
call fcn.004120fe
add esp, 4
test bl, bl
je 0x40e5e9
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40e640
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push esi
lea ecx, [esp + 0x20]
push esi
push ecx
call edi
mov edx, dword [esp + 0x20]
push eax
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push eax
push esi
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0xa0]
push esi
push 0x8000000
push 1
push esi
inc ecx
push esi
push ecx
push esi
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x94], 0x100
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov word [esp + 0x98], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40e640
mov eax, dword [esp + 0x18]
push 0x425830
push 0x4009
push eax
mov dword [ebp + 4], eax
call fcn.004146e0
add esp, 8
push eax
call fcn.0041438d
add esp, 8
mov dword [ebp + 0x18], eax
jmp 0x40e640
mov edx, dword [esp + 0x94]
push esi
push 0x20
push 4
push esi
push 7
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
je 0x40e640
push 2
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 4]
push 0x425830
push 0x4009
push eax
call fcn.004146e0
add esp, 8
push eax
call fcn.0041438d
push esi
push eax
mov dword [ebp + 0x18], eax
call fcn.00414368
add esp, 0x10
mov ecx, dword [esp + 0x84]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret 4