Function at 0x40c620
Capabilities:
Delete file
Print debug messages
Timestomp file
Write file on windows

Disassembly:
mov eax, 0x208c
call fcn.00435250
mov eax, dword [0x4625e0]
xor eax, esp
mov dword [esp + 0x2084], eax
push ebx
push ebp
push esi
mov ebx, edx
test ebx, ebx
push edi
mov edi, ecx
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
jne 0x40c655
xor al, al
jmp 0x40c945
push 0x50
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00431f90
add esp, 0xc
push 0x400
lea ecx, [esp + 0x94]
push 0
push ecx
call fcn.00431f90
add esp, 0xc
push 0x400
lea edx, [esp + 0x1494]
push 0
push edx
call fcn.00431f90
add esp, 0xc
push ebx
lea eax, [esp + 0x1494]
lea ecx, [esp + 0x94]
lea esi, [esp + 0x44]
call fcn.0040dcf0
add esp, 4
test eax, eax
jne 0x40c64e
test byte [esp + 0x74], 0x10
je 0x40c6bf
mov byte [esp + 0x12], 1
lea eax, [esp + 0x90]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c6d0
sub eax, edx
js 0x40c6f7
lea ecx, [ecx]
cmp byte [esp + eax + 0x90], 0x2f
jne 0x40c6f2
mov byte [esp + eax + 0x90], 0x5c
sub eax, 1
jns 0x40c6e0
push 0x800
lea eax, [esp + 0x1894]
push 0
push eax
call fcn.00431f90
add esp, 0xc
push 0x400
lea ecx, [esp + 0x1894]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x9c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40c749
push 0x800
push eax
lea eax, [esp + 0x498]
push eax
call fcn.00431f90
add esp, 0xc
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c750
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x40c777
lea ecx, [esp + 0x1890]
push ecx
push edi
push str._s_s
jmp 0x40c785
lea edx, [esp + 0x1890]
push edx
push edi
push 0x454448
lea edx, [esp + 0x49c]
call fcn.00405ab0
add esp, 0xc
cmp byte [esp + 0x12], 0
lea ecx, [esp + 0x490]
je 0x40c7ae
push 1
call fcn.0040c470
jmp 0x40c945
push 0
call fcn.0040c470
test al, al
je 0x40c64e
lea eax, [esp + 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea ecx, [esp + 0x4a8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40c810
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Fail_to_create_file__
call esi
lea edx, [esp + 0x490]
push edx
call esi
mov al, 1
jmp 0x40c945
push ebx
call fcn.0040e150
add esp, 4
test eax, eax
jne 0x40c91b
push 0x800
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc98]
push eax
call fcn.00431f90
lea ecx, [esp + 0xc9c]
add esp, 0xc
push ecx
mov eax, ebx
call fcn.0040e320
mov esi, eax
add esp, 4
test esi, esi
jle 0x40c8bc
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [esp]
push 0
lea edx, [esp + 0x18]
push edx
push esi
lea eax, [esp + 0xc9c]
push eax
push ebp
call edi
test eax, eax
je 0x40c91b
cmp dword [esp + 0x14], esi
jne 0x40c91b
push 0x800
lea ecx, [esp + 0xc94]
push 0
push ecx
call fcn.00431f90
lea edx, [esp + 0xc9c]
add esp, 0xc
push edx
mov eax, ebx
mov dword [esp + 0x18], 0
call fcn.0040e320
mov esi, eax
add esp, 4
test esi, esi
jg 0x40c860
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push ebp
mov byte [esp + 0x23], 1
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40c91b
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x54]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x40c91b
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x40c91b
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov edx, eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test ebp, ebp
je 0x40c926
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
call fcn.0040e5a0
mov bl, byte [esp + 0x13]
test bl, bl
jne 0x40c943
lea eax, [esp + 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
mov ecx, dword [esp + 0x2094]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431056
add esp, 0x208c
ret