Function at 0x4613d0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x4b559c], eax
mov eax, dword [0x49ad1c]
test eax, eax
je 0x46140f
cmp dword [0x4b55c8], 2
je 0x46140f
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
push 0x4677f0
mov dword [0x4b55a4], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
jmp 0x461419
mov dword [0x4b55a4], 1
mov eax, dword [0x4b558c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
jne 0x461481
mov eax, dword [0x4b55c8]
push 0
cmp eax, 2
jne 0x461454
push 1
push 0
push 3
push 0xc0000000
call dword [sym.imp.KERNEL32.dll_CreateConsoleScreenBuffer]
push eax
mov dword [0x4b558c], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleActiveScreenBuffer]
jmp 0x461477
push 0
push 3
push 0
push 3
push 0xc0000000
push str.CONOUT_
call esi
mov dword [0x4b558c], eax
mov dword [0x4b55c8], 1
mov eax, dword [0x4b558c]
mov dword [0x4b55cc], eax
mov eax, dword [0x4b5590]
test eax, eax
jne 0x46152a
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.CONIN_
call esi
mov dword [0x4b5590], eax
mov eax, dword [0x4b559c]
test eax, eax
je 0x46152a
mov al, byte [0x49d27f]
test al, al
je 0x46152a
push ebx
mov esi, dword [sym.imp.USER32.dll_OemKeyScan]
push edi
mov ecx, 0x40
xor eax, eax
mov edi, 0x4b52bc
rep stosd dword es:[edi], eax
mov ecx, 0x40
mov edi, 0x4b5478
mov dword [0x4b55a0], 1
xor ebx, ebx
rep stosd dword es:[edi], eax
movsx cx, bl
push ecx
call esi
cmp eax, 0xffffffff
je 0x46151f
mov ecx, eax
and ecx, 0xffff0000
jne 0x46150c
and eax, 0xff
mov byte [eax + 0x4b5478], bl
jmp 0x46151f
cmp ecx, 0x20000
jne 0x46151f
and eax, 0xff
mov byte [eax + 0x4b52bc], bl
inc ebx
cmp ebx, 0x100
jl 0x4614e9
pop edi
pop ebx
mov edx, dword [0x4b558c]
push 0x4b5460
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x46156d
mov word [0x4b5464], ax
mov word [0x4b5466], ax
mov word [0x4b5460], 0x50
mov word [0x4b5462], 0x19
mov eax, dword [0x4b5460]
mov dword [0x4b52a0], eax
jmp 0x46164a
mov eax, dword [0x49d18c]
mov ecx, dword [0x49d16c]
mov si, word [0x4b5460]
test eax, eax
je 0x461588
cmp ax, si
jne 0x46159a
mov dx, word [0x4b5462]
test ecx, ecx
je 0x4615d1
cmp cx, dx
je 0x4615d1
jmp 0x4615a1
mov dx, word [0x4b5462]
test eax, eax
mov word [esp + 4], ax
jne 0x4615af
mov word [esp + 4], si
test ecx, ecx
mov word [esp + 6], cx
jne 0x4615bd
mov word [esp + 6], dx
mov esi, dword [esp + 4]
mov ecx, dword [0x4b558c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
jmp 0x46162f
mov al, byte [0x49d263]
test al, 0x10
je 0x461600
cmp dx, 0x2b
je 0x461600
mov edx, dword [0x4b558c]
mov word [esp + 4], si
mov word [esp + 6], 0x2b
mov esi, dword [esp + 4]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
jmp 0x46162f
test al, 0x20
je 0x461629
cmp dx, 0x32
je 0x461629
mov eax, dword [0x4b558c]
mov word [esp + 4], si
mov word [esp + 6], 0x32
mov esi, dword [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
jmp 0x46162f
mov esi, dword [0x4b5460]
mov cx, word [0x4b5468]
mov edx, dword [0x4b558c]
push ecx
push edx
mov dword [0x4b52a0], esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [0x4b558c]
push 0x4b5580
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
test eax, eax
pop esi
je 0x46168e
mov eax, dword [0x4b5580]
mov edx, dword [0x4b5584]
mov cl, al
mov byte [esp + 1], 0
neg cl
mov byte [esp], cl
mov dword [0x4b52a8], eax
mov ax, word [esp]
mov dword [0x4b52ac], edx
mov word [0x4a0536], ax
mov ecx, dword [0x4b5590]
push 0x4b5190
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x4616ff
mov ecx, dword [0x4b5590]
lea edx, [esp]
push edx
lea eax, [esp + 8]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
mov eax, dword [esp]
test eax, eax
je 0x4616e6
cmp word [esp + 4], 2
jne 0x4616e6
mov ecx, dword [0x4b5590]
lea edx, [esp]
push edx
lea eax, [esp + 8]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edx, dword [0x4b5190]
mov eax, dword [0x4b5590]
and edx, 0xffffffef
or edx, 8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [0x4b55a8]
test eax, eax
je 0x46170f
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
add esp, 0x18
ret