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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbbe8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5246a8]
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.004391c0
cmp dword [ebp - 0x1c], ebx
jne 0x439345
cmp dword [ebp - 0x18], 8
jb 0x43931d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406d09
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 0x4394cd
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0xc], 0x400
jbe 0x43938b
cmp dword [ebp - 0x18], 8
jb 0x439363
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406d09
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 0x4394cd
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 0x4393b1
lea eax, [esi + 0x68]
push eax
jmp 0x4393b5
lea ecx, [esi + 0x4c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004066a0
cmp dword [esi + 8], ebx
jne 0x4393f4
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4393ce
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 0x4393f4
lea ecx, [ebp - 0x48]
call fcn.00409ff0
lea ecx, [ebp - 0x2c]
call fcn.00409ff0
jmp 0x43932d
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 0x54], ebx
cmp dword [ebp - 0x18], esi
jae 0x439407
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 0x43947d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x48]
cmp eax, 0x5b4
jne 0x43945e
call fcn.00409ff0
lea ecx, [ebp - 0x2c]
call fcn.00409ff0
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xa
jmp 0x4394cd
call fcn.00409ff0
lea ecx, [ebp - 0x2c]
call fcn.00409ff0
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4394cd
cmp dword [ebp - 0x34], esi
jb 0x43948e
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406d09
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 0x4394b1
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406d09
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