Function at 0x3000e471
Capabilities:
Clear file content
Timestomp file

Disassembly:
sub esp, 0x20
push ebp
push esi
push edi
mov esi, ecx
call fcn.30007340
mov eax, dword [0x300151b8]
mov ecx, dword [eax]
xor ebp, ebp
push ebp
push dword [esi + 0x1c]
push dword [esi + 0x18]
push eax
call dword [ecx + 0x30]
mov edi, eax
cmp edi, ebp
jl 0x3000e6d7
xor edi, edi
cmp dword [esi + 0x14], ebp
mov dword [esp + 0xc], 0x8000080
jne 0x3000e4b3
mov dword [esp + 0xc], 0x28000080
push ebx
push ebp
push dword [esp + 0x14]
lea ebx, [esi + 0x28]
push 4
push ebp
push ebp
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x250], eax
jne 0x3000e552
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x3000e53a
push ebx
call fcn.3000f0bd
mov cx, word [eax]
push ebp
push ebx
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], cx
mov word [eax], bp
call fcn.30010cd4
mov ecx, dword [esp + 0x18]
mov edi, eax
cmp edi, ebp
mov ax, word [esp + 0x14]
mov word [ecx], ax
jl 0x3000e6d6
push ebp
push dword [esp + 0x14]
push 4
push ebp
push ebp
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x250], eax
jne 0x3000e54a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jle 0x3000e548
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebp
jl 0x3000e6d6
push ebx
push 0x30002574
push 3
call fcn.30011c87
add esp, 0xc
cmp dword [esp + 0x34], ebp
je 0x3000e64d
cmp dword [esi + 0x14], ebp
mov ecx, dword [esi + 0x244]
jne 0x3000e597
mov edx, dword [0x30015194]
xor ebx, ebx
mov eax, edx
add eax, dword [esi + 0x240]
adc ecx, ebx
sub eax, 1
sbb ecx, ebp
dec edx
not edx
and eax, edx
and ecx, ebx
jmp 0x3000e59d
mov eax, dword [esi + 0x240]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebp
push ebp
push ecx
push eax
push dword [esi + 0x250]
call ebx
test eax, eax
jne 0x3000e5d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
jle 0x3000e5cd
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebp
jl 0x3000e6d6
push dword [esi + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x3000e603
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
jle 0x3000e5fd
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebp
jl 0x3000e6d6
mov eax, dword [esi + 0x23c]
cmp eax, ebp
mov ecx, dword [esi + 0x238]
jl 0x3000e619
jg 0x3000e61d
cmp ecx, ebp
ja 0x3000e61d
xor ecx, ecx
xor eax, eax
push ebp
push ebp
push eax
push ecx
push dword [esi + 0x250]
call ebx
test eax, eax
jne 0x3000e64d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
jle 0x3000e647
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebp
jl 0x3000e6d6
cmp dword [esp + 0x38], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileTime]
je 0x3000e68a
lea eax, [esi + 0x248]
push eax
push eax
push eax
push dword [esi + 0x250]
call ebx
test eax, eax
jne 0x3000e68a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
jle 0x3000e688
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebp
jl 0x3000e6d6
cmp dword [esp + 0x3c], ebp
je 0x3000e6d6
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x18]
push eax
push ebp
push ebp
push dword [esi + 0x250]
call ebx
test eax, eax
jne 0x3000e6d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
jle 0x3000e6d6
and edi, 0xffff
or edi, 0x80070000
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x20
ret 0xc