Function at 0x4ae490
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov esi, eax
mov ebx, dword [esi + 0x124]
mov edi, dword [esi + 0xe8]
movsx eax, byte [esi + 0x144]
dec eax
cmp eax, 7
ja case.default.0x4ae4c5
mov eax, dword [eax*4 + 0x4fd764]
jmp eax
push ebx
push dword [esi + 0x80]
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae746
and byte [esi + 0x15c], 0xbf
lea eax, [ebp - 0x14]
push 1
mov byte [ebp - 0x14], 0xd
push eax
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae728
jmp 0x4ae6d0
push ebx
push dword [esi + 0x80]
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae797
movsx eax, byte [esi + 0x144]
and byte [esi + 0x15c], 0xbf
cmp eax, 8
je 0x4ae789
xor edx, edx
mov byte [ebp + edx - 0x14], 0xa
lea eax, [ebp - 0x14]
inc edx
push edx
push eax
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae76b
jmp 0x4ae6d0
push ebx
push dword [esi + 0x80]
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae7bc
and byte [esi + 0x15c], 0xbf
jmp 0x4ae6d0
push 4
mov edx, dword [esi + 0x38]
lea eax, [ebx + 2]
mov byte [edx], al
mov ecx, dword [esi + 0x38]
shr eax, 8
mov byte [ecx + 1], al
push dword [esi + 0x38]
and byte [esi + 0x15c], 0xbf
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae81d
push ebx
push dword [esi + 0x80]
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae7ff
test bl, 1
je 0x4ae6d0
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 1
push eax
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae7e1
jmp 0x4ae6d0
and byte [esi + 0x15c], 0xbf
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push 4
push eax
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae877
push ebx
push dword [esi + 0x80]
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae859
lea eax, [ebp - 0x10]
push 4
push eax
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae83b
jmp 0x4ae6d0
movzx eax, byte [esi + 0x15b]
and byte [esi + 0x15c], 0xbf
test al, 8
je 0x4ae678
movzx eax, byte [esi + 0x158]
test al, 1
je 0x4ae678
movsx eax, byte [esi + 0x145]
cmp eax, 2
je 0x4ae895
push ebx
push dword [esi + 0x80]
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ae8ee
cmp ebx, edi
jge 0x4ae6d0
sub edi, ebx
push edi
push 0
push dword [esi + 0x38]
call fcn.004e2770
push edi
push dword [esi + 0x38]
push esi
call fcn.004a21f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x4ae8d0
jmp 0x4ae6d0
push 0x111b
push str.for_wseq.c
push 2
push 8
call fcn.00492dd0
add esp, 0x10
movzx eax, byte [esi + 0x15d]
test al, 8
je 0x4ae719
push dword [esi + 0xd4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4ae6f4
and byte [esi + 0x15d], 0xf7
jmp 0x4ae719
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
and byte [esi + 0x15d], 0xf7
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
and byte [esi + 0x15c], 0xbf
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x14], 0xd
mov edx, 1
jmp 0x4ae53a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
and byte [esi + 0x15c], 0xbf
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
and byte [esi + 0x15c], 0xbf
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
dec edi
push 1
push eax
push esi
call fcn.004a21f0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4ae678
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret