Function at 0x419700
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov edi, edx
mov edx, dword [edx]
mov ebx, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x2c]
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], edx
push ebx
mov dword [ebp - 0x4c], eax
push eax
call sym.console::windows_term::move_cursor_up::he946b51f27c10962
add esp, 8
movzx eax, byte [ebp - 0x2c]
cmp al, 4
jne 0x41992e
test ebx, ebx
je 0x41993f
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x48], esi
lea edi, [ebp - 0x3c]
lea esi, [ebp - 0x2c]
jmp 0x419766
movzx eax, byte [ebp - 0x44]
lea esi, [ebp - 0x2c]
cmp al, 4
jne 0x419923
dec ebx
je 0x4199ac
cmp byte [ebp - 0x4c], 0
je 0x419810
mov edx, dword [ebp - 0x10]
mov ecx, edi
push 5
push str._re_2K_re_2J_re_He__25he__25lRead_invalid_utf16
call sym.console::term::Term::write_str::h642259fedb2f889f
add esp, 8
movzx eax, byte [ebp - 0x3c]
cmp al, 4
jne 0x4199e4
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x562cb4
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x1c], 0
mov edx, esi
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], ecx
mov ecx, edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::ha05222cc52361d66
mov dword [ebp - 0x20], 1
call dbg.format_inner
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
push dword [ebp - 0x34]
push esi
call sym.console::term::Term::write_str::h642259fedb2f889f
add esp, 8
cmp dword [ebp - 0x38], 0
je 0x419750
push esi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
jmp 0x419750
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp byte [ecx + 0x20], 0
sete al
or eax, 0xfffffff4
push eax
call sub.kernel32.dll_GetStdHandle
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x1a], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1e], 0
push esi
push eax
call sub.kernel32.dll_GetConsoleScreenBufferInfo
test eax, eax
je 0x4198ba
movzx eax, word [ebp - 0x24]
movzx ecx, word [ebp - 0x26]
mov word [ebp - 0x30], 0
mov dword [ebp - 0x60], eax
movzx eax, word [ebp - 0x1e]
mov word [ebp - 0x12], cx
mov word [ebp - 0x2e], cx
sub ax, word [ebp - 0x22]
mov dword [ebp - 0x2c], 0
movsx edx, ax
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x30]
push esi
push eax
push edx
push 0x20
push edi
call sub.kernel32.dll_FillConsoleOutputCharacterA
movzx eax, word [ebp - 0x12]
mov word [ebp - 0x44], 0
mov word [ebp - 0x42], ax
mov eax, dword [ebp - 0x44]
push esi
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push edi
call sub.kernel32.dll_FillConsoleOutputAttribute
movzx eax, word [ebp - 0x12]
mov word [ebp - 0x54], 0
mov word [ebp - 0x52], ax
mov eax, dword [ebp - 0x54]
push eax
push edi
call sub.kernel32.dll_SetConsoleCursorPosition
mov ecx, dword [ebp - 0x10]
xor eax, eax
lea edi, [ebp - 0x3c]
cmp byte [ecx + 0x20], 0
sete al
or eax, 0xfffffff4
push eax
call sub.kernel32.dll_GetStdHandle
xorps xmm0, xmm0
mov dword [ebp - 0x1a], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1e], 0
push esi
push eax
call sub.kernel32.dll_GetConsoleScreenBufferInfo
test eax, eax
je 0x41975f
movsx eax, word [ebp - 0x26]
mov edx, dword [ebp - 0x10]
mov ecx, esi
inc eax
push eax
push 0
call sym.console::windows_term::move_cursor_to::h63cd8bb003adfc16
add esp, 8
movzx eax, byte [ebp - 0x2c]
cmp al, 4
je 0x41975f
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2b]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x43], ecx
mov ecx, dword [ebp - 0x43]
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x48]
jmp 0x419934
mov ecx, dword [ebp - 0x2b]
mov edx, dword [ebp - 0x28]
mov dword [esi + 4], edx
mov dword [esi + 1], ecx
jmp 0x4199cf
cmp byte [ebp - 0x4c], 0
jne 0x4199cd
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp byte [ecx + 0x20], 0
sete al
or eax, 0xfffffff4
push eax
call sub.kernel32.dll_GetStdHandle
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1a], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1e], 0
push ecx
push eax
call sub.kernel32.dll_GetConsoleScreenBufferInfo
test eax, eax
je 0x4199cd
movsx eax, word [ebp - 0x26]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push eax
push 0
call sym.console::windows_term::move_cursor_to::h63cd8bb003adfc16
add esp, 8
movzx eax, byte [ebp - 0x2c]
cmp al, 4
je 0x4199cd
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2b]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3b], ecx
jmp 0x4199d9
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x3c]
mov edx, dword [eax]
push dword [ebp + 8]
push dword [eax + 4]
call sym.console::windows_term::move_cursor_up::he946b51f27c10962
add esp, 8
movzx eax, byte [ebp - 0x3c]
mov esi, dword [ebp - 0x48]
cmp al, 4
jne 0x4199d9
mov al, 4
mov byte [esi], al
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x3b]
mov edx, dword [ebp - 0x38]
jmp 0x419934
mov ecx, dword [ebp - 0x3b]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x48]
jmp 0x419934