Function at 0x415e80
Capabilities:
Clear file content
Copy file
Delete file
Move file
Timestomp file

Disassembly:
push 0xffffffffffffffff
push 0x471518
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x2f9], bl
je 0x4160cc
mov ecx, dword [esi + 0xec]
mov byte [esi + 0x2f9], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1b8]
call edx
imul eax, eax, 0x3e8
mov ecx, dword [esi + 0xf0]
push eax
call fcn.00449af0
push 1
mov ecx, esi
call fcn.00413960
mov eax, dword [esi + 0x2e0]
lea edi, [esi + 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [esi + 0x2c4]
mov eax, ecx
lea ebp, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x415f20
sub eax, ebp
je 0x415fb1
push ecx
call fcn.0045e9b6
lea edx, [esi + 0x2c7]
push edx
mov word [esp + 0x2a], ax
call fcn.0045e9b6
mov word [esp + 0x2e], ax
lea eax, [esi + 0x2ca]
push eax
call fcn.0045e9b6
lea ecx, [esi + 0x2cf]
push ecx
mov word [esp + 0x30], ax
call fcn.0045e9b6
lea edx, [esi + 0x2d2]
push edx
mov word [esp + 0x3c], ax
call fcn.0045e9b6
add esp, 0x14
mov word [esp + 0x2a], ax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov word [esp + 0x36], bx
mov word [esp + 0x34], bx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
mov ecx, edx
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call fcn.0044a2c0
add esp, 4
lea edi, [esi + 0x180]
push edi
mov ecx, esi
call fcn.00413440
cmp byte [esi + 0x2f8], bl
mov byte [esp + 0x17], al
je 0x415ff2
cmp byte [esi + 0x2fb], bl
je 0x415ff2
push ebx
push edi
call fcn.004114f0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4160a6
sub esp, 0x1c
mov ecx, esp
mov eax, edi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [ecx + 4], bl
lea ebp, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x416010
sub eax, ebp
push eax
push edi
call fcn.00404f80
lea eax, [esp + 0x3c]
push eax
call fcn.00415a70
add esp, 0x20
cmp byte [esi + 0x2f8], bl
mov dword [esp + 0x48], ebx
mov ebp, 0x10
jne 0x416093
cmp byte [esp + 0x17], bl
jne 0x416093
call fcn.0043c700
cmp eax, 3
mov eax, dword [esp + 0x24]
jne 0x416074
cmp dword [esp + 0x38], ebp
jae 0x41605e
lea eax, [esp + 0x24]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x41608c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x416093
cmp dword [esp + 0x38], ebp
jae 0x41607e
lea eax, [esp + 0x24]
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x416093
mov byte [esi + 0x2f8], 1
cmp dword [esp + 0x38], ebp
jb 0x4160a6
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0045c39e
add esp, 4
mov eax, dword [esi + 0x2dc]
cmp eax, ebx
je 0x4160b9
push eax
call fcn.0045d145
add esp, 4
mov esi, dword [esi + 0x2d8]
cmp esi, ebx
je 0x4160cc
push esi
call fcn.0045d145
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0045c20d
add esp, 0x38
ret