Function at 0x401e10
Capabilities:
Delete file
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push 0
push 0x20
push 4
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
mov esi, eax
push 0
push esi
call ebp
push 2
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
sub edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov ecx, dword [esp + 0x2c]
push 0
push 0x20
push 4
push 0
push 3
push 0x80000000
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
mov esi, eax
push 0
push esi
call ebp
push 2
push 0
push 0
push esi
mov dword [esp + 0x2c], eax
call ebp
mov ecx, dword [esp + 0x1c]
mov edi, eax
push esi
sub edi, ecx
call ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401ea6
sub eax, ecx
inc eax
push eax
call fcn.00403228
mov esi, dword [esp + 0x30]
mov ebx, eax
mov edx, ebx
add esp, 4
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401ec5
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ed4
sub eax, edx
mov ecx, 0x4092b0
lea edx, [eax + ebx - 3]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x401ee8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x402088
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0x80000000
push edx
call esi
push 0
push 0x20
push 4
push 0
push 3
mov edi, eax
mov eax, dword [esp + 0x40]
push 0x40000000
push eax
mov dword [esp + 0x38], edi
call esi
mov ecx, dword [esp + 0x28]
push ecx
mov esi, eax
call fcn.00401a30
add esp, 4
test al, al
je 0x401f7f
mov eax, dword [0x4092a0]
push 2
push 0
mov edx, 0xfffffff8
sub edx, eax
push edx
push edi
call ebp
push 0
lea eax, [esp + 0x24]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0
push edi
call ebp
mov edx, dword [esp + 0x10]
inc edx
push edx
call fcn.00403228
mov ecx, dword [esp + 0x14]
add esp, 4
push 0
mov ebp, eax
lea eax, [esp + 0x24]
push eax
push ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push esi
call edi
push ebp
call fcn.00403275
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
inc edx
push edx
call fcn.00403228
add esp, 4
push 0
push 0x20
push 4
push 0
push 3
push 0x80000000
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
push ebp
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
push esi
call edi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00403275
add esp, 4
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push esi
call edi
mov edx, dword [0x4092a0]
mov eax, dword [0x4092ac]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call fcn.00403275
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret