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

Disassembly:
mov eax, 0x208c
call fcn.00429090
mov eax, dword [0x451c14]
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 0x40fc35
xor al, al
jmp 0x40ff23
push 0x50
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00428ee0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x94]
push 0
push ecx
call fcn.00428ee0
add esp, 0xc
push 0x400
lea edx, [esp + 0x1494]
push 0
push edx
call fcn.00428ee0
add esp, 0xc
push ebx
lea eax, [esp + 0x1494]
lea ecx, [esp + 0x94]
lea esi, [esp + 0x44]
call fcn.004125f0
add esp, 4
test eax, eax
jne 0x40fc2e
test byte [esp + 0x74], 0x10
je 0x40fc9f
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 0x40fcb0
sub eax, edx
js 0x40fcd7
lea ecx, [ecx]
cmp byte [esp + eax + 0x90], 0x2f
jne 0x40fcd2
mov byte [esp + eax + 0x90], 0x5c
sub eax, 1
jns 0x40fcc0
push 0x800
lea eax, [esp + 0x1894]
push 0
push eax
call fcn.00428ee0
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 0x40fd29
push 0x800
push eax
lea eax, [esp + 0x498]
push eax
call fcn.00428ee0
add esp, 0xc
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fd30
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x40fd57
lea ecx, [esp + 0x1890]
push ecx
push edi
push str._s_s
jmp 0x40fd65
lea edx, [esp + 0x1890]
push edx
push edi
push 0x445094
lea edx, [esp + 0x49c]
call fcn.004059c0
add esp, 0xc
cmp byte [esp + 0x12], 0
lea ecx, [esp + 0x490]
je 0x40fd8e
push 1
call fcn.0040fa50
jmp 0x40ff23
push 0
call fcn.0040fa50
test al, al
je 0x40fc2e
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 edi, eax
cmp edi, 0xffffffff
jne 0x40fdf0
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 0x40ff23
push ebx
call fcn.00412a50
add esp, 4
test eax, eax
jne 0x40fefb
push 0x800
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc98]
push eax
call fcn.00428ee0
lea ecx, [esp + 0xc9c]
add esp, 0xc
push ecx
mov eax, ebx
call fcn.00412c20
mov esi, eax
add esp, 4
test esi, esi
jle 0x40fe9c
mov ebp, 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 edi
call ebp
test eax, eax
je 0x40fefb
cmp dword [esp + 0x14], esi
jne 0x40fefb
push 0x800
lea ecx, [esp + 0xc94]
push 0
push ecx
call fcn.00428ee0
lea edx, [esp + 0xc9c]
add esp, 0xc
push edx
mov eax, ebx
mov dword [esp + 0x18], 0
call fcn.00412c20
mov esi, eax
add esp, 4
test esi, esi
jg 0x40fe40
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
mov byte [esp + 0x23], 1
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40fefb
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 0x40fefb
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x40fefb
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov edx, eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test edi, edi
je 0x40ff06
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00412ed0
mov bl, byte [esp + 0x13]
test bl, bl
jne 0x40ff21
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.0042683e
add esp, 0x208c
ret