Function at 0x4e7220
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
lea ebp, [esp - 0xdc]
sub esp, 0xdc
push 0xffffffffffffffff
push 0x848a54
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0xa5e224]
xor eax, ebp
mov dword [ebp + 0xd8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push 0xfffffffffffffff4
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e79f8
test esi, esi
je 0x4e79f8
push 0xc
xor eax, eax
mov dword [ebp + 0xb8], ebx
push 0x8ac94c
lea ecx, [ebp + 0xb8]
mov dword [ebp + 0xc8], ebx
mov dword [ebp + 0xcc], 7
mov word [ebp + 0xb8], ax
call fcn.00437780
mov dword [ebp + 0xd0], ebx
mov dword [ebp + 0xd4], ebx
push 2
lea ecx, [ebp + 0xb8]
mov dword [ebp - 4], ebx
push ecx
lea ecx, [edi + 4]
call fcn.0078d6b0
push dword [ebp + 0xd0]
test al, al
mov dword [ebp - 4], 0xffffffff
sete byte [ebp - 0xd]
call fcn.00805aaa
mov edx, dword [ebp + 0xcc]
add esp, 4
cmp edx, 8
jb 0x4e7327
mov ecx, dword [ebp + 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e731d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e7a1d
push edx
push ecx
call fcn.00800125
add esp, 8
xor eax, eax
mov dword [ebp + 0xc8], 0
mov dword [ebp + 0xcc], 7
mov word [ebp + 0xb8], ax
cmp byte [ebp - 0xd], al
jne 0x4e79f8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
je 0x4e79f8
push str.GetConsoleCommandHistory
lea ecx, [ebp + 0xb8]
mov dword [edi + 8], esi
call fcn.00436310
lea eax, [ebp + 0xb8]
mov dword [ebp - 4], 1
push eax
lea ecx, [edi + 4]
call fcn.004e9020
lea ecx, [ebp + 0xb8]
mov dword [edi + 0x20], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00436e00
cmp dword [edi + 0x20], 0
je 0x4e79f8
push str.GetConsoleCommandHistoryLength
lea ecx, [ebp + 0xb8]
call fcn.00436310
lea eax, [ebp + 0xb8]
mov dword [ebp - 4], 2
push eax
lea ecx, [edi + 4]
call fcn.004e9020
lea ecx, [ebp + 0xb8]
mov dword [edi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00436e00
cmp dword [edi + 0x24], 0
je 0x4e79f8
lea esi, [edi + 0xc]
mov ecx, edi
push esi
call fcn.004e7de0
mov dword [edi + 0x10], eax
mov eax, dword [esi]
cmp dword [eax], 0
je 0x4e79f8
lea eax, [ebp + 0xa0]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x4e7588
xor al, al
nop dword [eax]
test al, al
jne 0x4e747f
lea eax, [ebp + 0xb8]
push 0x8a7570
push eax
call fcn.007373c0
add esp, 8
mov esi, eax
or ebx, 1
mov dword [ebp - 4], 3
cmp dword [0xea5818], 0
mov dword [ebp - 0x14], ebx
je 0x4e7464
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea5818]
je 0x4e7464
call fcn.007423b0
jmp 0x4e7469
mov al, byte [0xa5d794]
test al, al
je 0x4e747f
push esi
call fcn.00741e40
add esp, 4
mov byte [ebp - 0xd], 1
cmp eax, 6
jae 0x4e7483
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4e749d
lea ecx, [ebp + 0xb8]
and ebx, 0xfffffffe
call fcn.00436e00
cmp byte [ebp - 0xd], 0
je 0x4e79f8
call fcn.00737c40
mov dword [ebp + 0xc4], eax
mov dword [ebp - 4], 4
call fcn.00737c40
mov dword [ebp + 0xc8], eax
push 0xffffffffffffffff
lea eax, [ebp + 0xcc]
mov byte [ebp - 4], 5
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.004d2bd0
mov dword [ebp + 0xd0], 0
mov dword [ebp + 0xd4], 0
sub esp, 0x14
mov dword [ebp - 4], 6
mov esi, esp
mov dword [ebp - 0x18], esp
call sub.KERNEL32.dll_GetLastError
push eax
push esi
call fcn.007434e0
add esp, 8
push 0x8a7570
push str._anonymous_namespace::wxConsoleStderr::DoInit
push 0x1c8
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
push 6
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 7
call fcn.004cb4d0
mov esi, eax
mov byte [ebp - 4], 8
call sub.KERNEL32.dll_GetLastError
push eax
push 0x8ac9d4
push 0x1c8
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
lea eax, [ebp + 0xc4]
mov byte [ebp - 4], 9
push eax
mov ecx, esi
call fcn.004d0600
lea ecx, [ebp + 0x80]
call fcn.00436e00
lea ecx, [ebp + 0x58]
call fcn.004cb970
lea ecx, [ebp + 0xc4]
mov dword [ebp - 4], 0xffffffff
call fcn.00476650
mov al, 1
jmp 0x4e7420
xor eax, eax
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 0xa6]
inc eax
mov word [ebp - 0x1e], ax
nop dword [eax]
mov eax, dword [ebp - 0x1e]
dec eax
movzx ecx, ax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x20]
push eax
push esi
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
je 0x4e788a
push 4
lea eax, [ebp - 0x24]
push eax
push 0x8aca44
call fcn.008162f0
add esp, 0xc
test eax, eax
jne 0x4e75a0
mov eax, dword [ebp - 0x18]
movsx ecx, word [ebp + 0xa6]
movsx edx, word [ebp + 0xb2]
cwde
sub ecx, eax
movsx eax, word [ebp + 0xa4]
imul edx, ecx
mov dword [edi + 0x1c], ecx
add edx, eax
mov dword [ebp - 0x14], edx
mov dword [edi + 0x18], edx
test edx, edx
jle 0x4e7883
mov eax, dword [edi + 0x14]
cmp byte [eax + 0xa], 0
jne 0x4e7659
cmp dword [0xa5d6f8], 0
je 0x4e7659
push str.cannot_extend_non_owned_buffer
push str.this__m_data__m_owned
push str.wxCharTypeBuffer_char_::extend
push 0x140
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.cleanincludewx_buffer.h
call fcn.0073ce40
add esp, 0x14
cmp byte [0xea569c], 0
je 0x4e7659
mov byte [0xea569c], 0
int3
mov eax, dword [edi + 0x14]
cmp word [eax + 8], 1
je 0x4e769e
cmp dword [0xa5d6f8], 0
je 0x4e769e
push str.cant_extend_shared_buffer
push str.this__m_data__m_ref__1
push str.wxCharTypeBuffer_char_::extend
push 0x141
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.cleanincludewx_buffer.h
call fcn.0073ce40
add esp, 0x14
cmp byte [0xea569c], 0
je 0x4e769e
mov byte [0xea569c], 0
int3
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x14]
inc eax
push eax
push ecx
call fcn.00805bed
mov ecx, eax
add esp, 8
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4e7713
mov eax, dword [ebp - 0x14]
mov byte [ecx + eax], 0
call fcn.00737c40
mov edx, dword [edi + 0x14]
cmp edx, eax
jne 0x4e7701
push 0xc
call fcn.008000f5
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4e76fa
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, 1
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov byte [eax + 0xa], cl
mov dword [edi + 0x14], eax
jmp 0x4e7713
xor eax, eax
mov dword [edi + 0x14], eax
jmp 0x4e7713
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [edi + 0x14]
mov byte [eax + 0xa], 1
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x28]
push ecx
push esi
push dword [edi + 0x18]
push dword [eax]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
jne 0x4e7883
xor al, al
test al, al
jne 0x4e7792
lea eax, [ebp + 0xb8]
push 0x8a7570
push eax
call fcn.007373c0
add esp, 8
mov esi, eax
or ebx, 4
mov dword [ebp - 4], 0x11
cmp dword [0xea5818], 0
mov dword [ebp - 0x14], ebx
je 0x4e7777
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea5818]
je 0x4e7777
call fcn.007423b0
jmp 0x4e777c
mov al, byte [0xa5d794]
test al, al
je 0x4e7792
push esi
call fcn.00741e40
add esp, 4
mov byte [ebp - 0xd], 1
cmp eax, 6
jae 0x4e7796
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4e77b0
lea ecx, [ebp + 0xb8]
and ebx, 0xfffffffb
call fcn.00436e00
cmp byte [ebp - 0xd], 0
je 0x4e79f8
call fcn.00737c40
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0x12
call fcn.00737c40
mov dword [ebp - 0x38], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x13
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.004d2bd0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
sub esp, 0x14
mov dword [ebp - 4], 0x14
mov esi, esp
mov dword [ebp - 0x20], esp
call sub.KERNEL32.dll_GetLastError
push eax
push esi
call fcn.007434e0
add esp, 8
push 0x8a7570
push str._anonymous_namespace::wxConsoleStderr::DoInit
push 0x1e8
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
push 6
lea ecx, [ebp]
mov byte [ebp - 4], 0x15
call fcn.004cb4d0
mov esi, eax
mov byte [ebp - 4], 0x16
call sub.KERNEL32.dll_GetLastError
push eax
push 0x8aca0c
push 0x1e8
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x17
push eax
mov ecx, esi
call fcn.004d0600
lea ecx, [ebp + 0x30]
call fcn.00436e00
lea ecx, [ebp + 8]
call fcn.004cb970
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00476650
mov al, 1
jmp 0x4e7733
mov al, 1
jmp 0x4e79fa
xor al, al
nop dword [eax]
test al, al
jne 0x4e78ef
lea eax, [ebp + 0xb8]
push 0x8a7570
push eax
call fcn.007373c0
add esp, 8
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 0xa
cmp dword [0xea5818], 0
mov dword [ebp - 0x14], ebx
je 0x4e78d4
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea5818]
je 0x4e78d4
call fcn.007423b0
jmp 0x4e78d9
mov al, byte [0xa5d794]
test al, al
je 0x4e78ef
push esi
call fcn.00741e40
add esp, 4
mov byte [ebp - 0xd], 1
cmp eax, 6
jae 0x4e78f3
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4e790d
lea ecx, [ebp + 0xb8]
and ebx, 0xfffffffd
call fcn.00436e00
cmp byte [ebp - 0xd], 0
je 0x4e79f8
call fcn.00737c40
mov dword [ebp + 0xc4], eax
mov dword [ebp - 4], 0xb
call fcn.00737c40
mov dword [ebp + 0xc8], eax
push 0xffffffffffffffff
lea eax, [ebp + 0xcc]
mov byte [ebp - 4], 0xc
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.004d2bd0
mov dword [ebp + 0xd0], 0
mov dword [ebp + 0xd4], 0
sub esp, 0x14
mov dword [ebp - 4], 0xd
mov esi, esp
mov dword [ebp - 0x20], esp
call sub.KERNEL32.dll_GetLastError
push eax
push esi
call fcn.007434e0
add esp, 8
push 0x8a7570
push str._anonymous_namespace::wxConsoleStderr::DoInit
push 0x1d9
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
push 6
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0xe
call fcn.004cb4d0
mov esi, eax
mov byte [ebp - 4], 0xf
call sub.KERNEL32.dll_GetLastError
push eax
push 0x8aca0c
push 0x1d9
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
lea eax, [ebp + 0xc4]
mov byte [ebp - 4], 0x10
push eax
mov ecx, esi
call fcn.004d0600
lea ecx, [ebp + 0x80]
call fcn.00436e00
lea ecx, [ebp + 0x58]
call fcn.004cb970
lea ecx, [ebp + 0xc4]
mov dword [ebp - 4], 0xffffffff
call fcn.00476650
mov al, 1
jmp 0x4e7890
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd8]
xor ecx, ebp
call fcn.00800392
lea esp, [ebp + 0xdc]
pop ebp
ret
call fcn.00805a59
int3