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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff4c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x74], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49931c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x80], 0x11
mov dword [ebp - 0x7c], esi
mov byte [ebp - 0x78], 0x11
lea edx, [ebp - 0x84]
mov ecx, 1
mov eax, 0x49933c
call fcn.00412908
mov edx, dword [ebp - 0x74]
mov al, 8
call fcn.00496f24
xor eax, eax
push ebp
push 0x4992a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00404914
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
jne 0x4990ca
mov edx, 0x499370
mov al, 8
call fcn.00496f24
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], pe_nt_image_headers32
mov dword [ebp - 0x28], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x8000020
push 0xffffffffffffffff
push 0
push 0
push 0x4993a8
push ebx
push 0x4993b8
push esi
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.0040760c
mov eax, dword [ebp - 0x88]
call fcn.004070ec
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
xor al, 1
test al, al
je 0x49914d
call sub.KERNEL32.DLL_GetLastError_1
mov edi, eax
jmp 0x49914f
xor edi, edi
mov edx, 0x4993cc
mov al, 6
call fcn.00496f24
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
movzx eax, byte [ebp - 1]
xor al, 1
test al, al
je 0x4991b7
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x94], edi
mov byte [ebp - 0x90], 0
lea edx, [ebp - 0x94]
xor ecx, ecx
mov eax, 0x4993f8
call fcn.00412908
mov edx, dword [ebp - 0x8c]
mov al, 8
call fcn.00496f24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4992e0
mov edx, 0x499438
mov al, 6
call fcn.00496f24
mov eax, dword [ebp - 0xc]
call fcn.00498e0c
xor eax, eax
push ebp
push 0x49928a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x49946c
mov al, 6
call fcn.00496f24
push 0xffffffffffffffff
mov eax, dword [ebp - 0x70]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov edx, 0x4994a0
mov al, 6
call fcn.00496f24
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x70]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [ebp - 8], 0
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
jne 0x49926a
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xb0], ebx
mov byte [ebp - 0xac], 0x11
mov dword [ebp - 0xa8], esi
mov byte [ebp - 0xa4], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0
lea edx, [ebp - 0xb0]
mov ecx, 2
mov eax, 0x4994d4
call fcn.00412908
mov edx, dword [ebp - 0x98]
mov al, 8
call fcn.00496f24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499291
mov eax, dword [ebp - 0x6c]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 0x70]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499323
lea eax, [ebp - 0xb4]
call fcn.00407050
lea eax, [ebp - 0x98]
call fcn.00407050
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.00407058
lea eax, [ebp - 0x74]
call fcn.00407050
ret