Function at 0x4392f0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbc68
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 0x18]
push edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x2c]
xor ebx, ebx
push edx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00439200
cmp dword [ebp - 0x1c], ebx
jne 0x439385
cmp dword [ebp - 0x18], 8
jb 0x43935d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 9
jmp 0x43950d
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0xc], 0x400
jbe 0x4393cb
cmp dword [ebp - 0x18], 8
jb 0x4393a3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
push edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 8
jmp 0x43950d
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov eax, 2
push 0xffffffffffffffff
mov byte [ebp - 4], al
push ebx
cmp dword [esi + 0x14], eax
jne 0x4393f1
lea eax, [esi + 0x68]
push eax
jmp 0x4393f5
lea ecx, [esi + 0x4c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00406690
cmp dword [esi + 8], ebx
jne 0x439434
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x43940e
lea eax, [ebp - 0x48]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x439434
lea ecx, [ebp - 0x48]
call fcn.00409fe0
lea ecx, [ebp - 0x2c]
call fcn.00409fe0
jmp 0x43936d
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 0x54], ebx
cmp dword [ebp - 0x18], esi
jae 0x439447
lea eax, [ebp - 0x2c]
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x4c]
push 0x40c
push edx
push 0x410
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
cmp eax, ebx
jne 0x4394bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x48]
cmp eax, 0x5b4
jne 0x43949e
call fcn.00409fe0
lea ecx, [ebp - 0x2c]
call fcn.00409fe0
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xa
jmp 0x43950d
call fcn.00409fe0
lea ecx, [ebp - 0x2c]
call fcn.00409fe0
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x43950d
cmp dword [ebp - 0x34], esi
jb 0x4394ce
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
jb 0x4394f1
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 0xc