Function at 0x4ee53c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4ee545
mov eax, dword [ebp - 4]
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x15], cl
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ee83f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x34], 0
je 0x4ee59b
push 0x20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
mov dl, 1
mov eax, dword [0x495464]
call fcn.004bb918
mov dword [ebp - 0x2c], eax
jmp 0x4ee5a4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
add eax, dword [ebp + 0x1c]
adc edx, dword [ebp + 0x20]
push edx
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004b9830
mov eax, dword [ebp - 0x14]
mov edx, dword [0x495464]
call fcn.00409294
test al, al
je 0x4ee606
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [0x495464]
call fcn.004092b8
mov ebx, eax
mov eax, ebx
call fcn.004b9830
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SetEndOfFile
call fcn.00434fc8
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.004b9830
movzx eax, byte [ebp + 8]
dec al
je 0x4ee699
dec al
jne 0x4ee718
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4edd64]
call fcn.004ef024
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ee692
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004eb338
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], 0x4ee264
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.004eec30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee80a
lea eax, [ebp - 8]
call fcn.0040fb6c
pop eax
jmp eax
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4edd64]
call fcn.004ef024
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ee711
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004eb338
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], 0x4ee264
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.004eed38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee80a
lea eax, [ebp - 0xc]
call fcn.0040fb6c
pop eax
jmp eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x10000
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x1c]
jne 0x4ee744
cmp eax, dword [ebp - 0x20]
jae 0x4ee752
jmp 0x4ee746
jge 0x4ee752
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4ee762
cmp dword [ebp - 0x20], 0
je 0x4ee80a
lea edx, [ebp - 0x1002c]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0x18]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0
je 0x4ee79a
mov eax, dword [ebp - 0x10]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x28]
lea eax, [ebp - 0x1002c]
mov edx, ebx
call fcn.004ec9fc
lea edx, [ebp - 0x1002c]
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
setne al
and al, byte [ebp - 0x15]
je 0x4ee7f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, 0x64
xor edx, edx
call fcn.0040d5dc
call fcn.0040d600
mov esi, 0x64
sub esi, eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
call fcn.0040b1e4
mov ebx, dword [ebp - 0x10]
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
sub dword [ebp - 0x28], eax
sbb dword [ebp - 0x24], edx
jmp 0x4ee724
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.004b9830
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x34], 0
je 0x4ee827
mov eax, dword [ebp - 0x2c]
call fcn.00408fac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee846
lea eax, [ebp - 4]
call fcn.0040adac
pop eax
jmp eax