Function at 0x4422e0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov esi, eax
mov ebx, dword [esi + 0x12c]
mov edi, dword [esi + 0xf0]
movsx eax, byte [esi + 0x14c]
dec eax
cmp eax, 7
ja case.default.0x442315
mov eax, dword [eax*4 + 0x4d3154]
jmp eax
push ebx
push dword [esi + 0x80]
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x442572
and byte [esi + 0x164], 0xbf
lea eax, [ebp - 0x17]
push 1
mov byte [ebp - 0x17], 0xd
push eax
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x442554
jmp 0x442521
push ebx
push dword [esi + 0x80]
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x4425c3
and byte [esi + 0x164], 0xbf
cmp byte [esi + 0x14c], 8
je 0x4425b5
xor edx, edx
mov byte [ebp + edx - 0x17], 0xa
lea eax, [ebp - 0x17]
inc edx
push edx
push eax
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x442597
jmp 0x442521
push ebx
push dword [esi + 0x80]
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x4425e8
and byte [esi + 0x164], 0xbf
jmp 0x442521
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 + 0x164], 0xbf
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x442649
push ebx
push dword [esi + 0x80]
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x44262b
and ebx, 0x80000001
jge 0x442425
sub ebx, 1
or ebx, 0xfffffffe
inc ebx
test ebx, ebx
je 0x442521
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 1
push eax
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x44260d
jmp 0x442521
and byte [esi + 0x164], 0xbf
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0x10]
push 4
push edi
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x4426a3
push ebx
push dword [esi + 0x80]
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x442685
push 4
push edi
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x442667
jmp 0x442521
and byte [esi + 0x164], 0xbf
test byte [esi + 0x163], 8
je 0x4424c9
test byte [esi + 0x160], 1
je 0x4424c9
cmp byte [esi + 0x14d], 2
je 0x4426c1
push ebx
push dword [esi + 0x80]
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x44271a
cmp ebx, edi
jge 0x442521
sub edi, ebx
push edi
push 0
push dword [esi + 0x38]
call fcn.004aea20
push edi
push dword [esi + 0x38]
push esi
call fcn.0041cb20
add esp, 0x18
cmp eax, 0xffffffff
je 0x4426fc
jmp 0x442521
push 0x111a
push str.for_wseq.c
push 2
push 8
call fcn.00404e90
add esp, 0x10
test byte [esi + 0x165], 8
je 0x442545
push dword [esi + 0xdc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x442738
and byte [esi + 0x165], 0xf7
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 + 0xe0], 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 + 0x164], 0xbf
mov dword [esi + 0xe0], 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 + 0xe0], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x17], 0xd
mov edx, 1
jmp 0x442387
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
and byte [esi + 0x164], 0xbf
mov dword [esi + 0xe0], 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 + 0x164], 0xbf
mov dword [esi + 0xe0], 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 + 0xe0], 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 + 0xe0], 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 + 0xe0], 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 + 0xe0], 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 + 0xe0], 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 + 0xe0], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x17], 0x20
lea eax, [ebp - 0x17]
dec edi
push 1
push eax
push esi
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4424c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xe0], 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 + 0xe0], 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 + 0xe0], 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 + 0x165], 0xf7
mov dword [esi + 0xe0], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret