Function at 0x140027730
Capabilities:
Set console window title

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.1403115c4
mov rbx, rax
mov qword [rsp + 0x78], rax
lea rax, vtable.bbees::Api.0
mov qword [rbx], rax
mov qword [rbx + 8], rdi
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
call fcn.14030f908
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbx + 0x30], rdx
xor r14d, r14d
mov qword [rbx + 0x38], r14
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], r14
mov qword [rbx + 0x50], r14
mov qword [rbx + 0x58], r14
mov qword [rbx + 0x60], r14
mov byte [rbx + 0x68], r14b
mov qword [rsp + 0x70], rbx
mov rcx, qword [rdi + 0x10]
add rcx, 0x10
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x1400277e0
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x1400277ea
lea r8, [rsp + 0x70]
call fcn.140026e70
mov rax, qword [rdi + 0x10]
mov rdx, qword [rax + 8]
add rdx, 0x78
mov rcx, rbx
call fcn.14015be10
nop
mov rax, qword [rdi + 0x10]
mov qword [rax], rbx
lea r8, [rdi + 8]
mov qword [rsp + 0x70], r8
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
add rcx, 0x40
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14002782e
mov qword [rdx], r8
add qword [rcx + 8], 8
jmp 0x140027838
lea r8, [rsp + 0x70]
call fcn.140026e70
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx + 0xb8]
call fcn.14002c860
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140027863
cmp byte [rcx + 9], 0
je 0x140027863
mov al, 1
jmp 0x140027865
xor al, al
test al, al
je 0x140027875
mov byte [0x14049fac0], 1
jmp 0x140027a05
mov ecx, 0x18
call fcn.1403115c4
mov rbx, rax
mov qword [rsp + 0x80], rax
mov rcx, qword [rdi + 0x10]
mov rbp, qword [rcx + 8]
lea rax, vtable.bbees::ConsoleLog.0
mov qword [rbx], rax
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov ecx, 1
call fcn.140333874
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
sub eax, 1
je 0x1400278c9
sub eax, 1
je 0x1400278da
sub eax, 1
je 0x1400278ec
xor al, al
test al, al
jne 0x1400278f0
mov byte [0x1404962b8], al
jmp 0x1400279c9
lea rdx, [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1400278c9
mov al, 1
jmp 0x1400278cb
mov ecx, 0x158
call fcn.1403115c4
mov qword [rbx + 8], rax
mov rcx, qword [0x1404a49a0]
test rcx, rcx
jne 0x140027926
call fcn.14016ae10
test eax, eax
je 0x140027918
mov rcx, r14
jmp 0x140027926
lea rcx, [0x1404a49b0]
mov qword [0x1404a49a0], rcx
mov r8d, 1
mov rdx, qword [rbx + 8]
call fcn.14015d390
test eax, eax
jns 0x140027945
mov byte [0x1404962b8], 0
jmp 0x1400279c9
xor edx, edx
mov rcx, qword [rbx + 8]
call fcn.14015d930
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14002799b
mov dword [rsp + 0x70], r14d
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14002799b
mov edx, dword [rsp + 0x70]
and edx, 0xffffffbf
mov dword [rsp + 0x70], edx
bts edx, 7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp byte [rbp + 0xc8], 0
je 0x1400279c9
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0xc8]
call fcn.14002bc00
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x28]
call fcn.140311600
nop
mov rcx, qword [0x14049fac8]
test rcx, rcx
je 0x140027a05
mov qword [rsp + 0x80], rbx
add rcx, 0x4050
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x1400279f8
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x140027a05
lea r8, [rsp + 0x80]
call fcn.140026e70
mov rax, qword [rdi + 0x10]
mov rdx, qword [rax + 8]
cmp qword [rdx + 0xa8], 0
je 0x140027aa5
mov ecx, 0x18
call fcn.1403115c4
mov rbx, rax
mov qword [rsp + 0x70], rax
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rcx + 8]
mov rdx, qword [rdx + 0xa8]
lea rax, vtable.bbees::FileLog.0
mov qword [rbx], rax
lea rcx, [rbx + 8]
mov word [rcx], 0xa0d
mov byte [rcx + 2], 0
mov dword [rcx + 4], 0xffffffff
mov qword [rcx + 8], r14
call fcn.140026650
nop
mov rcx, qword [0x14049fac8]
test rcx, rcx
je 0x140027aa5
mov qword [rsp + 0x70], rbx
add rcx, 0x4050
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x140027a9b
mov qword [rdx], rbx
add qword [rcx + 8], 8
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea r8, [rsp + 0x70]
call fcn.140026e70
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret