Function at 0x4e70c0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
lea ebp, [esp - 0xdc]
sub esp, 0xdc
push 0xffffffffffffffff
push 0x848834
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0xa5d1d4]
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 0x4e7898
test esi, esi
je 0x4e7898
push 0xc
xor eax, eax
mov dword [ebp + 0xb8], ebx
push 0x8ab8cc
lea ecx, [ebp + 0xb8]
mov dword [ebp + 0xc8], ebx
mov dword [ebp + 0xcc], 7
mov word [ebp + 0xb8], ax
call fcn.00437690
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.0078d530
push dword [ebp + 0xd0]
test al, al
mov dword [ebp - 4], 0xffffffff
sete byte [ebp - 0xd]
call fcn.008058ea
mov edx, dword [ebp + 0xcc]
add esp, 4
cmp edx, 8
jb 0x4e71c7
mov ecx, dword [ebp + 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e71bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e78bd
push edx
push ecx
call fcn.007fff65
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 0x4e7898
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
je 0x4e7898
push str.GetConsoleCommandHistory
lea ecx, [ebp + 0xb8]
mov dword [edi + 8], esi
call fcn.00436220
lea eax, [ebp + 0xb8]
mov dword [ebp - 4], 1
push eax
lea ecx, [edi + 4]
call fcn.004e8ec0
lea ecx, [ebp + 0xb8]
mov dword [edi + 0x20], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00436d10
cmp dword [edi + 0x20], 0
je 0x4e7898
push str.GetConsoleCommandHistoryLength
lea ecx, [ebp + 0xb8]
call fcn.00436220
lea eax, [ebp + 0xb8]
mov dword [ebp - 4], 2
push eax
lea ecx, [edi + 4]
call fcn.004e8ec0
lea ecx, [ebp + 0xb8]
mov dword [edi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00436d10
cmp dword [edi + 0x24], 0
je 0x4e7898
lea esi, [edi + 0xc]
mov ecx, edi
push esi
call fcn.004e7c80
mov dword [edi + 0x10], eax
mov eax, dword [esi]
cmp dword [eax], 0
je 0x4e7898
lea eax, [ebp + 0xa0]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x4e7428
xor al, al
nop dword [eax]
test al, al
jne 0x4e731f
lea eax, [ebp + 0xb8]
push 0x8a64f0
push eax
call fcn.00737280
add esp, 8
mov esi, eax
or ebx, 1
mov dword [ebp - 4], 3
cmp dword [0xea47c8], 0
mov dword [ebp - 0x14], ebx
je 0x4e7304
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea47c8]
je 0x4e7304
call fcn.00742270
jmp 0x4e7309
mov al, byte [0xa5c73c]
test al, al
je 0x4e731f
push esi
call fcn.00741d00
add esp, 4
mov byte [ebp - 0xd], 1
cmp eax, 6
jae 0x4e7323
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4e733d
lea ecx, [ebp + 0xb8]
and ebx, 0xfffffffe
call fcn.00436d10
cmp byte [ebp - 0xd], 0
je 0x4e7898
call fcn.00737b00
mov dword [ebp + 0xc4], eax
mov dword [ebp - 4], 4
call fcn.00737b00
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.004d2a90
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.007433a0
add esp, 8
push 0x8a64f0
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.004cb390
mov esi, eax
mov byte [ebp - 4], 8
call sub.KERNEL32.dll_GetLastError
push eax
push 0x8ab954
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.004d04c0
lea ecx, [ebp + 0x80]
call fcn.00436d10
lea ecx, [ebp + 0x58]
call fcn.004cb830
lea ecx, [ebp + 0xc4]
mov dword [ebp - 4], 0xffffffff
call fcn.00476530
mov al, 1
jmp 0x4e72c0
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 0x4e772a
push 4
lea eax, [ebp - 0x24]
push eax
push 0x8ab9c4
call fcn.00816130
add esp, 0xc
test eax, eax
jne 0x4e7440
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 0x4e7723
mov eax, dword [edi + 0x14]
cmp byte [eax + 0xa], 0
jne 0x4e74f9
cmp dword [0xa5c6a0], 0
je 0x4e74f9
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.0073cd00
add esp, 0x14
cmp byte [0xea464c], 0
je 0x4e74f9
mov byte [0xea464c], 0
int3
mov eax, dword [edi + 0x14]
cmp word [eax + 8], 1
je 0x4e753e
cmp dword [0xa5c6a0], 0
je 0x4e753e
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.0073cd00
add esp, 0x14
cmp byte [0xea464c], 0
je 0x4e753e
mov byte [0xea464c], 0
int3
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x14]
inc eax
push eax
push ecx
call fcn.00805a2d
mov ecx, eax
add esp, 8
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4e75b3
mov eax, dword [ebp - 0x14]
mov byte [ecx + eax], 0
call fcn.00737b00
mov edx, dword [edi + 0x14]
cmp edx, eax
jne 0x4e75a1
push 0xc
call fcn.007fff35
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4e759a
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 0x4e75b3
xor eax, eax
mov dword [edi + 0x14], eax
jmp 0x4e75b3
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 0x4e7723
xor al, al
test al, al
jne 0x4e7632
lea eax, [ebp + 0xb8]
push 0x8a64f0
push eax
call fcn.00737280
add esp, 8
mov esi, eax
or ebx, 4
mov dword [ebp - 4], 0x11
cmp dword [0xea47c8], 0
mov dword [ebp - 0x14], ebx
je 0x4e7617
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea47c8]
je 0x4e7617
call fcn.00742270
jmp 0x4e761c
mov al, byte [0xa5c73c]
test al, al
je 0x4e7632
push esi
call fcn.00741d00
add esp, 4
mov byte [ebp - 0xd], 1
cmp eax, 6
jae 0x4e7636
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4e7650
lea ecx, [ebp + 0xb8]
and ebx, 0xfffffffb
call fcn.00436d10
cmp byte [ebp - 0xd], 0
je 0x4e7898
call fcn.00737b00
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0x12
call fcn.00737b00
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.004d2a90
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.007433a0
add esp, 8
push 0x8a64f0
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.004cb390
mov esi, eax
mov byte [ebp - 4], 0x16
call sub.KERNEL32.dll_GetLastError
push eax
push 0x8ab98c
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.004d04c0
lea ecx, [ebp + 0x30]
call fcn.00436d10
lea ecx, [ebp + 8]
call fcn.004cb830
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00476530
mov al, 1
jmp 0x4e75d3
mov al, 1
jmp 0x4e789a
xor al, al
nop dword [eax]
test al, al
jne 0x4e778f
lea eax, [ebp + 0xb8]
push 0x8a64f0
push eax
call fcn.00737280
add esp, 8
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 0xa
cmp dword [0xea47c8], 0
mov dword [ebp - 0x14], ebx
je 0x4e7774
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea47c8]
je 0x4e7774
call fcn.00742270
jmp 0x4e7779
mov al, byte [0xa5c73c]
test al, al
je 0x4e778f
push esi
call fcn.00741d00
add esp, 4
mov byte [ebp - 0xd], 1
cmp eax, 6
jae 0x4e7793
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4e77ad
lea ecx, [ebp + 0xb8]
and ebx, 0xfffffffd
call fcn.00436d10
cmp byte [ebp - 0xd], 0
je 0x4e7898
call fcn.00737b00
mov dword [ebp + 0xc4], eax
mov dword [ebp - 4], 0xb
call fcn.00737b00
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.004d2a90
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.007433a0
add esp, 8
push 0x8a64f0
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.004cb390
mov esi, eax
mov byte [ebp - 4], 0xf
call sub.KERNEL32.dll_GetLastError
push eax
push 0x8ab98c
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.004d04c0
lea ecx, [ebp + 0x80]
call fcn.00436d10
lea ecx, [ebp + 0x58]
call fcn.004cb830
lea ecx, [ebp + 0xc4]
mov dword [ebp - 4], 0xffffffff
call fcn.00476530
mov al, 1
jmp 0x4e7730
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.008001d2
lea esp, [ebp + 0xdc]
pop ebp
ret
call fcn.00805899
int3