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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532ef3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
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 - 0x90], ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x84]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov byte [ebp - 0x85], 0
call fcn.0048ae10
mov ecx, edx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48be40
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00413520
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x50]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00413520
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004134c0
test edi, edi
je 0x48bee0
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48bea0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00413520
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x68]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00413520
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004134c0
test esi, esi
je 0x48bef3
push 0x10
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.0048adb0
add esp, 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x8c], 0xffffffff
call fcn.0048af90
test al, al
je 0x48c095
mov edi, dword [ebp - 0x8c]
cmp edi, 0xffffffff
je 0x48c095
cmp dword [0x5df194], 0
jne 0x48bf5d
push 4
call fcn.004d7188
add esp, 4
mov dword [ebp - 0x90], eax
mov dword [0x5df194], eax
mov dword [eax], vtable.t_ipcClientTaskMsgFactory.0
lea eax, [ebp - 0x84]
push eax
call fcn.0048c690
mov esi, eax
mov dword [ebp - 0x94], 0
push 0
lea eax, [ebp - 0x94]
push eax
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi]
mov ebx, eax
test ecx, ecx
je 0x48bf9b
push ecx
call fcn.004d71b8
add esp, 4
push 8
push esi
call fcn.004d72b2
add esp, 8
test ebx, ebx
je 0x48c095
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00491df0
push 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48c010
call ebx
cmp eax, 0xea
jne 0x48c061
lea ecx, [ebp - 0x24]
call fcn.00491e20
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x8c]
push 0
push eax
push dword [ebp - 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48c03c
call ebx
cmp eax, 0xea
jne 0x48c061
call fcn.0048c1d0
test esi, esi
je 0x48c061
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0048c200
mov ecx, eax
test ecx, ecx
je 0x48c061
cmp dword [ecx + 8], 3
push 1
je 0x48c078
mov edx, dword [ecx]
call dword [edx]
lea ecx, [ebp - 0x24]
call fcn.00491e50
mov bl, byte [ebp - 0x85]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48c097
mov eax, dword [ecx]
mov esi, dword [ecx + 0x18]
call dword [eax]
lea ecx, [ebp - 0x24]
call fcn.00491e50
test esi, esi
push edi
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48c097
xor bl, bl
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x84], vtable.t_taskMsgSGT.0
call fcn.004134c0
lea ecx, [ebp - 0x68]
call fcn.004134c0
mov al, bl
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 0x14