Function at 0x2e00fa93
Capabilities:
Clear file content
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov esi, ecx
call fcn.2e007d0a
mov eax, dword [0x2e022f08]
mov ecx, dword [eax]
xor edi, edi
push edi
push dword [esi + 0x1c]
push dword [esi + 0x18]
push eax
call dword [ecx + 0x30]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x2e00fd08
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0x8000080
cmp dword [esi + 0x14], edi
jne 0x2e00fad7
mov dword [ebp - 8], 0x28000080
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push dword [ebp - 8]
lea eax, [esi + 0x28]
push 4
push edi
push edi
push 0x40000000
push eax
call ebx
mov dword [esi + 0x250], eax
cmp eax, 0xffffffff
jne 0x2e00fb7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x2e00fb61
lea eax, [esi + 0x28]
push eax
call fcn.2e011064
movzx ecx, word [eax]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push edi
lea eax, [esi + 0x28]
push eax
call fcn.2e011164
cmp eax, edi
mov cx, word [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov word [edx], cx
jl 0x2e00fd07
push edi
push dword [ebp - 8]
lea eax, [esi + 0x28]
push 4
push edi
push edi
push 0x40000000
push eax
call ebx
mov dword [esi + 0x250], eax
cmp eax, 0xffffffff
jne 0x2e00fb72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x2e00fb6f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x2e00fd07
lea eax, [esi + 0x28]
push eax
push 0x2e00219c
push 3
call fcn.2e013435
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x2e00fc7f
mov eax, dword [esi + 0x240]
mov ecx, dword [esi + 0x244]
cmp dword [esi + 0x14], edi
jne 0x2e00fbc6
mov edx, dword [0x2e022ee4]
xor ebx, ebx
add eax, edx
adc ecx, ebx
sub eax, 1
sbb ecx, edi
sub edx, 1
sbb ebx, edi
not edx
not ebx
and eax, edx
and ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
push edi
push ecx
push eax
push dword [esi + 0x250]
call ebx
test eax, eax
jne 0x2e00fbff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x2e00fbf6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x2e00fd07
push dword [esi + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x2e00fc32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x2e00fc29
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x2e00fd07
mov ecx, dword [esi + 0x23c]
cmp ecx, edi
mov eax, dword [esi + 0x238]
jl 0x2e00fc48
jg 0x2e00fc4c
cmp eax, edi
ja 0x2e00fc4c
xor eax, eax
xor ecx, ecx
push edi
push edi
push ecx
push eax
push dword [esi + 0x250]
call ebx
test eax, eax
jne 0x2e00fc7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x2e00fc76
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x2e00fd07
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0xc], edi
je 0x2e00fcbe
lea eax, [esi + 0x248]
push eax
push eax
push eax
push dword [esi + 0x250]
call ebx
test eax, eax
jne 0x2e00fcbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x2e00fcb9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x2e00fd07
cmp dword [ebp + 0x10], edi
je 0x2e00fd07
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push dword [esi + 0x250]
call ebx
test eax, eax
jne 0x2e00fd07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x2e00fd07
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc