Function at 0x40d010
Capabilities:
Create pipe
Create thread

Disassembly:
mov eax, 0x2024
call fcn.0040e740
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
push 0
lea edx, [esp + 0x30]
lea eax, [esi + 8]
push ecx
push edx
push eax
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x38], 1
call ebx
lea ecx, [esp + 0x20]
lea eax, [esi + 0xc]
push 0
push ecx
lea edx, [esp + 0x24]
push eax
push edx
call ebx
lea ecx, [esp + 0x20]
lea eax, [esi + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 2
lea ebx, [esi + 0x14]
push 0
push 0
push ebx
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [esp + 0x1c]
push 2
lea ebp, [esi + 0x18]
push 0
push 0
push ebp
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [esp + 0x14]
push 2
lea eax, [esi + 0x1c]
push 0
push 0
push eax
push edi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
mov ecx, dword [ebp]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov eax, dword [esp + 0x10]
push 0
or al, 1
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
mov ebp, dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
push 0
push edx
push eax
call ebp
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov ecx, dword [esp + 0x10]
push 0
or ecx, 1
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x1c]
push 0
push eax
push ecx
call ebp
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
push 0
lea ecx, [esp + 0x14]
push 0
or al, 1
push ecx
push edx
mov dword [esp + 0x20], eax
call ebp
mov eax, dword [esp + 0x2040]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
push eax
lea eax, [esi + 0x10]
lea ebx, [esi + 8]
lea ebp, [esi + 0xc]
mov dword [esp + 0x34], eax
push ecx
mov ecx, dword [esp + 0x2044]
mov eax, dword [ebp]
push edx
mov edx, dword [esp + 0x2044]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0040d520
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x40d224
mov eax, dword [esp + 0x203c]
lea ecx, [esp + 0x34]
push eax
push str.Unable_to_start__s_n
push ecx
call fcn.0040e67a
mov edx, dword [esi]
add esp, 0xc
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call dword [edx + 4]
mov ecx, dword [ebx]
push ecx
call edi
mov edx, dword [ebp]
mov dword [ebx], 0
push edx
call edi
mov esi, dword [esp + 0x30]
mov dword [ebp], 0
mov eax, dword [esi]
push eax
call edi
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2024
ret 0x10
mov ecx, dword [esp + 0x2044]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push 0
push 0
push 1
push 0
mov dword [0x426abc], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 0x18]
push edx
push 0
push esi
push 0x40d920
push 0
push 0
mov dword [esi + 4], eax
call edi
mov dword [esi + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push esi
push 0x40d930
push 0
push 0
call edi
lea ecx, [esp + 0x18]
mov dword [esi + 0x24], eax
push ecx
push 0
push esi
push 0x40d940
push 0
push 0
call edi
mov edx, dword [esi]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x203c]
mov ecx, esi
push eax
call dword [edx]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2024
ret 0x10