Function at 0x42736a
Capabilities:
Read file on windows
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x318], eax
push edi
mov dword [ebp - 0x308], ebx
lea eax, [esi - 0xc8]
mov dword [ebp - 0x31c], esi
cmp eax, 0x14
ja 0x42763d
mov edi, dword [ebp + 0x10]
lea eax, [edi + 0x30]
push eax
push esi
mov dword [ebp - 0x310], eax
call fcn.004e5df2
mov dword [ebp - 0x314], eax
pop ecx
pop ecx
test eax, eax
jne 0x427403
push esi
push dword [ebp - 0x310]
lea eax, [ebp - 0x104]
push str.Pipe:_Cant_allocate_memory___i__bytes__Cmd___i_
push eax
call fcn.00401133
push 1
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x104]
push 0x40
push eax
call fcn.00421ef1
add esp, 0x24
mov ecx, ebx
call fcn.00427313
jmp 0x427674
mov ecx, dword [ebp - 0x318]
test ecx, ecx
je 0x42741f
test edi, edi
je 0x42741f
push edi
push ecx
add eax, 0x30
push eax
call fcn.004f5d30
add esp, 0xc
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
mov edi, eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x30c]
push eax
push 0x200
lea eax, [ebp - 0x304]
push eax
mov eax, dword [ebp - 0x314]
push dword [eax]
push eax
mov eax, dword [ebp - 0x308]
push dword [eax + 0x20c]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov dword [ebp - 0x310], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x308]
push ebx
add ecx, 4
mov dword [ebp - 0x318], eax
push ecx
call esi
sub eax, edi
push eax
push edi
push ebx
push dword [ebp - 0x314]
call fcn.004af4e3
add esp, 0x18
cmp dword [ebp - 0x310], ebx
jne 0x4274df
mov eax, dword [ebp - 0x318]
cmp eax, 0x6d
jne 0x4274a2
inc ebx
jmp 0x4274d7
cmp eax, 0xea
je 0x4274df
push eax
push dword [ebp - 0x31c]
lea eax, [ebp - 0x104]
push str.Pipe:_TransactNamedPipe_failed__Cmd___i__ErrCode__0x_08X_
push eax
call fcn.00401133
push 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x104]
push 0x40
push eax
call fcn.00421ef1
add esp, 0x24
mov esi, dword [ebp - 0x308]
jmp 0x427542
cmp dword [ebp - 0x30c], 4
mov esi, dword [ebp - 0x308]
jb 0x42753c
mov edi, dword [ebp - 0x304]
lea eax, [ebp - 0x304]
mov dword [esi + 0x214], eax
cmp edi, 0x30
jbe 0x42753c
cmp dword [ebp - 0x300], 0xa6
je 0x42755c
push dword [ebp - 0x2e8]
mov ecx, dword [0x5a22a0]
push dword [ebp - 0x2dc]
push dword [ebp - 0x2f0]
push 0xffffffffffffffff
push dword [ebp - 0x300]
push dword [ebp - 0x2f8]
call fcn.00419c0c
mov dword [esi + 0x214], ebx
mov ecx, esi
call fcn.00427313
push dword [ebp - 0x314]
call fcn.004e1bea
pop ecx
mov eax, ebx
jmp 0x427676
mov dword [esi + 0x214], ebx
test edi, edi
jne 0x427579
push ebx
push ebx
push ebx
push ebx
push str.Empty_data_recieved_from_server
call fcn.00420ad9
add esp, 0x14
jmp 0x427542
push 1
push edi
call fcn.004e1c42
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x304]
mov dword [esi + 0x214], eax
push ecx
push eax
call fcn.004f5d30
mov eax, dword [esi + 0x214]
add esp, 0x14
jmp 0x4275e0
cmp dword [ebp - 0x310], ebx
jne 0x4275f6
push ebx
lea ecx, [ebp - 0x30c]
push ecx
push edi
push eax
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x310], eax
test eax, eax
jne 0x4275da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4275f6
mov eax, dword [ebp - 0x308]
add eax, dword [ebp - 0x30c]
sub edi, dword [ebp - 0x30c]
mov dword [ebp - 0x308], eax
test edi, edi
jg 0x4275a5
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x427612
cmp eax, 0xffffffff
je 0x427612
push eax
mov dword [esi + 0x20c], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x314]
call fcn.004e1bea
mov edx, dword [esi + 0x214]
xor eax, eax
pop ecx
lea ecx, [edx + 0x30]
mov dword [esi + 0x218], ecx
mov ecx, dword [edx]
sub ecx, 0x30
inc eax
mov dword [esi + 0x21c], ecx
jmp 0x427676
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
lea eax, [ebp - 0x104]
push str.Invalid_command_id___i___nPID_u__TID_u
push eax
call fcn.00401133
push 1
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x104]
push 0x40
push eax
call fcn.00421ef1
add esp, 0x28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 0xc