Function at 0x41d1ec
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0041d147
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x60], 0xc
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 1
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x41d249
jmp 0x41d3cd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x2c], eax
push 2
push 1
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x41d283
jmp 0x41d3cd
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x41d2a0
jmp 0x41d3cd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x38], eax
push 2
push 0
push 0
mov eax, dword [ebp - 4]
add eax, 8
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x41d2dd
jmp 0x41d3cd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x44], eax
push 2
push 0
push 0
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x41d31a
jmp 0x41d3cd
lea eax, [ebp - 0x10]
push eax
call fcn.0041d435
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.0041d435
pop ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push ecx
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.00406fbc
mov ecx, dword [ebp - 4]
call fcn.0041ce68
test eax, eax
jne 0x41d363
jmp 0x41d3cd
lea eax, [ebp - 8]
push eax
call fcn.0041d435
pop ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0041d435
pop ecx
lea eax, [ebp - 0xc]
push eax
call fcn.0041d435
pop ecx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
push 0
push dword [ebp - 4]
push 0x41cf3b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x41d3c1
jmp 0x41d3cd
and dword [ebp - 0x1c], 0
xor eax, eax
jne 0x41d22c
cmp dword [ebp - 0x1c], 0
je 0x41d40d
lea eax, [ebp - 0x10]
push eax
call fcn.0041d435
pop ecx
lea eax, [ebp - 8]
push eax
call fcn.0041d435
pop ecx
lea eax, [ebp - 0xc]
push eax
call fcn.0041d435
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.0041d435
pop ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0041d435
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0041d147
cmp dword [ebp - 0x1c], 0
jne 0x41d41c
mov dword [ebp - 0x20], 1
jmp 0x41d420
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
lea ecx, [ebp + 8]
call fcn.00406be2
mov eax, dword [ebp - 0x54]
leave
ret 4