Function at 0x4a5d80
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff3ad
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.004c4e80
mov eax, dword [0x53c160]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ebx, [edi + 0xa8]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x103c], eax
mov eax, ebx
mov dword [ebp - 0x1038], ebx
cmp ecx, 0x10
jb 0x4a5dd5
mov eax, dword [ebx]
mov esi, dword [edi + 0xb8]
add esi, eax
mov eax, ebx
cmp ecx, 0x10
jb 0x4a5de6
mov eax, dword [ebx]
sub esi, eax
push esi
push eax
lea eax, [ebp - 0x102c]
push eax
call fcn.004c5bb0
add esp, 0xc
mov dword [ebp - 0x1030], 0
lea eax, [ebp - 0x102c]
add esi, eax
lea eax, [ebp - 0x1030]
push 0
push eax
push 0
push 0
push 0
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
je 0x4a5f72
nop
cmp dword [ebp - 0x1030], 0
jbe 0x4a5f6c
push 0
lea ecx, [ebp - 0x1034]
mov dword [ebp - 0x1034], 0
push ecx
lea eax, [ebp - 0x2c]
sub eax, esi
push eax
push esi
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ebx, dword [ebp - 0x1034]
lea ecx, [ebp - 0x102c]
add ebx, esi
cmp esi, ebx
je 0x4a5f2e
nop dword [eax]
mov al, byte [esi]
test al, al
je 0x4a5e99
cmp al, 0xa
je 0x4a5e99
mov eax, esi
sub eax, ecx
cmp eax, 0xfa0
jle 0x4a5f25
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, esi
je 0x4a5ec4
mov eax, esi
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004085d0
mov ecx, dword [ebp - 0x103c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [edi + 0x90]
mov dword [ebp - 4], 0
push eax
push dword [edi + 0x8c]
call fcn.004ae250
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4a5f22
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a5f18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5ff6
push edx
push ecx
call fcn.004c3baf
add esp, 8
lea ecx, [esi + 1]
inc esi
cmp esi, ebx
jne 0x4a5e80
sub ebx, ecx
lea eax, [ebp - 0x102c]
push ebx
push ecx
push eax
call fcn.004c5bb0
add esp, 0xc
lea eax, [ebp - 0x1030]
lea esi, [ebp - 0x102c]
add esi, ebx
push 0
push eax
push 0
push 0
push 0
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
jne 0x4a5e30
mov ebx, dword [ebp - 0x1038]
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
cmp eax, esi
je 0x4a5f9d
sub esi, eax
lea ecx, [ebp - 0x2c]
push esi
push eax
call fcn.004085d0
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00415da0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4a5fd8
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a5fce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5ff6
push edx
push ecx
call fcn.004c3baf
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c3ba1
mov esp, ebp
pop ebp
ret 4
call fcn.004cecff
int3