Function at 0x40df57
Capabilities:
Move file
Set file attributes
Timestomp file

Disassembly:
push 0x3c
mov eax, 0x4267b1
call fcn.004122a7
call fcn.004017e9
push eax
lea ecx, [ebp - 0x14]
call fcn.00401eff
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
call fcn.004017e9
push eax
lea ecx, [ebp - 0x18]
call fcn.00401eff
mov byte [ebp - 4], 1
call fcn.004017e9
push eax
lea ecx, [ebp - 0x24]
call fcn.00401eff
mov byte [ebp - 4], 2
call fcn.004017e9
push eax
lea ecx, [ebp - 0x28]
call fcn.00401eff
mov byte [ebp - 4], 3
call fcn.004017e9
push eax
lea ecx, [ebp - 0x20]
call fcn.00401eff
mov byte [ebp - 4], 4
call fcn.004017e9
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401eff
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 5
call fcn.0040e331
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00401af5
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.00401e0f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040e377
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00401af5
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.00401e0f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040e30a
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00401af5
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.00401e0f
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 1
push edi
push eax
call fcn.00411260
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00401af5
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.00401e0f
push str..temp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040d6a3
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00401af5
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.00401e0f
push esi
push edi
call fcn.0041852e
mov ebx, dword [ebp - 0x24]
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x40e139
call fcn.004017e9
push eax
lea ecx, [ebp - 0x10]
call fcn.00401eff
push str._s_already_exists._Overwrite_
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xb
push str.file_already_exists
push eax
call fcn.0040e60a
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call fcn.00401af5
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0xb
lea ecx, [ecx - 0x10]
call fcn.00401e0f
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0040de0a
mov esi, dword [ebp - 0x10]
add esp, 0xc
push 0x24
push str.Overwrite_
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0x10]
cmp eax, 7
je 0x40e221
mov byte [ebp - 4], 5
call fcn.00401e0f
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
mov esi, dword [ebp - 0x14]
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], eax
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x88
call fcn.004123ec
pop ecx
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x40e197
push 1
push 0
push dword [ebp - 0x20]
mov ecx, eax
call fcn.0040292a
jmp 0x40e199
xor eax, eax
push dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x10], eax
push 0x40dee5
mov byte [ebp - 4], 5
call fcn.00403735
mov ecx, dword [ebp - 0x10]
push ebx
push esi
call fcn.00402c5a
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x40e22b
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov ecx, eax
call fcn.00402a04
push 0x88
push dword [ebp - 0x10]
call fcn.00411daa
mov edx, dword [ebp - 0x30]
xor eax, eax
cmp edx, 0xa
pop ecx
sete al
pop ecx
xor ecx, ecx
test eax, eax
sete cl
cmp eax, 1
je 0x40e2a1
cmp ecx, 1
jne 0x40e2a1
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.0040d702
mov esi, dword [ebp - 0x30]
pop ecx
pop ecx
push 0x10
push str.Decryption_Error
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0x10]
call fcn.00401e0f
mov esi, dword [ebp - 0x14]
jmp 0x40e2a1
test eax, eax
je 0x40e245
mov ecx, eax
call fcn.00402a04
push 0x88
push dword [ebp - 0x10]
call fcn.00411daa
pop ecx
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call fcn.004181bf
pop ecx
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x40e291
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
call fcn.00419fd8
pop ecx
pop ecx
mov dword [ebp - 0x2c], 1
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401e0f
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401e0f
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00401e0f
lea ecx, [ebx - 0x10]
call fcn.00401e0f
lea ecx, [edi - 0x10]
call fcn.00401e0f
lea ecx, [esi - 0x10]
call fcn.00401e0f
mov eax, dword [ebp - 0x2c]
call fcn.00412270
ret