Function at 0x407760
Capabilities:
Delete file
Get common file path
Move file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x10658
call fcn.00444590
mov eax, dword [0x487264]
xor eax, esp
mov dword [esp + 0x10654], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1066c]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x1066c]
push 0x109
lea eax, [esp + 0x48]
push ebp
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call fcn.004441f0
push 0x103
lea ecx, [esp + 0x265]
push ebp
push ecx
mov byte [esp + 0x26c], 0
call fcn.004441f0
push 0x103
lea edx, [esp + 0x16d]
push ebp
push edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x40], ebp
mov byte [esp + 0x174], 0
call fcn.004441f0
add esp, 0x24
push ebp
push ebp
push 3
push ebp
push 3
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40781e
xor eax, eax
jmp 0x407aff
push ebp
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push ebx
call edi
add dword [esp + 0x10], 4
adc dword [esp + 0x14], ebp
cmp dword [esp + 0x20], ebp
je 0x407ae2
jmp 0x40786c
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x30]
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea edx, [esp + 0x1c]
push edx
push 0xd
lea eax, [esp + 0x48]
push eax
push ebx
call edi
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x4078a0
cmp dword [esp + 0x18], ebp
je 0x407ae2
movzx edx, byte [esp + 0x48]
add dword [esp + 0x10], 0xd
push ebp
lea ecx, [esp + 0x1c]
adc dword [esp + 0x18], ebp
push ecx
push edx
lea eax, [esp + 0x260]
push eax
push ebx
call edi
lea ecx, [esp + 0x254]
push ecx
push esi
call fcn.00406ab0
lea edx, [esp + 0x158]
add esp, 8
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4078e0
lea eax, [esp + 0x254]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4078f3
lea edi, [esp + 0x150]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407904
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
movzx eax, byte [esp + 0x48]
and ecx, 3
cdq
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
add ecx, eax
adc dword [esp + 0x14], edx
push ebp
lea edx, [esp + 0x18]
push edx
push ecx
push ebx
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
jmp 0x407942
xor ebp, ebp
push ebp
push ebp
push 2
push ebp
push 1
push 0x40000000
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x407a09
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x48889c]
mov byte [esp + eax + 0x45c], cl
inc eax
test cl, cl
jne 0x407970
lea eax, [esp + 0x45c]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407990
mov ecx, dword [str.backup_]
mov edx, dword [0x45eb94]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x560]
push eax
call fcn.004076d0
add esp, 4
lea ecx, [esp + 0x358]
push ecx
push 0
lea edx, [esp + 0x568]
push edx
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 2
lea edx, [esp + 0x35c]
push edx
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
inc esi
cmp esi, 2
jl 0x407940
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
movzx ecx, ax
shrd eax, edi, 0x10
shr edi, 0x10
xor esi, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
test edi, edi
jb 0x407a7e
ja 0x407a30
test eax, eax
jbe 0x407a7e
nop
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x10000
lea edx, [esp + 0x670]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x2c]
push eax
push 0x10000
lea ecx, [esp + 0x670]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
mov dword [esp + 0x1c], eax
mov eax, esi
cdq
cmp edx, edi
jb 0x407a30
ja 0x407a7a
cmp eax, dword [esp + 0x34]
jb 0x407a30
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x407ab8
push 0
lea edx, [esp + 0x1c]
push edx
push ecx
lea eax, [esp + 0x670]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x670]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x1c], eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x3c]
add dword [esp + 0x10], ecx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
adc dword [esp + 0x14], edx
inc eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], eax
jne 0x407860
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], eax
jne 0x407afb
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10664]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443a17
add esp, 0x10658
ret