Function at 0x40e820
Capabilities:
Create pipe

Disassembly:
push 0xffffffffffffffff
push 0x56d9e5
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
cmp dword [ebp + 0x108c], 0xffffffff
mov esi, ecx
jne 0x40ea77
xor ebx, ebx
lea ecx, [esp + 0x58]
mov byte [ebp + 0x10c1], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
cmp byte [esp + 0x8c], bl
mov dword [esp + 0x80], ebx
push esi
lea ecx, [esp + 0x24]
je 0x40e91c
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edi, [ebp + 0x10bc]
lea ebx, [esp + 0x20]
lea esi, [esp + 0x3c]
mov byte [esp + 0x80], 1
call fcn.0040e7a0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, esi
mov byte [esp + 0x80], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, ebx
mov byte [esp + 0x80], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x40e8f6
lea eax, [esp + 0x5c]
push 0
push 0x1388
push 0x1000
push 0x1000
push 1
push 0
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x40e9a7
cmp dword [ebp + 0x10bc], ebx
lea edi, [ebp + 0x10bc]
setne al
mov byte [ebp + 0x10ba], al
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ebx, [esp + 0x20]
lea esi, [esp + 0x3c]
mov byte [esp + 0x80], 3
call fcn.0040e7a0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 4
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, esi
mov byte [esp + 0x80], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, ebx
mov byte [esp + 0x80], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x40e98e
lea eax, [esp + 0x5c]
push 0
push 0x40110000
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x108c], eax
or eax, 0xffffffff
cmp dword [ebp + 0x108c], eax
je 0x40ea9f
push 0x14
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x40e9eb
call fcn.0040f860
mov eax, dword [esi + 4]
mov dword [esi], vtable.IPC::Message.0
mov dword [eax + 4], 0xfffffffe
mov eax, dword [esi + 4]
mov dword [eax + 8], ebx
jmp 0x40e9ed
xor esi, esi
cmp byte [ebp + 0x10ba], 0
mov dword [esp + 0x1c], esi
je 0x40ea00
mov dword [esp + 0x18], ebx
jmp 0x40ea06
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
mov edi, esi
mov ebx, eax
call fcn.0040f900
test eax, eax
je 0x40ea7b
mov dword [eax], ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x40ea32
push 4
call fcn.0040f900
test eax, eax
je 0x40ea7b
mov dword [eax], ebx
lea esi, [ebp + 0x1028]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esp + 0x1c]
push edx
lea eax, [ebp + 0x1040]
mov byte [esp + 0x84], 5
call fcn.0040f1f0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
jmp 0x40eab2
test esi, esi
je 0x40ea89
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [ebp + 0x108c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov dword [ebp + 0x108c], eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00569ed6
add esp, 0x70
ret 8