Function at 0x439960
Capabilities:
Set console window title

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x96]
push ebx
mov edi, dword fs:[0x18]
sub esp, 0xb0
mov eax, dword [sym.imp.kernel32.dll_SetConsoleTitleW]
mov word [ebp - 0x8e], dx
mov dword [ebp - 0x96], 0x650074
mov dword [ebp - 0x92], 0x740073
mov dword [esp], esi
mov dword [ebp - 0xa4], eax
call eax
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x114d
mov eax, dword [edi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.SetConsoleTitleW_failed:__lu_n
call fcn.00427ef0
mov eax, dword [sym.imp.kernel32.dll_GetConsoleTitleW]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x9c], eax
call eax
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1150
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.Unexpected_string_length__error__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
lea ebx, [ebp - 0x8c]
sete al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov eax, dword [ebp - 0x9c]
call eax
sub esp, 8
mov dword [ebp - 0xa0], eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1153
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.Unexpected_string_length__error__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xa0]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 4], 0x40
mov dword [esp], ebx
mov eax, dword [ebp - 0x9c]
call eax
sub esp, 8
mov dword [ebp - 0xa0], eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1156
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.GetConsoleTitleW_failed:__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xa0]
mov dword [esp], edx
mov dword [ebp - 0xac], edx
call fcn.00427ef0
call fcn.0057d110
mov ecx, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1157
mov dword [esp], esi
mov dword [ebp - 0xa0], ecx
call ecx
mov dword [ebp - 0xa8], eax
mov dword [esp], esi
mov ecx, dword [ebp - 0xa0]
call ecx
mov ecx, dword [ebp - 0xa8]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0xac]
mov dword [esp + 4], str.Got_string_length__lu__expected__Iu_n
cmp eax, edx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1158
mov eax, ebx
call fcn.004273f0
mov edx, dword [sym.imp.msvcrt.dll_wcscmp]
mov dword [ebp - 0xa8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0xac], edx
call edx
mov edx, dword [ebp - 0xa8]
mov dword [esp + 4], str.Title___s_n
test eax, eax
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 4], 2
mov dword [esp], ebx
mov eax, dword [ebp - 0x9c]
call eax
sub esp, 8
mov dword [ebp - 0xa8], eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x115b
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.GetConsoleTitleW_failed:__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xa8]
mov dword [esp], edx
call fcn.00427ef0
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x115c
mov dword [esp], esi
mov ecx, dword [ebp - 0xa0]
call ecx
mov dword [esp], esi
mov ecx, dword [ebp - 0xa0]
mov edi, eax
call ecx
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0xa8]
mov dword [esp + 4], str.Got_string_length__lu__expected__Iu_n
cmp eax, edx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov ecx, dword [0x707bac]
test ecx, ecx
je 0x439d70
mov dword [esp + 4], 4
mov dword [esp], ebx
mov eax, dword [ebp - 0x9c]
call eax
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1160
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.GetConsoleTitleW_failed:__lu_n
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00427ef0
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1161
mov dword [esp], esi
mov eax, dword [ebp - 0xa0]
call eax
mov dword [ebp - 0xa8], eax
mov dword [esp], esi
mov eax, dword [ebp - 0xa0]
call eax
mov edx, dword [ebp - 0xa8]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 4], str.Got_string_length__lu__expected__Iu_n
sete al
mov dword [esp + 0xc], edx
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, dword [0x707bac]
test eax, eax
je 0x439dc0
mov dword [esp], 0x59158e
mov eax, dword [ebp - 0xa4]
call eax
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1165
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 4], str.SetConsoleTitleW_failed:__lu_n
mov dword [esp + 8], eax
call fcn.00427ef0
mov dword [esp], ebx
mov dword [esp + 4], 0x40
mov eax, dword [ebp - 0x9c]
call eax
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1168
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.Unexpected_string_length__error__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.00427ef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x115d
call fcn.00427180
mov eax, ebx
call fcn.004273f0
mov dword [esp + 4], 0x591582
mov dword [esp], ebx
mov edi, eax
mov eax, dword [ebp - 0xac]
call eax
mov dword [esp + 8], edi
test eax, eax
mov dword [esp + 4], str.Title___s_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
jmp 0x439c2d
mov eax, 0x1162
call fcn.00427180
mov eax, ebx
call fcn.004273f0
mov dword [esp + 4], 0x591586
mov dword [esp], ebx
mov esi, eax
mov eax, dword [ebp - 0xac]
call eax
mov dword [esp + 8], esi
test eax, eax
mov dword [esp + 4], str.Title___s_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
jmp 0x439cd5