Function at 0x44ae78
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
movsx eax, byte [esi + 0x154]
dec eax
mov ebx, dword [esi + 0x134]
cmp eax, 7
mov edi, dword [esi + 0xf8]
ja case.default.0x44ae35
mov eax, dword [eax*4 + 0x4e00ec]
jmp eax
push ebx
push dword [esi + 0x80]
push esi
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b074
push 1
and byte [esi + 0x16c], 0xbf
lea eax, [ebp - 0x17]
push eax
push esi
mov byte [ebp - 0x17], 0xd
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b0c4
jmp 0x44b041
push ebx
push dword [esi + 0x80]
push esi
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b074
and byte [esi + 0x16c], 0xbf
cmp byte [esi + 0x154], 8
je 0x44b099
xor edx, edx
lea eax, [ebp - 0x17]
mov byte [ebp + edx - 0x17], 0xa
inc edx
push edx
push eax
push esi
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b0c4
jmp 0x44b041
push ebx
push dword [esi + 0x80]
push esi
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b074
and byte [esi + 0x16c], 0xbf
jmp 0x44b041
mov edx, dword [esi + 0x38]
lea eax, [ebx + 2]
push 4
mov byte [edx], al
mov ecx, dword [esi + 0x38]
shr eax, 8
mov byte [ecx + 1], al
push dword [esi + 0x38]
push esi
and byte [esi + 0x16c], 0xbf
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b0c4
push ebx
push dword [esi + 0x80]
push esi
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b0c4
and ebx, 0x80000001
jge 0x44af45
sub ebx, 1
or ebx, 0xfffffffe
inc ebx
test ebx, ebx
je 0x44b041
push 1
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b0c4
jmp 0x44b041
push 4
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0x10]
push edi
push esi
and byte [esi + 0x16c], 0xbf
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b0c4
push ebx
push dword [esi + 0x80]
push esi
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b0c4
push 4
push edi
push esi
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b0c4
jmp 0x44b041
and byte [esi + 0x16c], 0xbf
test byte [esi + 0x16b], 8
je 0x44afe9
test byte [esi + 0x168], 1
je 0x44afe9
cmp byte [esi + 0x155], 2
je 0x44b0a7
push ebx
push dword [esi + 0x80]
push esi
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b0c4
cmp ebx, edi
jge 0x44b041
sub edi, ebx
push edi
push 0
push dword [esi + 0x38]
call fcn.004baea0
push edi
push dword [esi + 0x38]
push esi
call fcn.004420f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x44b0c4
jmp 0x44b041
push 0x111c
push str.for_wseq.c
push 2
push 8
call fcn.0041ff60
add esp, 0x10
test byte [esi + 0x16d], 8
je 0x44b065
push dword [esi + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x44b0e2
and byte [esi + 0x16d], 0xf7
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xe8], eax
mov eax, 0x26
and byte [esi + 0x16c], 0xbf
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x17], 0xd
mov edx, 1
jmp 0x44aea7
push 1
mov byte [ebp - 0x17], 0x20
lea eax, [ebp - 0x17]
push eax
push esi
dec edi
call fcn.004420f0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x44afe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xe8], eax
mov eax, 0x26
and byte [esi + 0x16d], 0xf7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret