Function at 0x1000fc42
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x38
call fcn.1007f73f
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x100a1682
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x1000fefd
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.10009be9
test eax, eax
je 0x1000fed3
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x2c], ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx], eax
jne 0x1000fcfa
cmp dword [ebx + 4], edx
jne 0x1000fd0c
mov dword [ebp - 0x10], 1
jmp 0x1000fed3
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx], 4
jne 0x1000fed3
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.10009f69
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], ebx
push 0
mov edx, 0
mov eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop
nop
test eax, eax
je 0x1000fed3
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop
nop
test eax, eax
je 0x1000fed3
mov dword [ebp - 0x10], 1
mov ebx, dword [ebp - 0xc]
add ebx, 0x18
mov dword [ebp - 0x2c], ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 4], edx
jl 0x1000fdb0
jg 0x1000fdaf
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx], eax
jbe 0x1000fdb0
inc ecx
mov eax, ecx
test eax, eax
je 0x1000fdd1
mov ebx, dword [ebp - 0xc]
add ebx, 0x18
mov dword [ebp - 0x2c], ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 0xc]
add ebx, 0x18
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
fild qword [ebp + 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild qword [ebp - 0x20]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.10001e7f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x2c], ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.1000a078
xor eax, eax
cmp dword [ebp - 0x24], 0
jl 0x1000fe56
jg 0x1000fe55
cmp dword [ebp - 0x28], 0
jbe 0x1000fe56
inc eax
test eax, eax
je 0x1000fe7e
cmp dword [ebp + 0x18], 0
mov eax, 0
sete al
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x1000fe7e
mov eax, 1
jmp 0x1000fe83
mov eax, 0
test eax, eax
je 0x1000fed3
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1000ff19
push dword [ebp + 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.1001015e
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.1000ff19
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push dword [ebp + 8]
push 0x100a1682
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
jmp 0x1000ff05
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.1007f745
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14