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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cf8b
mov eax, dword fs:[0]
push eax
mov eax, 0x4002c
call fcn.004675f0
mov eax, dword [0x491654]
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 0x417e6e
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.00402639
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x417e67
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x417cf8
and eax, 0xfffffc00
cmp eax, 0x32000
jbe 0x417cf8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x18]
call fcn.00402639
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.00402639
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x417e67
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 0x417d17
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 0x417d31
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.00452372
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.00402639
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 0x417e01
mov byte [ebp + eax - 0x40010], 0
jmp 0x417e0e
cmp byte [ebp - 0x11], 0
je 0x417e0e
mov byte [ebp - 0x40010], 0
lea eax, [ebp - 0x40010]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417e17
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.004532eb
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.00452dc2
mov esp, ebp
pop ebp
ret 8