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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x944
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], 0
jns 0x48f25b
mov dword [esp + 8], 0x104
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x921]
mov dword [esp], eax
call sym._strncpy
mov byte [ebp - 0x81e], 0
lea eax, [ebp - 0x921]
mov dword [esp], eax
call dbg.dirname
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strlen
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x1c]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2f
je 0x48f25b
add dword [ebp + 0x10], 1
mov dword [esp + 4], 0x5035ed
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x48f2d0
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unable_to_open_file:__s_due_to____d____s__.
mov dword [esp + 8], str.MergeAppendFile
mov dword [esp + 4], 0x38a
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov eax, 0
jmp 0x48f4f7
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fseek
test eax, eax
je 0x48f353
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unable_to_set_EOF_offset_in_file:__s__due_to____d____s__.
mov dword [esp + 8], str.MergeAppendFile
mov dword [esp + 4], 0x38f
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fclose
mov eax, 0
jmp 0x48f4f7
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48f392
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.File__s_is_empty.
mov dword [esp + 8], str.MergeAppendFile
mov dword [esp + 4], 0x396
mov dword [esp], str.shared_file_op.c
call dbg._mwarn
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__ld__s_n
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fprintf_11
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fseek
test eax, eax
je 0x48f471
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unable_to_set_the_offset_in_file:__s__due_to____d____s__.
mov dword [esp + 8], str.MergeAppendFile
mov dword [esp + 4], 0x39c
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fclose
mov eax, 0
jmp 0x48f4f7
lea edx, [ebp - 0x81d]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x81d]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x800
mov dword [esp + 4], 1
lea eax, [ebp - 0x81d]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48f43f
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x48f4f2
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.File__s_was_modified_after_getting_its_size.
mov dword [esp + 8], str.MergeAppendFile
mov dword [esp + 4], 0x3ab
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov eax, 0
jmp 0x48f4f7
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret