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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a749
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x618190]
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.005533e8
push 0x5e98cc
lea ecx, [ebp - 0x140]
mov dword [ebp - 0xd8], eax
call fcn.004021f0
push 0x627c08
mov dword [ebp - 4], 0
call fcn.00413d50
cmp dword [ebp - 0x12c], 8
lea ecx, [ebp - 0x140]
mov ebx, 0x627c08
cmovae ecx, dword [ebp - 0x140]
mov eax, ebx
cmp dword [0x627c1c], 8
push 0x40
cmovae eax, dword [0x627c08]
push ecx
push eax
call fcn.00552e69
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
mov edi, eax
call fcn.00402150
call fcn.005533e8
test esi, esi
je 0x407093
sub eax, dword [ebp - 0xd8]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fsopen_use_time
call fcn.0041a090
add esp, 4
mov ecx, eax
call fcn.00414740
mov edx, 0x5e98d0
mov ecx, eax
call fcn.0041a090
test edi, edi
je 0x407353
call fcn.005533e8
push 2
push 0
push edi
mov dword [ebp - 0xd8], eax
call fcn.00553596
add esp, 0xc
push edi
call fcn.005539a9
add esp, 4
mov dword [ebp - 0xd4], eax
call fcn.005533e8
test esi, esi
je 0x4070f6
sub eax, dword [ebp - 0xd8]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fseekftell_use_time
call fcn.0041a090
add esp, 4
mov ecx, eax
call fcn.00414740
mov edx, 0x5e98d0
mov ecx, eax
call fcn.0041a090
cmp dword [ebp - 0xd4], 0xa00000
jl 0x407366
call fcn.005533e8
push edi
mov dword [ebp - 0xd4], eax
call fcn.00552f9f
add esp, 4
call fcn.005533e8
test esi, esi
je 0x40714e
sub eax, dword [ebp - 0xd4]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fclose_use_time
call fcn.0041a090
add esp, 4
mov ecx, eax
call fcn.00414740
mov edx, 0x5e98d0
mov ecx, eax
call fcn.0041a090
lea ecx, [ebp - 0x70]
call fcn.004020c0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 1
push eax
call fcn.004138d0
push ecx
push 0x5ed1d8
push 0x5e9914
lea ecx, [ebp - 0x70]
call fcn.00402af0
push ecx
push 0x5ed1d8
push 0x5e97a4
lea ecx, [ebp - 0x70]
call fcn.00402af0
push ecx
push 0x5ed1d8
push 0x5e9918
lea ecx, [ebp - 0x70]
call fcn.00402af0
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
mov ecx, 0x627b48
mov eax, 0x627a88
cmovae edx, dword [ebp - 0x70]
cmp dword [0x627b5c], 8
push edx
cmovae ecx, dword [0x627b48]
cmp dword [0x627a9c], 8
push ecx
cmovae eax, dword [0x627a88]
push eax
push 0x5e991c
lea eax, [ebp - 0xd0]
push eax
push 0x6279dc
call fcn.004134e0
mov byte [ebp - 4], 2
call fcn.005533e8
cmp dword [ebp - 0xbc], 8
lea edx, [ebp - 0xd0]
mov ecx, ebx
mov edi, eax
cmovae edx, dword [ebp - 0xd0]
cmp dword [0x627c1c], 8
push edx
cmovae ecx, dword [0x627c08]
push ecx
call fcn.00551514
add esp, 0x20
call fcn.005533e8
test esi, esi
je 0x407252
sub eax, edi
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str.__trename_use_time
call fcn.0041a090
add esp, 4
mov ecx, eax
call fcn.00414740
mov edx, 0x5e98d0
mov ecx, eax
call fcn.0041a090
call fcn.005533e8
cmp dword [0x627c1c], 8
mov ecx, ebx
mov edi, eax
cmovae ecx, dword [0x627c08]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.005533e8
test esi, esi
je 0x4072a0
sub eax, edi
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._DeleteFile_use_time
call fcn.0041a090
add esp, 4
mov ecx, eax
call fcn.00414740
mov edx, 0x5e98d0
mov ecx, eax
call fcn.0041a090
call fcn.005533e8
push 0x5e98cc
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0xd4], eax
call fcn.004021f0
push 0x627c08
mov byte [ebp - 4], 3
call fcn.00413d50
cmp dword [ebp - 0x18c], 8
lea ecx, [ebp - 0x1a0]
push 0x40
cmovae ecx, dword [ebp - 0x1a0]
cmp dword [0x627c1c], 8
push ecx
cmovae ebx, dword [0x627c08]
push ebx
call fcn.00552e69
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1a0]
mov edi, eax
call fcn.00402150
call fcn.005533e8
test esi, esi
je 0x40733c
sub eax, dword [ebp - 0xd4]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fsopen_use_time
call fcn.0041a090
add esp, 4
mov ecx, eax
call fcn.00414740
mov edx, 0x5e98d0
mov ecx, eax
call fcn.0041a090
lea ecx, [ebp - 0xd0]
call fcn.00402150
lea ecx, [ebp - 0x70]
test edi, edi
jne 0x40735a
call fcn.00402150
xor al, al
jmp 0x407411
mov dword [ebp - 4], 0xffffffff
call fcn.00402150
call fcn.005533e8
mov ebx, dword [ebp + 0x14]
push edi
push ebx
push 1
push dword [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
call fcn.0055316f
add esp, 0x10
mov dword [ebp - 0xd8], eax
call fcn.005533e8
test esi, esi
je 0x4073c0
sub eax, dword [ebp - 0xd4]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fwrite_use_time
call fcn.0041a090
add esp, 4
mov ecx, eax
call fcn.00414740
mov edx, 0x5e98d0
mov ecx, eax
call fcn.0041a090
call fcn.005533e8
push edi
mov dword [ebp - 0xdc], eax
call fcn.00552f9f
add esp, 4
call fcn.005533e8
test esi, esi
je 0x407408
sub eax, dword [ebp - 0xdc]
lea ecx, [esi + 0x10]
push eax
push ecx
mov edx, str._fclose_use_time
call fcn.0041a090
add esp, 4
mov ecx, eax
call fcn.00414740
mov edx, 0x5e98d0
mov ecx, eax
call fcn.0041a090
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.00550cb3
mov esp, ebp
pop ebp
ret 0x10