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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9f88
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x522638]
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.0043fa70
cmp dword [ebp - 0x1c], ebx
jne 0x43fbf5
cmp dword [ebp - 0x18], 8
jb 0x43fbcd
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
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 0x43fd7d
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0xc], 0x400
jbe 0x43fc3b
cmp dword [ebp - 0x18], 8
jb 0x43fc13
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
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 0x43fd7d
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 0x43fc61
lea eax, [esi + 0x68]
push eax
jmp 0x43fc65
lea ecx, [esi + 0x4c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00406640
cmp dword [esi + 8], ebx
jne 0x43fca4
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x43fc7e
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 0x43fca4
lea ecx, [ebp - 0x48]
call fcn.00409f90
lea ecx, [ebp - 0x2c]
call fcn.00409f90
jmp 0x43fbdd
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 0x54], ebx
cmp dword [ebp - 0x18], esi
jae 0x43fcb7
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 0x43fd2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x48]
cmp eax, 0x5b4
jne 0x43fd0e
call fcn.00409f90
lea ecx, [ebp - 0x2c]
call fcn.00409f90
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xa
jmp 0x43fd7d
call fcn.00409f90
lea ecx, [ebp - 0x2c]
call fcn.00409f90
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x43fd7d
cmp dword [ebp - 0x34], esi
jb 0x43fd3e
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406ca9
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 0x43fd61
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406ca9
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