Function at 0x492a37
Capabilities:
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.004d7290
sub esp, eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._rename
test eax, eax
jne 0x492a6d
mov eax, 0
jmp 0x492c88
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_rename__s:__s
mov dword [esp + 8], str.OS_MoveFile
mov dword [esp + 4], 0x90e
mov dword [esp], str.shared_file_op.c
call dbg._mdebug1
mov dword [esp + 4], 0x5035ed
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x492afe
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_open_file__s
mov dword [esp + 8], str.OS_MoveFile
mov dword [esp + 4], 0x913
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov eax, 0xffffffff
jmp 0x492c88
mov dword [esp + 4], 0x5036dc
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x492c49
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_open_file__s
mov dword [esp + 8], str.OS_MoveFile
mov dword [esp + 4], 0x91a
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._unlink
mov eax, 0xffffffff
jmp 0x492c88
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
lea eax, [ebp - 0x101c]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ferror
test eax, eax
je 0x492bd7
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_read_file__s
mov dword [esp + 8], str.OS_MoveFile
mov dword [esp + 4], 0x924
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov dword [ebp - 0xc], 0xffffffff
jmp 0x492c5c
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x101c]
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jne 0x492c15
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._ferror
test eax, eax
je 0x492c49
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_write_file__s
mov dword [esp + 8], str.OS_MoveFile
mov dword [esp + 4], 0x92c
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov dword [ebp - 0xc], 0xffffffff
jmp 0x492c5c
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._feof
test eax, eax
je 0x492b69
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fclose
cmp dword [ebp - 0xc], 0
jne 0x492c85
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._unlink
jmp 0x492c88
mov eax, dword [ebp - 0xc]
leave
ret