Function at 0x4583c0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push edi
xor eax, eax
push 0xfffffffffffffff6
mov dword [esp + 0x1c], eax
lea edx, [eax + 0xa]
mov dword [esp + 0x20], 0x32000a
call esi
mov ebx, eax
push 0xfffffffffffffff5
mov dword [esp + 0x14], ebx
call esi
mov edi, eax
push 0xfffffffffffffff4
mov dword [esp + 0x10], edi
call esi
cmp dword [0x4ac664], 0
mov dword [esp + 0x14], eax
je 0x458418
test ebx, ebx
je 0x458418
test edi, edi
je 0x458418
test eax, eax
jne 0x4585a1
mov edi, dword [sym.imp.KERNEL32.DLL_GetConsoleWindow]
mov dword [0x4ac664], 0
call edi
mov esi, eax
test esi, esi
je 0x45847d
push 0x49837c
call fcn.0046dcae
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_FlushConsoleInputBuffer]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x45845a
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x458463
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 0x458490
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edi
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov edi, str._STUDIO_INVOKED
mov eax, 0xffffd8ee
mov esi, ebx
call fcn.0041ed50
mov esi, dword [ebx + 8]
add esi, 0xfffffff0
cmp esi, 0x494988
je 0x458565
mov eax, dword [esi + 8]
cmp eax, 4
je 0x458507
cmp eax, 3
jne 0x458565
cmp eax, 4
je 0x458507
cmp eax, 7
jne 0x4584e4
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x4584e4
add eax, 0x18
jmp 0x45850c
mov edi, ebx
call fcn.004337c0
test eax, eax
je 0x45850c
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x458501
mov eax, ebx
call fcn.00433590
mov esi, dword [ebx + 8]
sub esi, 0x10
mov eax, dword [esi]
add eax, 0x10
mov ecx, 0x495e8c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458531
test dl, dl
je 0x45852d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458531
add eax, 2
add ecx, 2
test dl, dl
jne 0x458511
xor eax, eax
jmp 0x458536
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x458565
mov edx, dword [esp + 0x10]
push eax
push edx
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 0x4582c0
call dword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
mov esi, dword [esp + 0x10]
add dword [ebx + 8], 0xfffffff0
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push 0xfffffffffffffff6
call esi
push 0xfffffffffffffff5
mov dword [esp + 0x14], eax
call esi
push 0xfffffffffffffff4
mov dword [esp + 0x10], eax
call esi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], eax
jmp 0x4585a4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
add eax, 0x20
cmp eax, dword [ebx + 8]
jae 0x4585bc
cmp eax, 0x494988
je 0x4585bc
cmp dword [eax + 8], 0
jg 0x4585c4
mov ebx, dword [0x4ae34c]
jmp 0x4585f0
mov esi, dword [ebp + 8]
push 3
xor ebx, ebx
mov eax, esi
call fcn.0041e940
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4585f0
mov eax, dword [0x494904]
push eax
lea edi, [ebx + 3]
call fcn.004214c0
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, dword [ebp + 8]
call fcn.0041eb70
push 0xffffffffffffffff
push esi
call fcn.0041e6f0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.DLL_SetConsoleTitleW]
add dword [esi + 8], 0xfffffff0
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_SetConsoleWindowInfo]
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.DLL_SetConsoleMode]
push 0xa7
push edx
call ebx
push 3
push edi
call ebx
cmp dword [0x4ac664], 0
jne 0x458732
cmp dword [0x4ae378], 0
jne 0x458732
push 0x4000
push edi
call fcn.004734f2
add esp, 8
cmp eax, 0xffffffff
je 0x458487
push 1
push eax
call fcn.00471768
push 0x493eb4
push 1
call fcn.00473be9
mov esi, eax
mov ecx, 8
lea edi, [esp + 0x30]
mov dword [0x4ae378], eax
rep movsd dword es:[edi], dword [esi]
call fcn.0046da1e
lea edi, [eax + 0x20]
mov eax, dword [esp + 0x20]
push 0x4000
mov ecx, 8
lea esi, [esp + 0x34]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004734f2
push 0
push eax
call fcn.00471768
push 0x498380
push 0
call fcn.00473be9
mov esi, eax
mov ecx, 8
lea edi, [esp + 0x48]
mov dword [0x4ae37c], eax
rep movsd dword es:[edi], dword [esi]
call fcn.0046da1e
mov edi, eax
mov ecx, 8
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
push 0x4000
push ecx
call fcn.004734f2
push 2
push eax
call fcn.00471768
push 0x493eb4
push 2
call fcn.00473be9
mov esi, eax
mov ecx, 8
lea edi, [esp + 0x60]
add esp, 0x40
mov dword [0x4ae380], eax
rep movsd dword es:[edi], dword [esi]
call fcn.0046da1e
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 [0x4ae374], 0
jne 0x458772
push 0x498384
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
push str.SetCurrentConsoleFontEx
push edi
mov dword [0x4ae374], 1
call ebx
push str.GetCurrentConsoleFontEx
push edi
mov dword [0x4ae370], eax
call ebx
mov dword [0x4ae36c], eax
push 2
push 0x495e98
push esi
lea edi, [esi + 0x40]
call fcn.00442ed0
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.00433a60
add esp, 0x14
push 4
mov ebx, 0x10
add dword [esi + 8], ebx
mov edi, dword [esi + 8]
push str.utf8
push esi
add edi, 0xfffffff0
call fcn.00442ed0
mov ecx, dword [esi + 8]
add esp, 0xc
push 0
push ecx
lea edx, [esp + 0x28]
push edx
push edi
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 4
call fcn.00433a60
add dword [esi + 8], ebx
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 8]
add esp, 0x14
test eax, eax
je 0x458817
cmp eax, 1
jne 0x4587fd
cmp dword [ecx - 0x10], 0
je 0x458817
cmp eax, 3
jne 0x458810
fld qword [ecx - 0x10]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x458817
mov eax, 1
jmp 0x458819
xor eax, eax
add ecx, 0xffffffe0
cmp dword [0x4ae370], 0
mov dword [esi + 8], ecx
je 0x45897b
test eax, eax
je 0x45897b
call dword [sym.imp.KERNEL32.DLL_GetConsoleOutputCP]
cmp eax, 0xfde9
je 0x458a00
mov esi, dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
mov edi, eax
call esi
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_SetConsoleOutputCP]
mov esi, 0x40000
push esi
call fcn.0046da1e
add eax, 0x20
push eax
call fcn.00472b62
add esp, 4
push eax
call fcn.00473038
add esp, 8
push esi
call fcn.0046da1e
add eax, 0x40
push eax
call fcn.00472b62
add esp, 4
push eax
call fcn.00473038
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetACP]
push eax
call dword [sym.imp.KERNEL32.DLL_SetConsoleCP]
push 0x4000
call fcn.0046da1e
push eax
call fcn.00472b62
add esp, 4
push eax
call fcn.00473038
mov dword [0x4ac65c], esi
mov dword [0x4ac660], esi
add esp, 8
mov esi, str.SimSun_ExtB
mov dword [0x4ac658], 0x4000
call fcn.004582f0
test eax, eax
jne 0x458a00
mov esi, str.NSimSun
call fcn.004582f0
test eax, eax
jne 0x458a00
mov esi, str.MS_Gothic
call fcn.004582f0
test eax, eax
jne 0x458a00
mov esi, str.MingLiU
call fcn.004582f0
test eax, eax
jne 0x458a00
mov esi, str.GulimChe
call fcn.004582f0
test eax, eax
jne 0x458a00
mov esi, str.Consolas
call fcn.004582f0
test eax, eax
jne 0x458a00
mov esi, str.Lucida_Console
call fcn.004582f0
test eax, eax
jne 0x458a00
mov esi, str.SimSun_ExtB
call fcn.004582f0
test eax, eax
jne 0x458a00
call fcn.004582f0
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 0x45899b
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.0046da1e
push eax
call fcn.00472b62
add esp, 4
push eax
call fcn.00473038
add esp, 8
push esi
call fcn.0046da1e
add eax, 0x20
push eax
call fcn.00472b62
add esp, 4
push eax
call fcn.00473038
add esp, 8
push esi
call fcn.0046da1e
add eax, 0x40
push eax
call fcn.00472b62
add esp, 4
push eax
call fcn.00473038
add esp, 8
mov dword [0x4ac65c], esi
mov dword [0x4ac660], esi
mov dword [0x4ac658], esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret