Function at 0x40724d
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3a8]
push edi
xor edi, edi
cmp dword [eax + 0x14], edi
je 0x40744f
push 0xffffffffffffffff
push edi
push eax
mov ecx, 0x46812c
call fcn.004018b9
cmp dword [0x468144], 0x10
mov eax, dword [0x468130]
jae 0x40729b
mov eax, 0x468130
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4072ec
cmp dword [0x468144], 0x10
mov eax, dword [0x468130]
jae 0x4072cf
mov eax, 0x468130
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40744d
lea eax, [ebp - 0x80]
push eax
push ebx
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3e800
jbe 0x407352
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x468144], 0x10
mov eax, dword [0x468130]
jae 0x40731b
mov eax, 0x468130
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x468144], 0x10
mov eax, dword [0x468130]
jae 0x407335
mov eax, 0x468130
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40744d
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x7a]
push eax
lea eax, [ebp - 0x64]
push str.____________________________________________________________________________r_n
push eax
mov dword [ebp - 0x6c], edi
call fcn.00435a0d
add esp, 0x18
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x1608
push 0x6081
push 0x816
push eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406ebf
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x14
push edi
lea eax, [ebp - 0x6c]
push eax
push 4
lea eax, [ebp - 0x68]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push eax
push ebx
call esi
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x7a]
push eax
lea eax, [ebp - 0x64]
push str.___Begin_writing_log...___.2d__.2d__.2d:_.2d__r_n
push eax
call fcn.00435a0d
add esp, 0x18
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x1608
push 0x6081
push 0x816
push eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406ebf
add esp, 0x14
push edi
lea eax, [ebp - 0x6c]
push eax
push 4
lea eax, [ebp - 0x68]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push eax
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
pop edi
call fcn.00432980
add ebp, 0x3a0
leave
ret