Function at 0x4268e0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
or eax, 0xffffffff
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x58]
push edi
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x40]
push ecx
push edx
call fcn.00426810
mov eax, dword [ebp - 0x3c]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp esi, 2
mov dword [ebp - 0x2c], eax
jne 0x426990
mov ecx, dword [edi + 4]
push 0x4494f8
push ecx
call fcn.0042a7d0
add esp, 8
test eax, eax
je 0x42696c
mov edx, dword [edi + 4]
push str._all
push edx
call fcn.0042a7d0
add esp, 8
test eax, eax
je 0x42696c
mov eax, dword [edi + 4]
push str.everything
push eax
call fcn.0042a7d0
add esp, 8
test eax, eax
jne 0x426990
sub esp, 0x18
mov ecx, 5
lea esi, [ebp - 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x34]
push ecx
movsw word es:[edi], word [esi]
call fcn.00426710
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 1
mov dword [ebp - 0x84], 0x2c
je 0x4270be
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
je 0x426ee5
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi + 4]
add edi, 4
mov dword [ebp + 0xc], edi
mov esi, 1
cmp byte [ebx], 0x2d
jne 0x4269c9
xor esi, esi
inc ebx
push str.hide
push ebx
call fcn.00431080
add esp, 8
test eax, eax
jne 0x426a0a
call fcn.00433630
mov ebx, eax
test ebx, ebx
jne 0x4269f3
push str.couldnt_find_console_window
call fcn.00426410
add esp, 4
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 5
push esi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x426ed8
push str.display
push ebx
call fcn.00431080
add esp, 8
test eax, eax
jne 0x426a95
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
je 0x427097
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
call fcn.00433630
mov edi, eax
test edi, edi
jne 0x426a4f
push str.couldnt_find_console_window
call fcn.00426410
add esp, 4
xor esi, esi
mov ebx, 0x4491d8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.00431080
add esp, 8
test eax, eax
je 0x426a75
add ebx, 0xc
inc esi
cmp ebx, 0x449208
jb 0x426a56
cmp esi, 4
je 0x42707a
lea edx, [esi + esi*2]
mov eax, dword [edx*4 + 0x4491dc]
push eax
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x426ed5
push 0x4494d8
push ebx
call fcn.00431080
add esp, 8
test eax, eax
jne 0x426c33
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
je 0x427097
mov eax, dword [edi + 4]
add edi, 4
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
push ecx
push edx
push eax
call fcn.00427190
mov esi, eax
add esp, 0xc
cmp esi, 3
je 0x426ed8
call fcn.00433630
mov ebx, eax
test ebx, ebx
mov dword [ebp + 0xc], ebx
jne 0x426af5
push str.x_couldnt_find_console_window
call fcn.00426410
add esp, 4
lea ecx, [ebp - 0x84]
push ecx
push ebx
call fcn.00427390
add esp, 8
test eax, eax
jne 0x426b1b
call fcn.00434290
push str.couldnt_determine_window_position
call fcn.00426410
add esp, 4
cmp esi, 1
je 0x426b43
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x68]
movsx ebx, word [ebp - 0x4a]
mov ecx, dword [ebp - 0xc]
sub eax, edx
movsx edx, word [ebp - 0x4e]
sub ebx, edx
mov dword [ebp - 0x68], ecx
inc ebx
add eax, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x60], eax
jmp 0x426b46
mov ebx, dword [ebp - 0x20]
cmp esi, 2
je 0x426b6e
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x64]
movsx ecx, word [ebp - 0x4c]
sub eax, esi
movsx esi, word [ebp - 0x48]
sub esi, ecx
mov ecx, dword [ebp - 0x10]
inc esi
add eax, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x5c], eax
jmp 0x426b71
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x84]
push edx
push eax
call fcn.00427420
add esp, 8
test eax, eax
jne 0x426b9a
call fcn.00434290
push str._Cannot_set_window_position
call fcn.00426410
add esp, 4
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x58]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x426bd0
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x426bd0
call fcn.00434290
push str._couldnt_get_console_buffer_info
call fcn.00426410
add esp, 4
cmp dword [ebp - 0xc], 0xffffffff
je 0x426bfd
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x58]
push eax
lea edx, [ebp - 0x4e]
push ecx
lea eax, [ebp - 0x4a]
push edx
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x4e]
push eax
push ecx
push ebx
push 0xffffffffffffffff
push edx
call fcn.00427280
add esp, 0x24
cmp dword [ebp - 0x10], 0xffffffff
je 0x426ed8
mov eax, dword [ebp - 0x2a]
lea ecx, [ebp - 0x58]
push eax
lea edx, [ebp - 0x56]
push ecx
lea eax, [ebp - 0x4e]
push edx
lea ecx, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x4c]
push ecx
push edx
push esi
push 0xffffffffffffffff
push eax
call fcn.00427280
add esp, 0x24
jmp 0x426ed8
push str.sane
push ebx
call fcn.00431080
add esp, 8
test eax, eax
jne 0x426c67
cmp esi, eax
je 0x426c5c
mov dword [ebp - 0x34], 0x1f
mov dword [ebp - 0x30], 3
jmp 0x426ed8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
jmp 0x426ed8
push str.rows
push ebx
call fcn.00431080
add esp, 8
test eax, eax
jne 0x426cc6
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
je 0x427097
mov eax, dword [edi + 4]
add edi, 4
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 8]
push ecx
push edx
push eax
call fcn.00427120
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, 0xffffffff
je 0x426ed8
cmp eax, 0x19
jge 0x426ed8
push 2
push 0x457f40
call fcn.00429bd9
add esp, 8
jmp 0x426ed8
push str.columns
push ebx
call fcn.00431080
add esp, 8
test eax, eax
jne 0x426d3e
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
je 0x427097
mov eax, dword [edi + 4]
add edi, 4
lea ecx, [ebp - 0x18]
lea edx, [ebp - 4]
push ecx
push edx
push eax
call fcn.00427120
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x426ed8
cmp eax, 0x28
jge 0x426ed8
mov ecx, dword [0x4583e0]
push ecx
push str._s:_minimum_number_of_columns_is_40_n
push 0x4498f0
call fcn.0042a920
add esp, 0xc
push 2
push 0x457f40
call fcn.00429bd9
add esp, 8
jmp 0x426ed8
push 0x44943c
push ebx
call fcn.00431080
add esp, 8
test eax, eax
jne 0x426d95
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
je 0x427097
mov edx, dword [edi + 4]
add edi, 4
push edx
call fcn.004270d0
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
test eax, eax
jge 0x426ed8
call fcn.00434290
push esi
push str.SetConsoleCP__d_
call fcn.00426410
add esp, 8
jmp 0x426ed8
push 0x449424
push ebx
call fcn.00431080
add esp, 8
test eax, eax
jne 0x426dec
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
je 0x427097
mov eax, dword [edi + 4]
add edi, 4
push eax
call fcn.004270d0
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jge 0x426ed8
call fcn.00434290
push esi
push str.SetConsoleOutputCP__d_
call fcn.00426410
add esp, 8
jmp 0x426ed8
push 0x449408
push ebx
call fcn.00431080
add esp, 8
test eax, eax
jne 0x426e5e
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
je 0x427097
mov ecx, dword [edi + 4]
add edi, 4
push ecx
call fcn.004270d0
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jge 0x426e3a
call fcn.00434290
push esi
push str.SetConsoleOutputCP__d_
call fcn.00426410
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
test eax, eax
jge 0x426ed8
call fcn.00434290
push esi
push str.SetConsoleCP__d_
call fcn.00426410
add esp, 8
jmp 0x426ed8
xor edi, edi
mov dword [ebp - 0x14], 0x449184
mov edx, dword [ebp - 0x14]
push ebx
mov eax, dword [edx]
push eax
call fcn.00431080
add esp, 8
test eax, eax
je 0x426e8b
mov eax, dword [ebp - 0x14]
inc edi
add eax, 0xc
cmp eax, 0x4491d8
mov dword [ebp - 0x14], eax
jb 0x426e67
cmp edi, 7
je 0x4270b0
test esi, esi
lea edi, [edi + edi*2]
je 0x426eb8
shl edi, 2
mov ecx, dword [edi + 0x449180]
mov edx, dword [edi + 0x449188]
lea eax, [ebp + ecx*4 - 0x34]
mov ecx, dword [ebp + ecx*4 - 0x34]
or ecx, edx
mov dword [eax], ecx
jmp 0x426ed5
shl edi, 2
mov eax, dword [edi + 0x449180]
mov ecx, dword [edi + 0x449188]
not ecx
mov edx, dword [ebp + eax*4 - 0x34]
lea eax, [ebp + eax*4 - 0x34]
and edx, ecx
mov dword [eax], edx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
jne 0x4269b3
mov eax, dword [ebp - 0x18]
mov cx, word [ebp - 0x56]
mov dx, word [ebp - 0x58]
cmp eax, 0xffffffff
je 0x426efc
movsx esi, dx
cmp eax, esi
jne 0x426f41
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x426f0b
movsx esi, cx
cmp eax, esi
jne 0x426f41
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x426f22
movsx esi, word [ebp - 0x48]
movsx edi, word [ebp - 0x4c]
sub esi, edi
inc esi
cmp eax, esi
jne 0x426f41
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x427021
movsx esi, word [ebp - 0x4a]
movsx edi, word [ebp - 0x4e]
sub esi, edi
inc esi
cmp eax, esi
je 0x427021
lea eax, [ebp + 8]
xor edi, edi
push eax
mov word [ebp + 8], di
movsx edx, dx
movsx eax, cx
imul edx, eax
mov ecx, dword [ebp - 0x3c]
mov word [ebp + 0xa], di
mov esi, dword [ebp + 8]
push esi
push edx
push 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x426f90
movsx eax, word [ebp - 0x58]
movsx ecx, word [ebp - 0x56]
imul eax, ecx
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp - 0x50]
push esi
push eax
mov eax, dword [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x426fa2
call fcn.00434290
push str._couldnt_set_console_size
call fcn.00426410
add esp, 4
mov edx, dword [ebp - 0x3c]
mov word [ebp - 0x54], di
mov word [ebp - 0x52], di
mov ecx, dword [ebp - 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x426fc9
push str._cannot_set_cursor_position
call fcn.00426410
add esp, 4
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x58]
push eax
lea edx, [ebp - 0x58]
push ecx
lea eax, [ebp - 0x4e]
push edx
lea ecx, [ebp - 0x4a]
push eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x4e]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x3c]
push eax
push ecx
push edx
call fcn.00427280
mov eax, dword [ebp - 0x2a]
add esp, 0x24
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x56]
push eax
push ecx
lea eax, [ebp - 0x4e]
push edx
lea ecx, [ebp - 0x48]
push eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x3c]
push eax
push ecx
push edx
call fcn.00427280
add esp, 0x24
mov eax, dword [ebp - 0x34]
test al, 2
jne 0x42702d
and al, 0xfb
mov dword [ebp - 0x34], eax
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push eax
mov eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x42705f
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
push ecx
push edx
call esi
test eax, eax
je 0x42705f
mov eax, dword [ebp - 0x30]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call esi
test eax, eax
jne 0x427071
call fcn.00434290
push str._couldnt_set_console_mode
call fcn.00426410
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
push edx
push str.Unknown_display:__s
call fcn.00426410
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.missing_numeric_argument
call fcn.00426410
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push str.Unknown_mode:__s
call fcn.00426410
add esp, 8
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret