Function at 0x45c610
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push esi
push edi
xor eax, eax
push 0xfffffffffffffff6
mov dword [esp + 0x1c], eax
lea edx, [eax + 0xa]
mov dword [esp + 0x20], 0x32000a
call ebx
mov esi, eax
push 0xfffffffffffffff5
mov dword [esp + 0x10], esi
call ebx
mov edi, eax
push 0xfffffffffffffff4
mov dword [esp + 0x14], edi
call ebx
cmp dword [0x4b2674], 0
mov dword [esp + 0x14], eax
je 0x45c66e
test esi, esi
je 0x45c66e
test edi, edi
je 0x45c66e
test eax, eax
je 0x45c66e
call dword [sym.imp.KERNEL32.DLL_GetConsoleWindow]
test eax, eax
jne 0x45c67a
mov dword [0x4b2674], 0
jmp 0x45c687
cmp dword [0x4b2674], 0
jne 0x45c808
call dword [sym.imp.KERNEL32.DLL_GetConsoleWindow]
mov esi, eax
test esi, esi
je 0x45c6e4
push 0x49e7d0
call fcn.0047266e
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.DLL_FlushConsoleInputBuffer]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x45c6c1
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x45c6ca
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_AllocConsole]
test eax, eax
jne 0x45c6f7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetConsoleWindow]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov edi, 0x49c0c4
mov eax, 0xffffd8ee
call fcn.00421240
mov edi, esi
mov esi, dword [edi + 8]
add esi, 0xfffffff0
cmp esi, 0x49a128
je 0x45c7d4
mov eax, dword [esi + 8]
cmp eax, 4
je 0x45c772
cmp eax, 3
jne 0x45c7d4
cmp eax, 4
je 0x45c772
cmp eax, 7
jne 0x45c74f
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x45c74f
add eax, 0x18
jmp 0x45c777
call fcn.00438220
test eax, eax
je 0x45c777
mov esi, edi
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0x48]
cmp edx, dword [eax + 0x44]
jb 0x45c76c
mov eax, esi
call fcn.00437ff0
mov esi, dword [esi + 8]
sub esi, 0x10
mov eax, dword [esi]
add eax, 0x10
mov ecx, 0x49c1e4
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45c7a0
test dl, dl
je 0x45c79c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45c7a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x45c780
xor eax, eax
jmp 0x45c7a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x45c7d4
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0
push 0
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
push 1
push 0x45c4c0
call dword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
mov esi, dword [esp + 0x10]
add dword [edi + 8], 0xfffffff0
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xfffffffffffffff6
call ebx
push 0xfffffffffffffff5
mov dword [esp + 0x10], eax
call ebx
push 0xfffffffffffffff4
mov dword [esp + 0x14], eax
call ebx
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
add eax, 0x20
cmp eax, dword [ecx + 8]
jae 0x45c823
cmp eax, 0x49a128
je 0x45c823
cmp dword [eax + 8], 0
jg 0x45c82b
mov ebx, dword [0x4b4370]
jmp 0x45c857
mov esi, ecx
push 3
xor ebx, ebx
mov eax, esi
call fcn.00420e10
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45c857
mov ecx, dword [0x499eac]
push ecx
lea edi, [eax + 3]
call fcn.00423a50
mov edi, dword [esp + 0x14]
add esp, 4
mov esi, dword [ebp + 8]
call fcn.00421040
push 0xffffffffffffffff
push esi
call fcn.00420bc0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.DLL_SetConsoleTitleW]
add dword [esi + 8], 0xfffffff0
lea edx, [esp + 0x18]
push edx
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_SetConsoleWindowInfo]
mov eax, dword [esp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.DLL_SetConsoleMode]
push 0xa7
push eax
call ebx
push 3
push edi
call ebx
cmp dword [0x4b2674], 0
jne 0x45c999
cmp dword [0x4b43a4], 0
jne 0x45c999
push 0x4000
push edi
call fcn.00478192
add esp, 8
cmp eax, 0xffffffff
je 0x45c6ee
push 1
push eax
call fcn.00476435
push 0x49b0c8
push 1
call fcn.00478889
mov esi, eax
mov ecx, 8
lea edi, [esp + 0x30]
mov dword [0x4b43a4], eax
rep movsd dword es:[edi], dword [esi]
call fcn.004723e7
lea edi, [eax + 0x20]
mov ecx, 8
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
push 0x4000
push ecx
call fcn.00478192
push 0
push eax
call fcn.00476435
push 0x49e7d4
push 0
call fcn.00478889
mov esi, eax
mov ecx, 8
lea edi, [esp + 0x48]
mov dword [0x4b43a8], eax
rep movsd dword es:[edi], dword [esi]
call fcn.004723e7
mov edx, dword [esp + 0x3c]
mov edi, eax
push 0x4000
mov ecx, 8
lea esi, [esp + 0x4c]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00478192
push 2
push eax
call fcn.00476435
push 0x49b0c8
push 2
call fcn.00478889
mov esi, eax
mov ecx, 8
lea edi, [esp + 0x60]
add esp, 0x40
mov dword [0x4b43ac], eax
rep movsd dword es:[edi], dword [esi]
call fcn.004723e7
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
cmp dword [0x4b43a0], 0
jne 0x45c9e0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
push 0x49e7d8
push edi
mov dword [0x4b43a0], 1
call ebx
push str.GetCurrentConsoleFontEx
push edi
mov dword [0x4b439c], eax
call ebx
push edi
mov dword [0x4b4398], eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 2
push 0x49c1f0
push esi
lea edi, [esi + 0x40]
call fcn.00447d90
add esp, 0xc
push 0
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
push esi
mov dword [esp + 0x3c], 4
call fcn.004384e0
add esp, 0x14
push 4
mov ebx, 0x10
add dword [esi + 8], ebx
mov edi, dword [esi + 8]
push 0x49e808
push esi
add edi, 0xfffffff0
call fcn.00447d90
mov edx, dword [esi + 8]
add esp, 0xc
push 0
push edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push edi
push esi
mov dword [esp + 0x3c], 4
call fcn.004384e0
add dword [esi + 8], ebx
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 8]
add esp, 0x14
test eax, eax
je 0x45ca85
cmp eax, 1
jne 0x45ca6b
cmp dword [ecx - 0x10], 0
je 0x45ca85
cmp eax, 3
jne 0x45ca7e
fld qword [ecx - 0x10]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x45ca85
mov eax, 1
jmp 0x45ca87
xor eax, eax
add ecx, 0xffffffe0
cmp dword [0x4b439c], 0
mov dword [esi + 8], ecx
je 0x45cbfb
test eax, eax
je 0x45cbfb
call dword [sym.imp.KERNEL32.DLL_GetConsoleOutputCP]
cmp eax, 0xfde9
je 0x45cc80
mov edi, dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push 0xfffffffffffffff5
call edi
push 0xfffffffffffffff6
mov esi, eax
call edi
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_SetConsoleOutputCP]
mov edi, 0x40000
push edi
call fcn.004723e7
add eax, 0x20
push eax
call fcn.00477802
add esp, 4
push eax
call fcn.00477cd8
add esp, 8
push edi
call fcn.004723e7
add eax, 0x40
push eax
call fcn.00477802
add esp, 4
push eax
call fcn.00477cd8
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetACP]
push eax
call dword [sym.imp.KERNEL32.DLL_SetConsoleCP]
push 0x4000
call fcn.004723e7
push eax
call fcn.00477802
add esp, 4
push eax
call fcn.00477cd8
mov dword [0x4b266c], edi
mov dword [0x4b2670], edi
add esp, 8
mov edi, 0x49e810
mov dword [0x4b2668], 0x4000
call fcn.0045c4f0
test eax, eax
jne 0x45cc80
mov edi, str.SimSun_ExtB
call fcn.0045c4f0
test eax, eax
jne 0x45cc80
mov edi, str.NSimSun
call fcn.0045c4f0
test eax, eax
jne 0x45cc80
mov edi, str.MS_Gothic
call fcn.0045c4f0
test eax, eax
jne 0x45cc80
mov edi, str.MingLiU
call fcn.0045c4f0
test eax, eax
jne 0x45cc80
mov edi, str.GulimChe
call fcn.0045c4f0
test eax, eax
jne 0x45cc80
mov edi, str.Consolas
call fcn.0045c4f0
test eax, eax
jne 0x45cc80
mov edi, str.Lucida_Console
call fcn.0045c4f0
test eax, eax
jne 0x45cc80
mov edi, str.SimSun_ExtB
call fcn.0045c4f0
test eax, eax
jne 0x45cc80
call fcn.0045c4f0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetACP]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetConsoleOutputCP]
cmp esi, eax
je 0x45cc1b
push esi
call dword [sym.imp.KERNEL32.DLL_SetConsoleOutputCP]
push esi
call dword [sym.imp.KERNEL32.DLL_SetConsoleCP]
mov esi, 0x4000
push esi
call fcn.004723e7
push eax
call fcn.00477802
add esp, 4
push eax
call fcn.00477cd8
add esp, 8
push esi
call fcn.004723e7
add eax, 0x20
push eax
call fcn.00477802
add esp, 4
push eax
call fcn.00477cd8
add esp, 8
push esi
call fcn.004723e7
add eax, 0x40
push eax
call fcn.00477802
add esp, 4
push eax
call fcn.00477cd8
add esp, 8
mov dword [0x4b266c], esi
mov dword [0x4b2670], esi
mov dword [0x4b2668], esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret