Function at 0x610be7a0
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 0x610be9ba
xor edi, edi
mov ebx, dword [ebp - 0x45c]
xor esi, esi
jmp 0x610be830
mov eax, dword [ebp - 0x464]
test eax, eax
js 0x610be911
cmp byte [ebp - 0x45d], 0
je 0x610be924
cmp dword [ebx + 0x18], edi
je 0x610be86c
inc esi
add ebx, 0x9c
cmp esi, 0x7f
jg 0x610be924
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x610be800
mov dword [esp], ebx
call method.tty.open_output_mutex__
test eax, eax
je 0x610bea5a
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, 1
test al, al
je 0x610be800
cmp byte [ebp - 0x45d], 0
je 0x610be820
cmp dword [ebx + 0x18], edi
jne 0x610be820
test byte [0x6110c854], 1
jne 0x610bea6a
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 0x610be924
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 0x610be95e
mov dword [esp], 0x6110c854
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 0x610be982
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 0x610be81b
cmp dword [ebp - 0x464], 0xffffffff
je 0x610be950
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 0x610be8cd
cmp byte [ebp - 0x45d], 0
jne 0x610be990
test byte [0x6110c854], 1
jne 0x610bea24
mov byte [ebp - 0x28], 0
cmp byte [ebp - 0x28], 0
jne 0x610be8fe
mov eax, dword [ebp - 0x464]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x6110c854], 1
jne 0x610bea9e
mov eax, dword [ebp - 0x468]
test eax, eax
jne 0x610be978
mov eax, dword [ebp - 0x464]
mov dword [esp], eax
call sym.__ZN3tty13create_masterEi_4
sub esp, 4
jmp 0x610be978
call fcn.61101030
test eax, eax
mov edi, eax
jne 0x610be7f5
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 0x610bead8
test byte [0x6110c854], 1
je 0x610be8cd
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], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610be8cd
mov eax, dword [ebp - 0x464]
mov dword [esp], 0x6110c854
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 0x610be974
mov dword [esp], ebx
call method.tty.slave_alive__
movzx eax, al
jmp 0x610be85a
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], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610be879
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], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610be99d
mov eax, dword [0x61109170]
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 0x610beb16
inc ebx
cmp ebx, 0x18
jg 0x610beb3e
mov dword [esp], 0xa
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], 0
call fcn.61100438
sub esp, 8
test eax, eax
mov edi, eax
je 0x610beb10
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 0x610be7f5
test byte [0x6110c854], 1
je 0x610be8cd
mov eax, str.Cant_find_console_window
jmp 0x610be9fd