Function at 0x1001feae
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.10038d18
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 0x10043e59
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x100201a7
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.1001c9db
test eax, eax
je 0x1002017d
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 0x1001ff66
cmp dword [ebx + 4], edx
jne 0x1001ff78
mov dword [ebp - 0x10], 1
jmp 0x1002017d
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx], 4
jne 0x1002017d
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.1001cd7a
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], esp
push 0
mov edx, 0
mov eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x38]
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
cmp dword [ebp - 0x30], esp
je 0x1001ffec
push 0x150
push 0x4028b03
push 6
call fcn.10038d0c
add esp, 0xc
test eax, eax
je 0x1002017d
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], esp
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10020028
push 0x197
push 0x4028b03
push 6
call fcn.10038d0c
add esp, 0xc
test eax, eax
je 0x1002017d
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 0x1002005a
jg 0x10020059
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx], eax
jbe 0x1002005a
inc ecx
mov eax, ecx
test eax, eax
je 0x1002007b
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.100010b7
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.1001cec7
xor eax, eax
cmp dword [ebp - 0x24], 0
jl 0x10020100
jg 0x100200ff
cmp dword [ebp - 0x28], 0
jbe 0x10020100
inc eax
test eax, eax
je 0x10020128
cmp dword [ebp + 0x18], 0
mov eax, 0
sete al
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x10020128
mov eax, 1
jmp 0x1002012d
mov eax, 0
test eax, eax
je 0x1002017d
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.1001f46c
push dword [ebp + 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.100201c3
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.1001f46c
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 0x10043e59
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
jmp 0x100201af
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.10038d1e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14