Function at 0x4425a0
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 0x44283e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 1
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00417c9c
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 0x442603
cmp dword [ebp - 0x20], 0
ja 0x442659
jmp 0x442605
jg 0x442659
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 0x44262d
cmp dword [eax + 0x20], 0
jae 0x442640
jmp 0x44262f
jge 0x442640
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 0x44266a
cmp dword [ebp - 0x20], 0x8000
jbe 0x44267a
jmp 0x44266c
jle 0x44267a
mov dword [ebp - 0x20], 0x8000
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
call fcn.00406f7c
cmp dword [ebp - 0x1c], 0
jne 0x442694
cmp dword [ebp - 0x20], 0
jbe 0x44278d
jmp 0x44269a
jle 0x44278d
mov eax, dword [ebp - 0x20]
mov edx, eax
lea eax, [ebp - 0x24]
xor ecx, ecx
call fcn.004078cc
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00417ca8
mov eax, dword [ebp - 0x24]
call fcn.0040741c
push eax
lea eax, [ebp - 0x24]
call fcn.004074e0
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00417c44
mov eax, dword [ebp - 0x24]
call fcn.0040741c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x44270e
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
cmp byte [eax + edx - 1], 0xa
jne 0x442705
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.004078cc
jmp 0x44270e
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x4426e9
cmp byte [ebp - 0x29], 0
je 0x442751
mov dword [ebp - 0x28], 1
jmp 0x442744
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
cmp byte [eax + edx - 1], 0xa
jne 0x442741
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x28]
inc edx
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0x24]
call fcn.00407820
jmp 0x442751
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.0040741c
cmp eax, dword [ebp - 0x28]
jge 0x44271d
cmp dword [ebp - 0xc], 0
je 0x44278d
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040741c
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.00407820
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
call fcn.00407790
je 0x44278d
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00407644
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00417c9c
mov eax, dword [ebp - 0x24]
call fcn.0040741c
test eax, eax
jle 0x4427c1
mov eax, dword [ebp - 0x24]
call fcn.0040741c
push eax
lea eax, [ebp - 0x24]
call fcn.004074e0
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00417c70
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetEndOfFile
test eax, eax
je 0x4427eb
mov ecx, 1
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00417c9c
mov ebx, eax
mov eax, dword [ebp - 0x24]
call fcn.0040741c
cmp ebx, eax
jle 0x4427ef
xor eax, eax
jmp 0x4427f1
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.00417cf8
cmp byte [ebp - 0xd], 0
jne 0x44281e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004344b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442845
lea eax, [ebp - 0x30]
call fcn.00406f7c
lea eax, [ebp - 0x24]
call fcn.00406f7c
pop eax
jmp eax