Function at 0x300101b0
Capabilities:
Clear file content
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov esi, ecx
call fcn.30008955
mov eax, dword [0x30021388]
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 0x30010425
cmp dword [esi + 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0x8000080
jne 0x300101f4
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
cmp eax, 0xffffffff
mov dword [esi + 0x250], eax
jne 0x30010296
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x3001027c
lea eax, [esi + 0x28]
push eax
call fcn.300119f6
movzx ecx, word [eax]
mov dword [ebp - 0x10], eax
mov word [eax], di
push edi
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 0xc], ecx
call fcn.30011aee
cmp eax, edi
mov cx, word [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov word [edx], cx
jl 0x30010424
push edi
push dword [ebp - 8]
lea eax, [esi + 0x28]
push 4
push edi
push edi
push 0x40000000
push eax
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x250], eax
jne 0x3001028d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x3001028a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x30010424
lea eax, [esi + 0x28]
push eax
push 0x300022d0
push 3
call fcn.30013b9d
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x3001039c
cmp dword [esi + 0x14], edi
mov ecx, dword [esi + 0x244]
jne 0x300102dd
mov edx, dword [0x30021364]
xor ebx, ebx
mov eax, edx
add eax, dword [esi + 0x240]
adc ecx, ebx
sub eax, 1
sbb ecx, edi
dec edx
not edx
and eax, edx
and ecx, ebx
jmp 0x300102e3
mov eax, dword [esi + 0x240]
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 0x3001031c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x30010313
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x30010424
push dword [esi + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x3001034f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x30010346
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x30010424
mov ecx, dword [esi + 0x23c]
cmp ecx, edi
mov eax, dword [esi + 0x238]
jl 0x30010365
jg 0x30010369
cmp eax, edi
ja 0x30010369
xor eax, eax
xor ecx, ecx
push edi
push edi
push ecx
push eax
push dword [esi + 0x250]
call ebx
test eax, eax
jne 0x3001039c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x30010393
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x30010424
cmp dword [ebp + 0xc], edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileTime]
je 0x300103db
lea eax, [esi + 0x248]
push eax
push eax
push eax
push dword [esi + 0x250]
call ebx
test eax, eax
jne 0x300103db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x300103d6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x30010424
cmp dword [ebp + 0x10], edi
je 0x30010424
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 0x30010424
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x30010424
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