Function at 0x40d28b
Capabilities:
Clear file content
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42f058]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push dword [esi + 0x1c]
mov dword [0x43030c], eax
mov eax, dword [0x430308]
push dword [esi + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov ebx, eax
test ebx, ebx
js 0x40d4f8
xor edx, edx
lea edi, [esi + 0x28]
cmp dword [esi + 0x14], edx
mov ecx, 0x8000080
push edx
mov eax, 0x28000080
mov dword [ebp - 0x28], edi
cmovne eax, ecx
mov ebx, edx
push eax
push 4
push edx
push edx
push 0x40000000
push edi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x250], eax
cmp eax, 0xffffffff
jne 0x40d37b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40d365
mov ecx, edi
call fcn.0040e12f
mov ecx, dword [ebp - 0x28]
mov edi, eax
xor eax, eax
xor edx, edx
movzx esi, word [edi]
mov word [edi], ax
call fcn.0040e075
mov ebx, eax
mov word [edi], si
test ebx, ebx
js 0x40d4f8
mov edi, dword [ebp - 0x28]
xor eax, eax
push eax
push dword [ebp - 0x2c]
push 4
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x250], eax
cmp eax, 0xffffffff
jne 0x40d373
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40d4f8
push edi
push str.opened_cache_file:__S
push 3
call fcn.00410afb
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40d47f
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 0x240]
jne 0x40d3c9
mov ecx, dword [0x430314]
mov edx, ecx
add edx, eax
push 0
pop edi
adc edi, dword [esi + 0x244]
sub edx, 1
push 0
sbb edi, 0
neg ecx
pop eax
adc eax, eax
and edx, ecx
neg eax
and edi, eax
jmp 0x40d3d1
mov edi, dword [esi + 0x244]
mov edx, eax
push 0
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edx
push dword [esi + 0x250]
call edi
test eax, eax
jne 0x40d405
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40d4f8
push dword [esi + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40d431
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40d4f8
mov ecx, dword [esi + 0x23c]
mov eax, dword [esi + 0x238]
test ecx, ecx
jl 0x40d447
jg 0x40d455
test eax, eax
jne 0x40d455
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push 0
push 0
push ecx
push eax
push dword [esi + 0x250]
call edi
test eax, eax
jne 0x40d47f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40d4f8
cmp dword [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileTime]
je 0x40d4b8
lea eax, [esi + 0x248]
push eax
push eax
push eax
push dword [esi + 0x250]
call edi
test eax, eax
jne 0x40d4b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40d4f8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push dword [esi + 0x250]
call edi
test eax, eax
jne 0x40d4f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004116a3
mov esp, ebp
pop ebp
ret 0xc