Function at 0x404160
Capabilities:
Execute command
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x408008]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
push 0x4e3
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push 0x4e3
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push str.Russian
push 0
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
add esp, 8
push 0xf
push dword [0x46a650]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov dword [esp + 0xc], 0x10001
push dword [esp + 0xc]
push dword [0x46a650]
call ebx
push 0xf
push dword [0x46a650]
call esi
push 0x404aa0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4067fc
call fcn.00404860
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.pause
call esi
add esp, 4
push 0x40671c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 0x14]
add esp, 4
mov dword [esp + 0x10], 0
push eax
push 0xfffffffffffffff6
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [esp + 0x10]
and eax, 0xffffffbf
push eax
push 0xfffffffffffffff6
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push 1
call esi
push eax
call dword [sym.imp.USER32.dll_ShowScrollBar]
push 0xfffffffffffffff0
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xfffaffff
push eax
push 0xfffffffffffffff0
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea eax, [esp + 0x14]
push eax
push dword [0x46a650]
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
push dword [0x46a650]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0xfffffffffffffff4
call edi
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx eax, word [esp + 0x26]
movsx ecx, word [esp + 0x2a]
sub ecx, eax
movsx eax, word [esp + 0x28]
shl ecx, 3
mov dword [0x46a5e8], ecx
movsx ecx, word [esp + 0x2c]
sub ecx, eax
sub ecx, 3
shl ecx, 4
push 0
mov dword [0x4398a4], ecx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov eax, 0xa
add esp, 4
mov word [esp + 0xc], ax
mov eax, dword [0x4398a4]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add eax, 2
mov word [esp + 0xe], ax
push dword [esp + 0xc]
push dword [0x46a650]
call ebx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40682c
call fcn.00404860
mov eax, 0x2d
mov word [esp + 0xc], ax
mov eax, dword [0x4398a4]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add eax, 2
mov word [esp + 0xe], ax
push dword [esp + 0xc]
push dword [0x46a650]
call ebx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40683c
call fcn.00404860
mov eax, 0x1e
mov word [esp + 0xc], ax
mov eax, dword [0x4398a4]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add eax, 2
mov word [esp + 0xe], ax
push dword [esp + 0xc]
push dword [0x46a650]
call ebx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x406848
call fcn.00404860
mov eax, 0x50
mov word [esp + 0xc], ax
mov eax, dword [0x4398a4]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add eax, 2
mov word [esp + 0xe], ax
push dword [esp + 0xc]
push dword [0x46a650]
call ebx
push dword [0x4398a4]
mov edx, 0x406858
push dword [0x46a5e8]
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404860
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push ecx
mov edx, 0x406854
mov ecx, eax
call fcn.00404860
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov dword [0x4398a0], 5
mov dword [0x439890], 5
call fcn.004011c0
call fcn.00403aa0
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404acf
mov esp, ebp
pop ebp
ret