Function at 0x4ff25c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4ff265
mov eax, dword [ebp - 4]
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 5], cl
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ff4f7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x34], 0
je 0x4ff2ae
push 0x40
mov ecx, dword [ebx + 0x34]
mov dl, 1
mov eax, dword [0x48fe3c]
call fcn.004b3f0c
mov dword [ebp - 0x20], eax
jmp 0x4ff2b4
mov eax, dword [ebx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
add eax, dword [ebp + 0x1c]
adc edx, dword [ebp + 0x20]
push edx
push eax
mov eax, dword [ebp - 0x20]
call fcn.004b2098
mov eax, esi
mov edx, dword [0x48fe3c]
call fcn.00408c94
test al, al
je 0x4ff310
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, esi
mov edx, dword [0x48fe3c]
call fcn.00408cb8
mov edi, eax
mov eax, edi
call fcn.004b2098
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_SetEndOfFile
call fcn.0042b66c
push 0
push 0
mov eax, esi
call fcn.004b2098
movzx eax, byte [ebp + 8]
dec al
je 0x4ff325
sub al, 2
je 0x4ff349
sub al, 2
je 0x4ff39a
jmp 0x4ff3e5
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov ecx, dword [ebx + 0x28]
mov edx, esi
mov eax, dword [ebp - 0x20]
call fcn.004f3bdc
jmp 0x4ff4c8
mov ecx, esi
mov dl, 1
mov eax, dword [0x4f306c]
call fcn.004f3cb4
mov edi, eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x20], 0x4fef88
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov ecx, dword [ebx + 0x28]
mov edx, edi
mov eax, dword [ebp - 0x20]
call fcn.004ff980
mov eax, edi
call fcn.004089b8
jmp 0x4ff4c8
mov ecx, esi
mov dl, 1
mov eax, dword [0x4f306c]
call fcn.004f3cb4
mov edi, eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x20], 0x4fef88
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov ecx, dword [ebx + 0x28]
mov edx, edi
mov eax, dword [ebp - 0x20]
call fcn.004ffb40
mov eax, edi
call fcn.004089b8
jmp 0x4ff4c8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x10000
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
jne 0x4ff411
cmp eax, dword [ebp - 0x10]
jae 0x4ff41f
jmp 0x4ff413
jge 0x4ff41f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ff42f
cmp dword [ebp - 0x10], 0
je 0x4ff4c8
lea edx, [ebp - 0x10020]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebx + 0x28], 0
je 0x4ff45d
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov ecx, dword [ebx + 0x28]
lea eax, [ebp - 0x10020]
mov edx, dword [ebp - 0x10]
call fcn.004f2d98
lea edx, [ebp - 0x10020]
mov ecx, dword [ebp - 0x10]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
cmp dword [ebx + 0x38], 0
setne al
and al, byte [ebp - 5]
je 0x4ff4b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, 0x64
xor edx, edx
call fcn.0040c71c
call fcn.0040c740
mov edx, 0x64
sub edx, eax
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xc]
call fcn.0040ac70
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub dword [ebp - 0x18], eax
sbb dword [ebp - 0x14], edx
jmp 0x4ff3f1
push 0
push 0
mov eax, esi
call fcn.004b2098
cmp dword [ebx + 0x34], 0
je 0x4ff4e1
mov eax, dword [ebp - 0x20]
call fcn.004089b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff4fe
lea eax, [ebp - 4]
call fcn.0040a848
ret