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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28b4
call fcn.00416960
mov eax, dword [0x43e270]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28b4], ecx
mov byte [ebp - 0x819], 0
mov dword [ebp - 0x1034], 0xffffffff
mov byte [ebp - 0x1035], 0
cmp dword [ebp + 8], 0
jne 0x42f812
xor al, al
jmp 0x42fc1b
push 0x50
push 0
lea eax, [ebp - 0x1088]
push eax
call fcn.0040d9a0
add esp, 0xc
push 0x400
push 0
lea ecx, [ebp - 0x818]
push ecx
call fcn.0040d9a0
add esp, 0xc
push 0x400
push 0
lea edx, [ebp - 0x410]
push edx
call fcn.0040d9a0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push 0x400
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x1088]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042e350
add esp, 0x20
test eax, eax
je 0x42f88b
xor al, al
jmp 0x42fc1b
mov ecx, dword [ebp - 0x1054]
and ecx, 0x10
je 0x42f89d
mov byte [ebp - 0x1035], 1
lea edx, [ebp - 0x818]
push edx
call fcn.0040d8f0
add esp, 4
mov dword [ebp - 0x20a4], eax
jmp 0x42f8c3
mov eax, dword [ebp - 0x20a4]
sub eax, 1
mov dword [ebp - 0x20a4], eax
cmp dword [ebp - 0x20a4], 0
jl 0x42f8ef
mov ecx, dword [ebp - 0x20a4]
movsx edx, byte [ebp + ecx - 0x818]
cmp edx, 0x2f
jne 0x42f8ed
mov eax, dword [ebp - 0x20a4]
mov byte [ebp + eax - 0x818], 0x5c
jmp 0x42f8b4
push 0x800
push 0
lea ecx, [ebp - 0x1020]
push ecx
call fcn.0040d9a0
add esp, 0xc
push 0x400
lea edx, [ebp - 0x1020]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x818]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x42f93e
push 0x800
push 0
lea ecx, [ebp - 0x20a0]
push ecx
call fcn.0040d9a0
add esp, 0xc
mov edx, dword [ebp - 0x28b4]
push edx
call fcn.0040d97b
add esp, 4
mov ecx, dword [ebp - 0x28b4]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
jne 0x42f980
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x28b4]
push ecx
push 0x43a220
lea edx, [ebp - 0x20a0]
call fcn.004029a0
add esp, 0xc
jmp 0x42f9a1
lea edx, [ebp - 0x1020]
push edx
mov eax, dword [ebp - 0x28b4]
push eax
push str._s_s
lea edx, [ebp - 0x20a0]
call fcn.004029a0
add esp, 0xc
movzx ecx, byte [ebp - 0x1035]
test ecx, ecx
je 0x42f9c9
mov edx, dword [ebp + 0xc]
push edx
push 1
lea eax, [ebp - 0x20a0]
push eax
mov ecx, dword [ebp - 0x28b4]
call fcn.0042f5b0
jmp 0x42fc1b
mov ecx, dword [ebp + 0xc]
push ecx
push 0
lea edx, [ebp - 0x20a0]
push edx
mov ecx, dword [ebp - 0x28b4]
call fcn.0042f5b0
movzx eax, al
test eax, eax
jne 0x42f9ef
xor al, al
jmp 0x42fc1b
lea ecx, [ebp - 0x20a0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x20a0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1034], eax
cmp dword [ebp - 0x1034], 0xffffffff
jne 0x42fa49
push str.Fail_to_create_file__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, 1
jmp 0x42fc1b
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042ea30
add esp, 4
test eax, eax
je 0x42fa63
jmp 0x42fbd2
mov dword [ebp - 4], 0
mov dword [ebp - 0x189c], 0
push 0x800
push 0
lea edx, [ebp - 0x1898]
push edx
call fcn.0040d9a0
add esp, 0xc
push 0x800
lea eax, [ebp - 0x1898]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042c8a0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x42fb11
push 0
lea edx, [ebp - 0x189c]
push edx
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x1898]
push ecx
mov edx, dword [ebp - 0x1034]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42fadb
mov eax, dword [ebp - 0x189c]
cmp eax, dword [ebp - 4]
je 0x42fae5
jmp 0x42fbd2
push 0x800
push 0
lea ecx, [ebp - 0x1898]
push ecx
call fcn.0040d9a0
add esp, 0xc
mov dword [ebp - 0x189c], 0
mov dword [ebp - 4], 0
jmp 0x42fa8a
mov byte [ebp - 0x819], 1
mov edx, dword [ebp - 0x1078]
mov dword [ebp - 0x1094], edx
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x1028]
push ecx
lea edx, [ebp - 0x1030]
push edx
mov eax, dword [ebp - 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42fba1
lea ecx, [ebp - 0xc]
push ecx
movzx edx, word [ebp - 0x1094]
push edx
mov eax, dword [ebp - 0x1094]
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x42fba1
lea ecx, [ebp - 0x1090]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x42fba1
lea eax, [ebp - 0x1090]
push eax
lea ecx, [ebp - 0x1028]
push ecx
lea edx, [ebp - 0x1090]
push edx
mov eax, dword [ebp - 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0xc], 0
je 0x42fbd2
lea ecx, [ebp - 0x28b0]
call fcn.0040a7f0
lea eax, [ebp - 0x20a0]
lea ecx, [ebp - 0x28b0]
call fcn.00402990
lea ecx, [ebp - 0x28b0]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040a820
cmp dword [ebp - 0x1034], 0
je 0x42fbf1
cmp dword [ebp - 0x1034], 0xffffffff
je 0x42fbf1
mov edx, dword [ebp - 0x1034]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call fcn.0042c380
add esp, 4
movzx ecx, byte [ebp - 0x819]
test ecx, ecx
jne 0x42fc15
lea edx, [ebp - 0x20a0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [ebp - 0x819]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c641
mov esp, ebp
pop ebp
ret 8