Function at 0x610be3b0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x47c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x45c], eax
movzx eax, byte [ebp + 0xc]
mov byte [ebp - 0x45d], al
mov eax, 0xffffffff
mov dword [ebp - 0x464], eax
xor eax, eax
mov dword [ebp - 0x468], eax
mov eax, 0xffffffff
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym.lock_ttys::lock_ttys_unsigned_long_
cmp byte [ebp - 0x45d], 0
jne 0x610be5ca
xor edi, edi
mov ebx, dword [ebp - 0x45c]
xor esi, esi
jmp 0x610be440
mov eax, dword [ebp - 0x464]
test eax, eax
js 0x610be521
cmp byte [ebp - 0x45d], 0
je 0x610be534
cmp dword [ebx + 0x18], edi
je 0x610be47c
inc esi
add ebx, 0x9c
cmp esi, 0x7f
jg 0x610be534
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x610be410
mov dword [esp], ebx
call method.tty.open_output_mutex__
test eax, eax
je 0x610be66a
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, 1
test al, al
je 0x610be410
cmp byte [ebp - 0x45d], 0
je 0x610be430
cmp dword [ebx + 0x18], edi
jne 0x610be430
test byte [0x6110a820], 1
jne 0x610be67a
mov eax, dword [ebx + 0x88]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], 0x40
mov dword [esp + 8], eax
call sub.KERNEL32.dll_OpenProcess
mov dword [ebp - 0x468], eax
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x464], esi
je 0x610be534
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov dword [ebp - 0x464], esi
sub esp, 4
mov eax, dword [ebp - 0x464]
test eax, eax
jns 0x610be56e
mov dword [esp], 0x6110a820
mov ecx, str.int_tty_list::allocate_bool_
mov edx, 0x8000
mov dword [esp + 8], ecx
mov ebx, str.No_tty_allocated
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
cmp byte [ebp - 0x28], 0
je 0x610be592
call method.lock_ttys.release__
mov eax, dword [ebp - 0x464]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebp - 0x45d], 0
mov dword [ebp - 0x464], esi
jne 0x610be42b
cmp dword [ebp - 0x464], 0xffffffff
je 0x610be560
imul ebx, dword [ebp - 0x464], 0x9c
mov eax, dword [ebp - 0x45c]
add ebx, eax
mov dword [esp], ebx
call method.tty.init__
mov dword [ebx], 0xffffffff
mov dword [ebx + 0x18], edi
mov eax, dword [ebp - 0x464]
test eax, eax
js 0x610be4dd
cmp byte [ebp - 0x45d], 0
jne 0x610be5a0
test byte [0x6110a820], 1
jne 0x610be634
mov byte [ebp - 0x28], 0
cmp byte [ebp - 0x28], 0
jne 0x610be50e
mov eax, dword [ebp - 0x464]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x6110a820], 1
jne 0x610be6ae
mov eax, dword [ebp - 0x468]
test eax, eax
jne 0x610be588
mov eax, dword [ebp - 0x464]
mov dword [esp], eax
call sym.__ZN3tty13create_masterEi_4
sub esp, 4
jmp 0x610be588
call fcn.610ff030
test eax, eax
mov edi, eax
jne 0x610be405
lea eax, [ebp - 0x428]
mov esi, 0x400
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.dll_GetConsoleTitleA
sub esp, 8
test eax, eax
jne 0x610be6e8
test byte [0x6110a820], 1
je 0x610be4dd
mov eax, str.Cant_read_console_title
mov dword [esp + 0xc], eax
mov eax, str.int_tty_list::allocate_bool_
mov dword [esp + 8], eax
mov eax, 0x100
mov dword [esp + 4], eax
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610be4dd
mov eax, dword [ebp - 0x464]
mov dword [esp], 0x6110a820
mov dword [esp + 0x10], eax
mov eax, str.tty_d_allocated
mov dword [esp + 0xc], eax
mov eax, str.int_tty_list::allocate_bool_
mov dword [esp + 8], eax
mov eax, 0x100
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610be584
mov dword [esp], ebx
call method.tty.slave_alive__
movzx eax, al
jmp 0x610be46a
mov dword [esp + 0x14], esi
mov eax, str.int_tty_list::allocate_bool_
mov edx, str.console__x_already_associated_with_tty_d
mov dword [esp + 8], eax
mov eax, 0x100
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610be489
mov eax, dword [ebp - 0x464]
mov esi, str.int_tty_list::allocate_bool_
mov dword [esp + 0x10], edi
mov ebx, 0x100
mov edi, str.console__p_associated_with_tty_d
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610be5ad
mov eax, dword [0x61107154]
lea esi, [ebp - 0x458]
xor ebx, ebx
mov eax, dword [eax]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, str.cygwin.find.console._d
mov dword [esp + 4], eax
call sym.___small_sprintf
mov dword [esp], esi
call sub.KERNEL32.dll_SetConsoleTitleA
sub esp, 4
jmp 0x610be726
inc ebx
cmp ebx, 0x18
jg 0x610be74e
mov dword [esp], 0xa
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], 0
call fcn.610fe438
sub esp, 8
test eax, eax
mov edi, eax
je 0x610be720
lea eax, [ebp - 0x428]
mov dword [esp], eax
call sub.KERNEL32.dll_SetConsoleTitleA
sub esp, 4
mov dword [esp], 0x28
call sub.KERNEL32.dll_Sleep
sub esp, 4
test edi, edi
jne 0x610be405
test byte [0x6110a820], 1
je 0x610be4dd
mov eax, str.Cant_find_console_window
jmp 0x610be60d