Function at 0x442b81
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push edi
mov dword [ebp - 0xe4], ecx
mov eax, dword [ebp - 0xe4]
cmp dword [eax + 0x48], 0
je 0x442d8a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x442bf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x3e5
je 0x442bf7
mov ecx, dword [ebp - 0xe4]
call fcn.00443e49
xor eax, eax
jmp 0x442fd9
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x442c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x3e5
je 0x442c4d
mov ecx, dword [ebp - 0xe4]
call fcn.00443e49
xor eax, eax
jmp 0x442fd9
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x442ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x3e5
je 0x442ca3
mov ecx, dword [ebp - 0xe4]
call fcn.00443e49
xor eax, eax
jmp 0x442fd9
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xa
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x442ce5
push 0xa
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x442d05
mov ecx, dword [ebp - 0xe4]
cmp dword [ecx + 0x28], 0
jne 0x442d03
mov ecx, dword [ebp - 0xe4]
call fcn.00443e49
xor eax, eax
jmp 0x442fd9
jmp 0x442cb3
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xe
push str.Server2Client
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00442a40
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0xe
push 0x4a8d20
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00442a40
add esp, 4
jmp 0x442e5a
mov dl, byte [0x4b0294]
mov byte [ebp - 0xb4], dl
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0xb3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0xb8], 0
push 0
lea eax, [ebp - 0xb8]
push eax
push 0xe
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xb8], 0
push 0
lea ecx, [ebp - 0xb8]
push ecx
push 0xe
lea edx, [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xe
push str.Client2Server
lea edx, [ebp - 0xb4]
push edx
call fcn.004681f0
add esp, 0xc
test eax, eax
je 0x442e4a
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x40], ecx
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xbc]
mov dword [edx + 0x3c], eax
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xe4]
cmp dword [eax + 0x48], 0
je 0x442e7b
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
jmp 0x442e87
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xe4]
cmp dword [edx + 0x28], 0
je 0x442fb9
push 0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x442ec5
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x442fb9
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0xcc], edx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xc8]
push ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442f76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x442f30
jmp 0x442fb9
push 0xa
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x442f66
mov edx, dword [ebp - 0xe4]
cmp dword [edx + 0x28], 0
jne 0x442f64
mov ecx, dword [ebp - 0xe4]
call fcn.00443e49
xor eax, eax
jmp 0x442fd9
jmp 0x442f30
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea edx, [ebp - 0xc8]
push edx
push 8
lea eax, [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442f98
jmp 0x442fb9
lea edx, [ebp - 0xc4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xe4]
call fcn.00442fde
test eax, eax
jne 0x442fb4
jmp 0x442fb9
jmp 0x442e87
mov ecx, dword [ebp - 0xe4]
call fcn.00443e49
mov ecx, dword [ebp - 0xe4]
cmp dword [ecx + 0x48], 0
je 0x442fd7
mov eax, 1
jmp 0x442fd9
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret