Function at 0x4ea740
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x848d59
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0xa5d1d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xf0], ebx
cmp dword [esi + 8], 0xffffffff
jne 0x4ea7b9
cmp dword [0xa5c6a0], ebx
je 0x4ea7b9
push str.should_only_be_called_if_Init___returned_true
push str.m_hStderr_____HANDLE__LONG_PTR__1_
push str._anonymous_namespace::wxConsoleStderr::Write
push 0x21b
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
call fcn.0073ce90
add esp, 0x14
cmp byte [0xea464c], bl
je 0x4ea7b9
mov byte [0xea464c], bl
int3
lea eax, [ebp - 0x98]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x4eab10
xor al, al
mov edi, 0xffff
test al, al
jne 0x4ea83a
lea eax, [ebp - 0x30]
push 0x8a64f0
push eax
call fcn.00737280
add esp, 8
mov esi, eax
or ebx, 1
mov dword [ebp - 4], 0
cmp dword [0xea47c8], 0
mov dword [ebp - 0xf0], ebx
je 0x4ea81c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea47c8]
je 0x4ea81c
call fcn.00742270
jmp 0x4ea821
mov al, byte [0xa5c73c]
test al, al
je 0x4ea83a
push esi
call fcn.00741d00
add esp, 4
mov byte [ebp - 0xe9], 1
cmp eax, 6
jae 0x4ea841
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ea895
push dword [ebp - 0x18]
and ebx, 0xfffffffe
call fcn.008058ea
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x4ea895
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ea88b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eb1d8
push edx
push ecx
call fcn.007fff65
add esp, 8
cmp byte [ebp - 0xe9], 0
je 0x4eb19a
call fcn.00737b00
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
call fcn.00737b00
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.004d2a90
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esp, 0x14
mov dword [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0xf0], esp
call sub.KERNEL32.dll_GetLastError
push eax
push esi
call fcn.007433a0
add esp, 8
xorps xmm0, xmm0
mov byte [ebp - 4], 4
mov dword [ebp - 0x80], 6
mov dword [ebp - 0x78], str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
mov dword [ebp - 0x70], str._anonymous_namespace::wxConsoleStderr::Write
mov dword [ebp - 0x74], 0x221
mov dword [ebp - 0x6c], 0x8a64f0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 5
call sub.KERNEL32.dll_GetLastError
push eax
push 0x8ab954
push 0x221
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x80]
call fcn.004d04c0
push dword [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.008058ea
mov edx, dword [ebp - 0x3c]
add esp, 4
cmp edx, 8
jb 0x4ea9d2
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ea9c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eb1d8
push edx
push ecx
call fcn.007fff65
add esp, 8
mov esi, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
test esi, esi
je 0x4eaa3c
push 0x4cc550
push dword [esi + 0x10]
mov byte [ebp - 4], 7
push dword [esi + 0x14]
call fcn.00760fc0
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call fcn.008058ea
push 0x4cc530
push dword [esi]
mov byte [ebp - 4], 8
push dword [esi + 4]
call fcn.00760fc0
push dword [esi]
mov dword [esi + 8], 0
call fcn.008058ea
push 0x20
push esi
call fcn.007fff65
add esp, 0x28
mov dword [ebp - 4], 9
call fcn.00737b00
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x4eaa7f
add word [ecx + 8], di
jne 0x4eaa77
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4eaa77
cmp byte [esi + 0xa], 0
je 0x4eaa6c
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xa
call fcn.00737b00
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x4eaac2
add word [ecx + 8], di
jne 0x4eaaba
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4eaaba
cmp byte [esi + 0xa], 0
je 0x4eaaaf
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xb
call fcn.00737b00
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
je 0x4eab02
add word [ecx + 8], di
jne 0x4eaafd
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4eaafd
cmp byte [esi + 0xa], 0
je 0x4eaaf2
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x4ea7d8
xor eax, eax
mov word [ebp - 0x94], ax
mov ax, word [esi + 0x1c]
sub word [ebp - 0x92], ax
push dword [ebp - 0x94]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x4eae7a
xor al, al
mov edi, 0xffff
test al, al
jne 0x4eaba4
lea eax, [ebp - 0x30]
push 0x8a64f0
push eax
call fcn.00737280
add esp, 8
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 0xc
cmp dword [0xea47c8], 0
mov dword [ebp - 0xf0], ebx
je 0x4eab86
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea47c8]
je 0x4eab86
call fcn.00742270
jmp 0x4eab8b
mov al, byte [0xa5c73c]
test al, al
je 0x4eaba4
push esi
call fcn.00741d00
add esp, 4
mov byte [ebp - 0xe9], 1
cmp eax, 6
jae 0x4eabab
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4eabff
push dword [ebp - 0x18]
and ebx, 0xfffffffd
call fcn.008058ea
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x4eabff
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4eabf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eb1d8
push edx
push ecx
call fcn.007fff65
add esp, 8
cmp byte [ebp - 0xe9], 0
je 0x4eb19a
call fcn.00737b00
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xd
call fcn.00737b00
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.004d2a90
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esp, 0x14
mov dword [ebp - 4], 0xf
mov esi, esp
mov dword [ebp - 0xf0], esp
call sub.KERNEL32.dll_GetLastError
push eax
push esi
call fcn.007433a0
add esp, 8
xorps xmm0, xmm0
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x80], 6
mov dword [ebp - 0x78], str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
mov dword [ebp - 0x70], str._anonymous_namespace::wxConsoleStderr::Write
mov dword [ebp - 0x74], 0x22b
mov dword [ebp - 0x6c], 0x8a64f0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x11
call sub.KERNEL32.dll_GetLastError
push eax
push 0x8abb90
push 0x22b
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x80]
call fcn.004d04c0
push dword [ebp - 0x38]
mov byte [ebp - 4], 0xf
call fcn.008058ea
mov edx, dword [ebp - 0x3c]
add esp, 4
cmp edx, 8
jb 0x4ead3c
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ead32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eb1d8
push edx
push ecx
call fcn.007fff65
add esp, 8
mov esi, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
test esi, esi
je 0x4eada6
push 0x4cc550
push dword [esi + 0x10]
mov byte [ebp - 4], 0x13
push dword [esi + 0x14]
call fcn.00760fc0
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call fcn.008058ea
push 0x4cc530
push dword [esi]
mov byte [ebp - 4], 0x14
push dword [esi + 4]
call fcn.00760fc0
push dword [esi]
mov dword [esi + 8], 0
call fcn.008058ea
push 0x20
push esi
call fcn.007fff65
add esp, 0x28
mov dword [ebp - 4], 0x15
call fcn.00737b00
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x4eade9
add word [ecx + 8], di
jne 0x4eade1
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4eade1
cmp byte [esi + 0xa], 0
je 0x4eadd6
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0x16
call fcn.00737b00
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x4eae2c
add word [ecx + 8], di
jne 0x4eae24
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4eae24
cmp byte [esi + 0xa], 0
je 0x4eae19
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0x17
call fcn.00737b00
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
je 0x4eae6c
add word [ecx + 8], di
jne 0x4eae67
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4eae67
cmp byte [esi + 0xa], 0
je 0x4eae5c
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x4eab42
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0x94]
push dword [esi + 0x18]
push 0x20
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
jne 0x4eaff9
xor al, al
nop
test al, al
jne 0x4eaf02
lea eax, [ebp - 0x30]
push 0x8a64f0
push eax
call fcn.00737280
add esp, 8
mov esi, eax
or ebx, 4
mov dword [ebp - 4], 0x18
cmp dword [0xea47c8], 0
mov dword [ebp - 0xf0], ebx
je 0x4eaee4
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea47c8]
je 0x4eaee4
call fcn.00742270
jmp 0x4eaee9
mov al, byte [0xa5c73c]
test al, al
je 0x4eaf02
push esi
call fcn.00741d00
add esp, 4
mov byte [ebp - 0xe9], 1
cmp eax, 6
jae 0x4eaf09
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4eaf20
lea ecx, [ebp - 0x30]
and ebx, 0xfffffffb
call fcn.00436d10
cmp byte [ebp - 0xe9], 0
je 0x4eb19a
call fcn.00737b00
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0x19
call fcn.00737b00
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x1a
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.004d2a90
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esp, 0x14
mov dword [ebp - 4], 0x1b
mov esi, esp
mov dword [ebp - 0xf0], esp
call sub.KERNEL32.dll_GetLastError
push eax
push esi
call fcn.007433a0
add esp, 8
push 0x8a64f0
push str._anonymous_namespace::wxConsoleStderr::Write
push 0x233
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
push 6
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x1c
call fcn.004cb390
mov esi, eax
mov byte [ebp - 4], 0x1d
call sub.KERNEL32.dll_GetLastError
push eax
push str.FillConsoleOutputCharacter
push 0x233
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x1e
push eax
mov ecx, esi
call fcn.004d04c0
lea ecx, [ebp - 0x50]
call fcn.00436d10
lea ecx, [ebp - 0x78]
call fcn.004cb830
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00476530
mov al, 1
jmp 0x4eaea0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4eb003
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0xf4]
push ecx
push dword [edi + 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x4eb19e
xor al, al
test al, al
jne 0x4eb085
lea eax, [ebp - 0x30]
push 0x8a64f0
push eax
call fcn.00737280
add esp, 8
mov esi, eax
or ebx, 8
mov dword [ebp - 4], 0x1f
cmp dword [0xea47c8], 0
mov dword [ebp - 0xf0], ebx
je 0x4eb067
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea47c8]
je 0x4eb067
call fcn.00742270
jmp 0x4eb06c
mov al, byte [0xa5c73c]
test al, al
je 0x4eb085
push esi
call fcn.00741d00
add esp, 4
mov byte [ebp - 0xe9], 1
cmp eax, 6
jae 0x4eb08c
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xffffffff
test bl, 8
je 0x4eb0a3
lea ecx, [ebp - 0x30]
and ebx, 0xfffffff7
call fcn.00436d10
cmp byte [ebp - 0xe9], 0
je 0x4eb19a
call fcn.00737b00
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], 0x20
call fcn.00737b00
mov dword [ebp - 0x104], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x21
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.004d2a90
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
sub esp, 0x14
mov dword [ebp - 4], 0x22
mov esi, esp
mov dword [ebp - 0xf0], esp
call sub.KERNEL32.dll_GetLastError
push eax
push esi
call fcn.007433a0
add esp, 8
push 0x8a64f0
push str._anonymous_namespace::wxConsoleStderr::Write
push 0x239
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
push 6
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x23
call fcn.004cb390
mov esi, eax
mov byte [ebp - 4], 0x24
call sub.KERNEL32.dll_GetLastError
push eax
push str.WriteConsole
push 0x239
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmsw_app.cpp
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0x25
push eax
mov ecx, esi
call fcn.004d04c0
lea ecx, [ebp - 0xb8]
call fcn.00436d10
lea ecx, [ebp - 0xe0]
call fcn.004cb830
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0xffffffff
call fcn.00476530
mov al, 1
jmp 0x4eb023
xor al, al
jmp 0x4eb1ba
push 0
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [esi + 0x14]
push dword [esi + 0x18]
push dword [eax]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.008001d2
mov esp, ebp
pop ebp
ret 4
call fcn.00805899
int3