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

Disassembly:
mov eax, 0x208c
call fcn.004351f0
mov eax, dword [0x4615e0]
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 0x40c5f5
xor al, al
jmp 0x40c8e5
push 0x50
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00431f30
add esp, 0xc
push 0x400
lea ecx, [esp + 0x94]
push 0
push ecx
call fcn.00431f30
add esp, 0xc
push 0x400
lea edx, [esp + 0x1494]
push 0
push edx
call fcn.00431f30
add esp, 0xc
push ebx
lea eax, [esp + 0x1494]
lea ecx, [esp + 0x94]
lea esi, [esp + 0x44]
call fcn.0040dc90
add esp, 4
test eax, eax
jne 0x40c5ee
test byte [esp + 0x74], 0x10
je 0x40c65f
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 0x40c670
sub eax, edx
js 0x40c697
lea ecx, [ecx]
cmp byte [esp + eax + 0x90], 0x2f
jne 0x40c692
mov byte [esp + eax + 0x90], 0x5c
sub eax, 1
jns 0x40c680
push 0x800
lea eax, [esp + 0x1894]
push 0
push eax
call fcn.00431f30
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 0x40c6e9
push 0x800
push eax
lea eax, [esp + 0x498]
push eax
call fcn.00431f30
add esp, 0xc
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c6f0
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x40c717
lea ecx, [esp + 0x1890]
push ecx
push edi
push str._s_s
jmp 0x40c725
lea edx, [esp + 0x1890]
push edx
push edi
push 0x453448
lea edx, [esp + 0x49c]
call fcn.00405ac0
add esp, 0xc
cmp byte [esp + 0x12], 0
lea ecx, [esp + 0x490]
je 0x40c74e
push 1
call fcn.0040c410
jmp 0x40c8e5
push 0
call fcn.0040c410
test al, al
je 0x40c5ee
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 0x40c7b0
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 0x40c8e5
push ebx
call fcn.0040e0f0
add esp, 4
test eax, eax
jne 0x40c8bb
push 0x800
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc98]
push eax
call fcn.00431f30
lea ecx, [esp + 0xc9c]
add esp, 0xc
push ecx
mov eax, ebx
call fcn.0040e2c0
mov esi, eax
add esp, 4
test esi, esi
jle 0x40c85c
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 0x40c8bb
cmp dword [esp + 0x14], esi
jne 0x40c8bb
push 0x800
lea ecx, [esp + 0xc94]
push 0
push ecx
call fcn.00431f30
lea edx, [esp + 0xc9c]
add esp, 0xc
push edx
mov eax, ebx
mov dword [esp + 0x18], 0
call fcn.0040e2c0
mov esi, eax
add esp, 4
test esi, esi
jg 0x40c800
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 0x40c8bb
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 0x40c8bb
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x40c8bb
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 0x40c8c6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
call fcn.0040e540
mov bl, byte [esp + 0x13]
test bl, bl
jne 0x40c8e3
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.00430ff6
add esp, 0x208c
ret