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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c14b
mov eax, dword fs:[0]
push eax
mov eax, 0x4002c
call fcn.004601c0
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40024], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x40028], edi
mov dword [ebp - 0x4002c], eax
test eax, eax
je 0x4144ee
push edi
mov dword [ebp - 0x40038], edi
mov byte [ebp - 0x40034], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push 4
push 0
push 1
push 0x40000000
lea eax, [edi + 0x18]
mov dword [ebp - 4], 0
call fcn.00401489
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4144e7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x414378
and eax, 0xfffffc00
cmp eax, 0x32000
jbe 0x414378
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x18]
call fcn.00401489
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 1
push 0x40000000
lea eax, [edi + 0x18]
call fcn.00401489
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4144e7
lea ecx, [ebp - 0x40020]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [ebp - 0x40024]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414397
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [ebp - 0x4002c]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4143b1
sub eax, esi
sar eax, 1
lea edi, [eax + edx + 0x400]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045081c
mov ecx, dword [ebp - 0x4002c]
mov esi, eax
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x40028]
add esp, 4
push ecx
add eax, 0x34
call fcn.00401489
mov edx, dword [ebp - 0x40024]
movzx ecx, word [ebp - 0x40014]
push eax
movzx eax, word [ebp - 0x40012]
push edx
movzx edx, word [ebp - 0x40016]
push eax
movzx eax, word [ebp - 0x40018]
push ecx
movzx ecx, word [ebp - 0x4001a]
push edx
movzx edx, word [ebp - 0x4001e]
push eax
movzx eax, word [ebp - 0x40020]
push ecx
push edx
push eax
push str.__d__d__d__d:_d:_d:_d___s_:___s__:__s_r_n
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x34
lea ecx, [ebp - 0x40024]
push ecx
push 0
push 0x40000
lea edx, [ebp - 0x40010]
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x40000
jae 0x414481
mov byte [ebp + eax - 0x40010], 0
jmp 0x41448e
cmp byte [ebp - 0x11], 0
je 0x41448e
mov byte [ebp - 0x40010], 0
lea eax, [ebp - 0x40010]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414497
push 2
push 0
push 0
sub eax, edx
push ebx
mov edi, eax
mov dword [ebp - 0x40030], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x40030]
push eax
push edi
lea ecx, [ebp - 0x40010]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00450827
mov edi, dword [ebp - 0x40028]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045080d
mov esp, ebp
pop ebp
ret 8