Function at 0x440ba0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x440e3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 1
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00417960
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x20]
sbb edx, dword [ecx + 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x29], 0
cmp dword [ebp - 0x1c], 0
jne 0x440c03
cmp dword [ebp - 0x20], 0
ja 0x440c59
jmp 0x440c05
jg 0x440c59
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, 0x8000
sbb edx, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x440c2d
cmp dword [eax + 0x20], 0
jae 0x440c40
jmp 0x440c2f
jge 0x440c40
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x20]
sbb edx, dword [ecx + 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x29], 1
cmp dword [ebp - 0x1c], 0
jne 0x440c6a
cmp dword [ebp - 0x20], 0x8000
jbe 0x440c7a
jmp 0x440c6c
jle 0x440c7a
mov dword [ebp - 0x20], 0x8000
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
call fcn.00406e68
cmp dword [ebp - 0x1c], 0
jne 0x440c94
cmp dword [ebp - 0x20], 0
jbe 0x440d8d
jmp 0x440c9a
jle 0x440d8d
mov eax, dword [ebp - 0x20]
mov edx, eax
lea eax, [ebp - 0x24]
xor ecx, ecx
call fcn.004077b8
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0041796c
mov eax, dword [ebp - 0x24]
call fcn.00407308
push eax
lea eax, [ebp - 0x24]
call fcn.004073cc
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00417908
mov eax, dword [ebp - 0x24]
call fcn.00407308
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x440d0e
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
cmp byte [eax + edx - 1], 0xa
jne 0x440d05
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.004077b8
jmp 0x440d0e
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x440ce9
cmp byte [ebp - 0x29], 0
je 0x440d51
mov dword [ebp - 0x28], 1
jmp 0x440d44
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
cmp byte [eax + edx - 1], 0xa
jne 0x440d41
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x28]
inc edx
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0x24]
call fcn.0040770c
jmp 0x440d51
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.00407308
cmp eax, dword [ebp - 0x28]
jge 0x440d1d
cmp dword [ebp - 0xc], 0
je 0x440d8d
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407308
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040770c
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0040767c
je 0x440d8d
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00407530
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00417960
mov eax, dword [ebp - 0x24]
call fcn.00407308
test eax, eax
jle 0x440dc1
mov eax, dword [ebp - 0x24]
call fcn.00407308
push eax
lea eax, [ebp - 0x24]
call fcn.004073cc
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00417934
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
je 0x440deb
mov ecx, 1
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00417960
mov ebx, eax
mov eax, dword [ebp - 0x24]
call fcn.00407308
cmp ebx, eax
jle 0x440def
xor eax, eax
jmp 0x440df1
mov al, 1
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0xffffffff
mov dword [eax + 0x24], 0xffffffff
mov eax, dword [ebp - 8]
call fcn.004179bc
cmp byte [ebp - 0xd], 0
jne 0x440e1e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00432be0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440e45
lea eax, [ebp - 0x30]
call fcn.00406e68
lea eax, [ebp - 0x24]
call fcn.00406e68
pop eax
jmp eax