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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c0f3
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x608190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
call fcn.0055aed2
mov dword [ebp - 0xd8], eax
push 0x40
sub esp, 0x60
mov ecx, esp
mov dword [ebp - 0x124], esp
push 0x5d943c
call fcn.00402270
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0xe4]
add eax, 0x1a8
push eax
mov ecx, 0x61435c
call fcn.00404810
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0xdc], ecx
call fcn.0055aed2
mov dword [ebp - 0xd4], eax
cmp dword [ebp + 0xc], 0
je 0x407c56
cmp dword [ebp + 0xc], 0
je 0x407c16
mov edx, dword [ebp + 0xc]
add edx, 0x10
mov dword [ebp - 0xec], edx
jmp 0x407c20
mov dword [ebp - 0xec], 0
push 0x5d94a8
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0xd8]
push eax
push 0x5d94ac
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.0041f5d0
add esp, 8
mov ecx, eax
call fcn.00412bd0
push eax
call fcn.0041f5d0
add esp, 8
cmp dword [ebp - 0xdc], 0
jne 0x407c66
xor al, al
jmp 0x4081aa
call fcn.0055aed2
mov dword [ebp - 0xd8], eax
push 2
push 0
mov edx, dword [ebp - 0xdc]
push edx
call fcn.0055b080
add esp, 0xc
mov eax, dword [ebp - 0xdc]
push eax
call fcn.0055b493
add esp, 4
mov dword [ebp - 0x114], eax
call fcn.0055aed2
mov dword [ebp - 0xd4], eax
cmp dword [ebp + 0xc], 0
je 0x407cfe
cmp dword [ebp + 0xc], 0
je 0x407cbe
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x104], ecx
jmp 0x407cc8
mov dword [ebp - 0x104], 0
push 0x5d94c0
mov edx, dword [ebp - 0xd4]
sub edx, dword [ebp - 0xd8]
push edx
push str._fseekftell_use_time
mov eax, dword [ebp - 0x104]
push eax
call fcn.0041f5d0
add esp, 8
mov ecx, eax
call fcn.00412bd0
push eax
call fcn.0041f5d0
add esp, 8
cmp dword [ebp - 0x114], 0xa00000
jl 0x40807e
call fcn.0055aed2
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xdc]
push ecx
call fcn.0055aa92
add esp, 4
call fcn.0055aed2
mov dword [ebp - 0xd4], eax
cmp dword [ebp + 0xc], 0
je 0x407d8d
cmp dword [ebp + 0xc], 0
je 0x407d4d
mov edx, dword [ebp + 0xc]
add edx, 0x10
mov dword [ebp - 0xf0], edx
jmp 0x407d57
mov dword [ebp - 0xf0], 0
push 0x5d94dc
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0xd8]
push eax
push 0x5d94e0
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.0041f5d0
add esp, 8
mov ecx, eax
call fcn.00412bd0
push eax
call fcn.0041f5d0
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.004021a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x70]
push edx
mov ecx, 0x614354
call fcn.00411d70
push 0
push 0x5d94f4
push 0x5d94f8
lea ecx, [ebp - 0x70]
call fcn.00402ee0
push 0
push 0x5d94fc
push 0x5d9500
lea ecx, [ebp - 0x70]
call fcn.00402ee0
push 0
push 0x5d9504
push 0x5d9508
lea ecx, [ebp - 0x70]
call fcn.00402ee0
lea ecx, [ebp - 0x70]
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
mov ecx, dword [ebp - 0xe4]
add ecx, 0xe8
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
mov ecx, dword [ebp - 0xe4]
add ecx, 0x28
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
push 0x5d950c
lea eax, [ebp - 0xd0]
push eax
push 0x614354
call fcn.00411a20
add esp, 0x18
mov byte [ebp - 4], 1
call fcn.0055aed2
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0xd0]
call fcn.00402620
push eax
mov ecx, dword [ebp - 0xe4]
add ecx, 0x1a8
call fcn.00402620
push eax
call fcn.00559074
add esp, 8
call fcn.0055aed2
mov dword [ebp - 0xd4], eax
cmp dword [ebp + 0xc], 0
je 0x407ed8
cmp dword [ebp + 0xc], 0
je 0x407e98
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0xfc], ecx
jmp 0x407ea2
mov dword [ebp - 0xfc], 0
push 0x5d9524
mov edx, dword [ebp - 0xd4]
sub edx, dword [ebp - 0xd8]
push edx
push str.__trename_use_time
mov eax, dword [ebp - 0xfc]
push eax
call fcn.0041f5d0
add esp, 8
mov ecx, eax
call fcn.00412bd0
push eax
call fcn.0041f5d0
add esp, 8
call fcn.0055aed2
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xe4]
add ecx, 0x1a8
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0055aed2
mov dword [ebp - 0xd4], eax
cmp dword [ebp + 0xc], 0
je 0x407f67
cmp dword [ebp + 0xc], 0
je 0x407f27
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x100], ecx
jmp 0x407f31
mov dword [ebp - 0x100], 0
push 0x5d953c
mov edx, dword [ebp - 0xd4]
sub edx, dword [ebp - 0xd8]
push edx
push str._DeleteFile_use_time
mov eax, dword [ebp - 0x100]
push eax
call fcn.0041f5d0
add esp, 8
mov ecx, eax
call fcn.00412bd0
push eax
call fcn.0041f5d0
add esp, 8
call fcn.0055aed2
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xdc], 0
push 0x40
sub esp, 0x60
mov ecx, esp
mov dword [ebp - 0x118], esp
push 0x5d9558
call fcn.00402270
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0xe4]
add ecx, 0x1a8
push ecx
mov ecx, 0x61435c
call fcn.00404810
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0xdc], edx
call fcn.0055aed2
mov dword [ebp - 0xd4], eax
cmp dword [ebp + 0xc], 0
je 0x408027
cmp dword [ebp + 0xc], 0
je 0x407fe7
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 0xf8], eax
jmp 0x407ff1
mov dword [ebp - 0xf8], 0
push 0x5d955c
mov ecx, dword [ebp - 0xd4]
sub ecx, dword [ebp - 0xd8]
push ecx
push str._fsopen_use_time
mov edx, dword [ebp - 0xf8]
push edx
call fcn.0041f5d0
add esp, 8
mov ecx, eax
call fcn.00412bd0
push eax
call fcn.0041f5d0
add esp, 8
cmp dword [ebp - 0xdc], 0
jne 0x408060
mov byte [ebp - 0xdd], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.00402230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00402230
mov al, byte [ebp - 0xdd]
jmp 0x4081aa
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.00402230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00402230
cmp dword [ebp - 0xdc], 0
je 0x4081a8
call fcn.0055aed2
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
call fcn.0055ac62
add esp, 0x10
mov dword [ebp - 0x10c], eax
call fcn.0055aed2
mov dword [ebp - 0xd4], eax
cmp dword [ebp + 0xc], 0
je 0x40811a
cmp dword [ebp + 0xc], 0
je 0x4080da
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 0xe8], eax
jmp 0x4080e4
mov dword [ebp - 0xe8], 0
push 0x5d9574
mov ecx, dword [ebp - 0xd4]
sub ecx, dword [ebp - 0xd8]
push ecx
push str._fwrite_use_time
mov edx, dword [ebp - 0xe8]
push edx
call fcn.0041f5d0
add esp, 8
mov ecx, eax
call fcn.00412bd0
push eax
call fcn.0041f5d0
add esp, 8
call fcn.0055aed2
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xdc]
push eax
call fcn.0055aa92
add esp, 4
call fcn.0055aed2
mov dword [ebp - 0xd4], eax
cmp dword [ebp + 0xc], 0
je 0x408199
cmp dword [ebp + 0xc], 0
je 0x408159
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0xf4], ecx
jmp 0x408163
mov dword [ebp - 0xf4], 0
push 0x5d958c
mov edx, dword [ebp - 0xd4]
sub edx, dword [ebp - 0xd8]
push edx
push str._fclose_use_time
mov eax, dword [ebp - 0xf4]
push eax
call fcn.0041f5d0
add esp, 8
mov ecx, eax
call fcn.00412bd0
push eax
call fcn.0041f5d0
add esp, 8
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [ebp + 0x14]
jne 0x4081a8
mov al, 1
jmp 0x4081aa
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00558807
mov esp, ebp
pop ebp
ret 0x10