Function at 0x48b950
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5c6150]
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 dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x24], 0x5af440
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0xffffffff
call fcn.0048af90
test al, al
je 0x48bb6b
mov ebx, dword [ebp - 0x28]
cmp ebx, 0xffffffff
je 0x48bb6b
cmp dword [0x5df194], 0
jne 0x48b9e9
push 4
call fcn.004d7188
mov dword [ebp - 0x2c], eax
add esp, 4
mov dword [0x5df194], eax
mov dword [eax], vtable.t_ipcClientTaskMsgFactory.0
lea eax, [ebp - 0x24]
push eax
call fcn.0048c690
push 0
mov esi, eax
mov dword [ebp - 0x48], 2
push 0
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x48ba20
test esi, esi
je 0x48ba1a
push ecx
mov ecx, esi
call fcn.0048b190
push ebx
jmp 0x48bb65
push 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
mov ecx, esi
test eax, eax
jne 0x48ba4a
call fcn.0048b190
jmp 0x48bb6b
call fcn.0048b190
nop
xor edi, edi
mov dword [ebp - 0x44], 0
or esi, 0xffffffff
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
push 8
mov byte [ebp - 4], 1
call fcn.004d72c0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x48ba8c
mov edi, 8
xor esi, esi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], esi
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push edi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48bab9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x48bb5a
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
call fcn.004d72c0
add esp, 4
mov edi, eax
test edi, edi
mov dword [ebp - 0x3c], edi
mov eax, 1
cmovne esi, eax
lea eax, [ebp - 0x30]
push 0
push eax
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x2c]
push esi
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48bb02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x48bb5a
cmp dword [0x5df194], 0
jne 0x48bb23
push 4
call fcn.004d7188
mov dword [ebp - 0x2c], eax
add esp, 4
mov dword [0x5df194], eax
mov dword [eax], vtable.t_ipcClientTaskMsgFactory.0
test edi, edi
je 0x48bb5a
push esi
mov ecx, edi
call fcn.0048c200
test eax, eax
je 0x48bb5a
mov edx, dword [eax]
mov ecx, eax
mov esi, dword [eax + 8]
push 1
call dword [edx]
cmp esi, 0x11
je 0x48bb5a
push edi
call fcn.004d71b8
add esp, 4
push ebx
call fcn.004d71b8
add esp, 4
jmp 0x48ba50
lea ecx, [ebp - 0x44]
call fcn.00491e50
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
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.004d6cfd
mov esp, ebp
pop ebp
ret 0xc