Function at 0x4e8f40
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 4]
mov edi, dword [eax + 0x64]
cmp edi, 0xffffffff
je 0x4e9000
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
mov dword [ebp - 0x34], edx
mov dword [esp], esi
mov dword [esp + 4], ecx
mov ecx, ebx
call dword [eax + 0x20]
sub esp, 8
test al, al
mov esi, eax
jne 0x4e8fb5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx]
mov ecx, ebx
xor esi, esi
mov dword [esp], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 4], edx
call dword [eax + 0x20]
sub esp, 8
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x4e8f90
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
mov edx, dword [ebx]
mov edi, dword [ebp - 0x2c]
jl 0x4e8fe0
jle 0x4e9130
mov eax, dword [ebp - 0x38]
mov edi, eax
mov eax, dword [ebp - 0x34]
mov dword [esp], edi
mov ecx, ebx
mov dword [esp + 4], eax
call dword [edx + 0x20]
sub esp, 8
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x60]
cmp ecx, 0xffffffff
je 0x4e9040
test edx, edx
je 0x4e9120
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll__fileno]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e8f66
lea esp, [ebp - 0xc]
xor esi, esi
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8
test edx, edx
jne 0x4e9013
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x4e9058
mov edx, dword [eax + 0x14]
mov edx, dword [edx + 4]
test edx, edx
je 0x4e9030
lea edi, [ebp - 0x24]
add eax, 0x10
mov dword [esp], eax
mov ecx, edi
call fcn.00629a30
lea ecx, [ebp - 0x20]
sub esp, 4
mov dword [esp], edi
call fcn.005922c0
mov eax, dword [ebp - 0x24]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x4e9140
cmp edx, 0xffffffff
je 0x4e90a0
lock sub dword [eax], 1
mov eax, dword [ebp - 0x24]
je 0x4e9140
nop
lea esi, [esi]
lea ecx, [ebp - 0x20]
mov dword [esp], 3
call fcn.00590b60
sub esp, 4
test al, al
mov esi, eax
je 0x4e9112
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.005921c0
sub esp, 8
test al, al
mov esi, eax
jne 0x4e9112
lea eax, [ebp - 0x20]
mov ecx, edi
mov dword [esp], eax
call fcn.00676970
sub esp, 4
mov ecx, ebx
mov dword [esp + 4], edi
mov dword [esp], 0xc
call fcn.00553fe0
mov eax, dword [ebp - 0x24]
sub esp, 8
mov edx, dword [eax]
test edx, edx
je 0x4e915d
cmp edx, 0xffffffff
je 0x4e9112
lock sub dword [eax], 1
mov eax, dword [ebp - 0x24]
je 0x4e915d
lea ecx, [ebp - 0x20]
call fcn.00592470
jmp 0x4e8fa9
mov dword [esp], ecx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov edi, eax
jmp 0x4e9027
mov ecx, dword [ebp - 0x38]
cmp edi, ecx
jbe 0x4e8fe0
jmp 0x4e8fd8
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x4e90a0
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x4e9112