Function at 0x407680
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1b79
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x639210]
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xdc], eax
call fcn.00569b88
push 0x60416c
lea ecx, [ebp - 0x140]
mov dword [ebp - 0xd8], eax
call fcn.004022c0
push 0x6497f8
mov dword [ebp - 4], 0
call fcn.00410f40
cmp dword [ebp - 0x12c], 8
lea ecx, [ebp - 0x140]
mov ebx, 0x6497f8
cmovae ecx, dword [ebp - 0x140]
mov eax, ebx
cmp dword [0x64980c], 8
push 0x40
cmovae eax, dword [0x6497f8]
push ecx
push eax
call fcn.00569609
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
mov edi, eax
call fcn.00402220
call fcn.00569b88
test esi, esi
je 0x407763
sub eax, dword [ebp - 0xd8]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fsopen_use_time
call fcn.00417840
add esp, 4
mov ecx, eax
call fcn.00411c70
mov edx, 0x604170
mov ecx, eax
call fcn.00417840
test edi, edi
je 0x407a23
call fcn.00569b88
push 2
push 0
push edi
mov dword [ebp - 0xd8], eax
call fcn.00569d36
add esp, 0xc
push edi
call fcn.0056a149
add esp, 4
mov dword [ebp - 0xd4], eax
call fcn.00569b88
test esi, esi
je 0x4077c6
sub eax, dword [ebp - 0xd8]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fseekftell_use_time
call fcn.00417840
add esp, 4
mov ecx, eax
call fcn.00411c70
mov edx, 0x604170
mov ecx, eax
call fcn.00417840
cmp dword [ebp - 0xd4], 0xa00000
jl 0x407a36
call fcn.00569b88
push edi
mov dword [ebp - 0xd4], eax
call fcn.0056973f
add esp, 4
call fcn.00569b88
test esi, esi
je 0x40781e
sub eax, dword [ebp - 0xd4]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fclose_use_time
call fcn.00417840
add esp, 4
mov ecx, eax
call fcn.00411c70
mov edx, 0x604170
mov ecx, eax
call fcn.00417840
lea ecx, [ebp - 0x70]
call fcn.00402190
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 1
push eax
call fcn.00410e50
push ecx
push 0x6079a0
push 0x6041b4
lea ecx, [ebp - 0x70]
call fcn.00402df0
push ecx
push 0x6079a0
push 0x604044
lea ecx, [ebp - 0x70]
call fcn.00402df0
push ecx
push 0x6079a0
push 0x6041b8
lea ecx, [ebp - 0x70]
call fcn.00402df0
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
mov ecx, 0x649738
mov eax, 0x649678
cmovae edx, dword [ebp - 0x70]
cmp dword [0x64974c], 8
push edx
cmovae ecx, dword [0x649738]
cmp dword [0x64968c], 8
push ecx
cmovae eax, dword [0x649678]
push eax
push 0x6041bc
lea eax, [ebp - 0xd0]
push eax
push 0x6495d0
call fcn.00410a60
mov byte [ebp - 4], 2
call fcn.00569b88
cmp dword [ebp - 0xbc], 8
lea edx, [ebp - 0xd0]
mov ecx, ebx
mov edi, eax
cmovae edx, dword [ebp - 0xd0]
cmp dword [0x64980c], 8
push edx
cmovae ecx, dword [0x6497f8]
push ecx
call fcn.00567cb4
add esp, 0x20
call fcn.00569b88
test esi, esi
je 0x407922
sub eax, edi
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str.__trename_use_time
call fcn.00417840
add esp, 4
mov ecx, eax
call fcn.00411c70
mov edx, 0x604170
mov ecx, eax
call fcn.00417840
call fcn.00569b88
cmp dword [0x64980c], 8
mov ecx, ebx
mov edi, eax
cmovae ecx, dword [0x6497f8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00569b88
test esi, esi
je 0x407970
sub eax, edi
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._DeleteFile_use_time
call fcn.00417840
add esp, 4
mov ecx, eax
call fcn.00411c70
mov edx, 0x604170
mov ecx, eax
call fcn.00417840
call fcn.00569b88
push 0x60416c
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0xd4], eax
call fcn.004022c0
push 0x6497f8
mov byte [ebp - 4], 3
call fcn.00410f40
cmp dword [ebp - 0x18c], 8
lea ecx, [ebp - 0x1a0]
push 0x40
cmovae ecx, dword [ebp - 0x1a0]
cmp dword [0x64980c], 8
push ecx
cmovae ebx, dword [0x6497f8]
push ebx
call fcn.00569609
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1a0]
mov edi, eax
call fcn.00402220
call fcn.00569b88
test esi, esi
je 0x407a0c
sub eax, dword [ebp - 0xd4]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fsopen_use_time
call fcn.00417840
add esp, 4
mov ecx, eax
call fcn.00411c70
mov edx, 0x604170
mov ecx, eax
call fcn.00417840
lea ecx, [ebp - 0xd0]
call fcn.00402220
lea ecx, [ebp - 0x70]
test edi, edi
jne 0x407a2a
call fcn.00402220
xor al, al
jmp 0x407ae1
mov dword [ebp - 4], 0xffffffff
call fcn.00402220
call fcn.00569b88
mov ebx, dword [ebp + 0x14]
push edi
push ebx
push 1
push dword [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
call fcn.0056990f
add esp, 0x10
mov dword [ebp - 0xd8], eax
call fcn.00569b88
test esi, esi
je 0x407a90
sub eax, dword [ebp - 0xd4]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fwrite_use_time
call fcn.00417840
add esp, 4
mov ecx, eax
call fcn.00411c70
mov edx, 0x604170
mov ecx, eax
call fcn.00417840
call fcn.00569b88
push edi
mov dword [ebp - 0xdc], eax
call fcn.0056973f
add esp, 4
call fcn.00569b88
test esi, esi
je 0x407ad8
sub eax, dword [ebp - 0xdc]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fclose_use_time
call fcn.00417840
add esp, 4
mov ecx, eax
call fcn.00411c70
mov edx, 0x604170
mov ecx, eax
call fcn.00417840
cmp dword [ebp - 0xd8], ebx
sete al
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.00567455
mov esp, ebp
pop ebp
ret 0x10