Function at 0x40f3ef
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f5ea
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x44c038]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
and dword [esp + 0x28], 0
lea esi, [esp + 0x2c]
call fcn.0040860a
and dword [esp + 0x58], 0
mov eax, dword [0x44dbcc]
mov esi, 0x44dbcc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x58], 1
mov eax, dword [0x44dbcc]
mov ecx, esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x58], 2
mov eax, dword [0x44dbcc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x58], 3
mov eax, dword [0x44dbcc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x5c], 4
call fcn.0040ebac
mov esi, dword [esp + 0x20]
push dword [esi - 0xc]
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00408719
test eax, eax
jne 0x40f6b0
and dword [esp + 0x14], eax
push dword [esp + 0x14]
mov ebx, str._s_d
push 0x443540
push ebx
lea eax, [esp + 0x30]
call fcn.004019b9
add esp, 0xc
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push str.pipe
push ebx
call fcn.004019b9
add esp, 0xc
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0x4430f8
push ebx
call fcn.004019b9
add esp, 0xc
push 0x10
call fcn.0042570b
test eax, eax
pop ecx
je 0x40f514
mov edi, eax
call fcn.00409863
mov esi, eax
jmp 0x40f516
xor esi, esi
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x34], esi
call fcn.004086c0
push eax
lea edi, [esi + 4]
push edi
call fcn.004017a3
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
call fcn.004086c0
lea ecx, [esi + 8]
push eax
push ecx
call fcn.004017a3
push 0
push dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
call fcn.004086a8
mov dword [esi + 0xc], eax
mov ecx, dword [edi]
xor edi, edi
cmp dword [ecx - 0xc], edi
je 0x40f5b1
mov ecx, dword [esi + 8]
cmp dword [ecx - 0xc], edi
je 0x40f5b1
cmp eax, edi
je 0x40f5b1
push eax
call fcn.0040f96e
test al, al
jne 0x40f598
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 1
call fcn.0040987e
push esi
call fcn.004250ac
pop ecx
jmp 0x40f5a8
mov esi, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
add esi, 0x3c
call fcn.0040d452
inc dword [esp + 0x14]
jmp 0x40f4b6
call fcn.0040987e
push esi
call fcn.004250ac
pop ecx
mov dword [esp + 0x14], edi
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push str.epipe
push ebx
call fcn.004019b9
add esp, 0xc
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push str.epid
push ebx
call fcn.004019b9
add esp, 0xc
push 0xc
call fcn.0042570b
mov edi, eax
test edi, edi
pop ecx
je 0x40f60d
lea esi, [edi + 4]
mov dword [edi], vtable.EASY_IPC_SHARED_EVENT_ITEM.0
call fcn.00401627
mov esi, edi
jmp 0x40f60f
xor esi, esi
mov edi, dword [esp + 0x1c]
push 0
push edi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x34], esi
call fcn.004086c0
push eax
lea ebx, [esi + 4]
push ebx
call fcn.004017a3
push 0
push dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
call fcn.004086a8
mov dword [esi + 8], eax
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x40f692
test eax, eax
je 0x40f692
push eax
call fcn.0040f96e
test al, al
jne 0x40f674
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 1
mov eax, dword [ebx]
sub eax, 0x10
call fcn.004010aa
push esi
call fcn.004250ac
pop ecx
jmp 0x40f684
mov esi, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
add esi, 0x4c
call fcn.0040d452
inc dword [esp + 0x14]
mov ebx, str._s_d
jmp 0x40f5c1
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.004010aa
push esi
call fcn.004250ac
mov esi, dword [esp + 0x24]
pop ecx
mov dword [esp + 0x28], 1
lea eax, [esi - 0x10]
call fcn.004010aa
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004010aa
add edi, 0xfffffff0
mov eax, edi
call fcn.004010aa
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004010aa
or dword [esp + 0x58], 0xffffffff
lea eax, [esp + 0x2c]
call fcn.00408629
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4