Function at 0x1400e8f70
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1404b3028]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov rsi, rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r14, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400e99a2
lea rdx, [0x14031d280]
lea rcx, [rsp + 0x50]
call fcn.1400476b0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
lea r8d, [r13 + 2]
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 8]
call fcn.14008caf0
movzx ebx, al
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0x50]
call fcn.1400119a0
test bl, bl
je 0x1400e99a2
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
je 0x1400e99a2
mov qword [rsi + 0x10], r14
lea rdx, str.GetConsoleCommandHistory
lea rcx, [rbp]
call fcn.140010ee0
nop
mov rbx, qword [rsi + 8]
lea r8d, [r13 + 0x57]
lea rdx, [rbp]
lea rcx, [rsp + 0x50]
call fcn.140043050
nop
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14008cf60
mov rbx, rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0x50]
call fcn.1400119a0
mov qword [rsi + 0x38], rbx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp]
call fcn.1400119a0
cmp qword [rsi + 0x38], r13
je 0x1400e99a2
lea rdx, str.GetConsoleCommandHistoryLength
lea rcx, [rsp + 0x50]
call fcn.140010ee0
nop
mov rbx, qword [rsi + 8]
lea r8d, [r13 + 0x57]
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.140043050
lea edi, [r13 + 0x18]
lea rdx, [rbp]
mov rcx, rbx
call fcn.14008cf60
mov rbx, rax
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp]
call fcn.1400119a0
mov qword [rsi + 0x40], rbx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0x50]
call fcn.1400119a0
cmp qword [rsi + 0x40], r13
je 0x1400e99a2
lea rdx, [rsi + 0x18]
mov rcx, rsi
call fcn.1400e9c40
mov dword [rsi + 0x20], eax
mov rax, qword [rsi + 0x18]
cmp qword [rax], r13
je 0x1400e99a2
lea rdx, [rbp + 0x30]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400e9372
lea rsi, [0x14033a5f8]
lea r15, str.C:LibrarieswxWidgets3.2.4_srcmsw_app.cpp
lea r12, str._anonymous_namespace::wxConsoleStderr::DoInit
lea r14, [0x1403708f0]
nop word [rax + rax]
test al, al
jne 0x1400e91b3
mov rdx, rsi
lea rcx, [rbp]
call fcn.140044710
mov rbx, rax
or edi, 1
mov dword [rsp + 0x40], edi
cmp dword [0x1404c4ab8], 0
je 0x1400e9197
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x1404c4ab8]
je 0x1400e9197
call fcn.140051d10
jmp 0x1400e919e
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x1400e91b3
mov rcx, rbx
call fcn.1400518b0
cmp eax, 6
jb 0x1400e91b3
mov bl, 1
jmp 0x1400e91b5
xor bl, bl
test dil, 1
je 0x1400e91d1
and edi, 0xfffffffe
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp]
call fcn.1400119a0
test bl, bl
je 0x1400e99a2
lea rax, [rbp]
mov qword [rsp + 0x40], rax
call fcn.140044e20
mov qword [rsp + 0x50], rax
call fcn.140044e20
mov qword [rsp + 0x58], rax
mov r8, 0xffffffffffffffff
lea rdx, str._s__d_:__s_failed_with_error_0x_08lx___s_.
lea rcx, [rsp + 0x60]
call fcn.14003ee50
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp]
call fcn.140052f00
mov rbx, rax
mov dword [rbp - 0x80], 6
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x68], r12
mov dword [rbp - 0x70], 0x1c8
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x40], r13
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
call sub.KERNEL32.dll_GetLastError
nop
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 0x1c8
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.14005a4a0
nop
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400e92ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e92e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e936b
call fcn.14003b258
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x1400e935a
lea r8, [0x14003f090]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call fcn.140059540
mov qword [rbx + 0x30], r13
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea r8, [0x14003f050]
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
call fcn.140059540
mov qword [rbx + 0x10], r13
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov edx, 0x40
mov rcx, rbx
call fcn.14003b258
nop
lea rcx, [rsp + 0x50]
call fcn.14003dbf0
mov al, 1
jmp 0x1400e9160
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov word [rsp + 0x40], r13w
movzx r14d, word [rbp + 0x36]
inc r14w
mov word [rsp + 0x42], r14w
nop word [rax + rax]
dec r14w
mov word [rsp + 0x42], r14w
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov ebx, dword [rsp + 0x40]
mov r9d, ebx
mov r8d, 4
lea rdx, [rsp + 0x48]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
je 0x1400e976b
mov r8d, 4
lea rdx, [rsp + 0x48]
lea rcx, [0x140370960]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400e9390
movsx eax, r14w
movsx ecx, word [rbp + 0x36]
sub ecx, eax
mov dword [rsi + 0x34], ecx
movsx edx, word [rbp + 0x42]
imul edx, ecx
movsx eax, word [rbp + 0x34]
add edx, eax
mov dword [rsi + 0x30], edx
test edx, edx
jle 0x1400e9764
movsxd r15, edx
mov rax, qword [rsi + 0x28]
cmp byte [rax + 0x12], 0
jne 0x1400e945c
cmp qword [0x1404b3060], 0
je 0x1400e945c
lea rax, str.cannot_extend_non_owned_buffer
mov qword [rsp + 0x20], rax
lea r9, str.this__m_data__m_owned
lea r8, str.wxCharTypeBuffer_char_::extend
mov edx, 0x140
lea rcx, str.C:LibrarieswxWidgets3.2.4includewx_buffer.h
call fcn.140041e40
cmp byte [0x1404c47a8], 0
je 0x1400e945c
mov byte [0x1404c47a8], 0
int3
mov rax, qword [rsi + 0x28]
cmp word [rax + 0x10], 1
je 0x1400e94ad
cmp qword [0x1404b3060], 0
je 0x1400e94ad
lea rax, str.cant_extend_shared_buffer
mov qword [rsp + 0x20], rax
lea r9, str.this__m_data__m_ref__1
lea r8, str.wxCharTypeBuffer_char_::extend
mov edx, 0x141
lea rcx, str.C:LibrarieswxWidgets3.2.4includewx_buffer.h
call fcn.140041e40
cmp byte [0x1404c47a8], 0
je 0x1400e94ad
mov byte [0x1404c47a8], 0
int3
mov rax, qword [rsi + 0x28]
lea rdx, [r15 + 1]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r14, rax
test rax, rax
je 0x1400e950c
mov byte [rax + r15], 0
call fcn.140044e20
mov rcx, qword [rsi + 0x28]
cmp rcx, rax
jne 0x1400e94fd
mov rcx, rdi
call fcn.14003b21c
mov qword [rsp + 0x40], rax
mov qword [rax], r14
mov qword [rax + 8], r15
mov word [rax + 0x10], 1
mov byte [rax + 0x12], 1
mov qword [rsi + 0x28], rax
jmp 0x1400e950c
mov qword [rcx], r14
mov qword [rcx + 8], r15
mov rax, qword [rsi + 0x28]
mov byte [rax + 0x12], 1
mov rax, qword [rsi + 0x28]
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x20], rcx
mov r9d, ebx
mov r8d, dword [rsi + 0x30]
mov rdx, qword [rax]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
jne 0x1400e9764
lea rsi, [0x14033a5f8]
lea r15, str.C:LibrarieswxWidgets3.2.4_srcmsw_app.cpp
lea r12, str._anonymous_namespace::wxConsoleStderr::DoInit
lea r14, [0x140370928]
test al, al
jne 0x1400e95a5
mov rdx, rsi
lea rcx, [rbp]
call fcn.140044710
mov rbx, rax
or edi, 4
mov dword [rsp + 0x40], edi
cmp dword [0x1404c4ab8], 0
je 0x1400e9589
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x1404c4ab8]
je 0x1400e9589
call fcn.140051d10
jmp 0x1400e9590
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x1400e95a5
mov rcx, rbx
call fcn.1400518b0
cmp eax, 6
jb 0x1400e95a5
mov bl, 1
jmp 0x1400e95a7
xor bl, bl
test dil, 4
je 0x1400e95c3
and edi, 0xfffffffb
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp]
call fcn.1400119a0
test bl, bl
je 0x1400e99a2
lea rax, [rbp]
mov qword [rsp + 0x40], rax
call fcn.140044e20
mov qword [rsp + 0x50], rax
call fcn.140044e20
mov qword [rsp + 0x58], rax
mov r8, 0xffffffffffffffff
lea rdx, str._s__d_:__s_failed_with_error_0x_08lx___s_.
lea rcx, [rsp + 0x60]
call fcn.14003ee50
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp]
call fcn.140052f00
mov rbx, rax
mov dword [rbp - 0x80], 6
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x68], r12
mov dword [rbp - 0x70], 0x1e8
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x40], r13
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
call sub.KERNEL32.dll_GetLastError
nop
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 0x1e8
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.14005a4a0
nop
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400e96e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e96db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e975d
call fcn.14003b258
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x1400e974c
lea r8, [0x14003f090]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call fcn.140059540
mov qword [rbx + 0x30], r13
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea r8, [0x14003f050]
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
call fcn.140059540
mov qword [rbx + 0x10], r13
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov edx, 0x40
mov rcx, rbx
call fcn.14003b258
nop
lea rcx, [rsp + 0x50]
call fcn.14003dbf0
mov al, 1
jmp 0x1400e9552
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov al, 1
jmp 0x1400e99a4
xor al, al
lea rsi, [0x14033a5f8]
lea r15, str.C:LibrarieswxWidgets3.2.4_srcmsw_app.cpp
lea r12, str._anonymous_namespace::wxConsoleStderr::DoInit
lea r14, [0x140370928]
nop dword [rax]
test al, al
jne 0x1400e97e3
mov rdx, rsi
lea rcx, [rbp]
call fcn.140044710
mov rbx, rax
or edi, 2
mov dword [rsp + 0x40], edi
cmp dword [0x1404c4ab8], 0
je 0x1400e97c7
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x1404c4ab8]
je 0x1400e97c7
call fcn.140051d10
jmp 0x1400e97ce
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x1400e97e3
mov rcx, rbx
call fcn.1400518b0
cmp eax, 6
jb 0x1400e97e3
mov bl, 1
jmp 0x1400e97e5
xor bl, bl
test dil, 2
je 0x1400e9801
and edi, 0xfffffffd
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp]
call fcn.1400119a0
test bl, bl
je 0x1400e99a2
lea rax, [rbp]
mov qword [rsp + 0x40], rax
call fcn.140044e20
mov qword [rsp + 0x50], rax
call fcn.140044e20
mov qword [rsp + 0x58], rax
mov r8, 0xffffffffffffffff
lea rdx, str._s__d_:__s_failed_with_error_0x_08lx___s_.
lea rcx, [rsp + 0x60]
call fcn.14003ee50
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp]
call fcn.140052f00
mov rbx, rax
mov dword [rbp - 0x80], 6
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x68], r12
mov dword [rbp - 0x70], 0x1d9
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x40], r13
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
call sub.KERNEL32.dll_GetLastError
nop
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 0x1d9
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.14005a4a0
nop
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400e991e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e9919
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e999b
call fcn.14003b258
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x1400e998a
lea r8, [0x14003f090]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call fcn.140059540
mov qword [rbx + 0x30], r13
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea r8, [0x14003f050]
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
call fcn.140059540
mov qword [rbx + 0x10], r13
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov edx, 0x40
mov rcx, rbx
call fcn.14003b258
nop
lea rcx, [rsp + 0x50]
call fcn.14003dbf0
mov al, 1
jmp 0x1400e9790
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor al, al
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.14003b100
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret