Function at 0x14001c760
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, 0x68
call fcn.140128f74
mov rbx, rax
mov qword [rsp + 0x78], rax
lea rax, vtable.xmrig::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
xor r14d, r14d
mov qword [rbx + 0x30], r14
mov qword [rbx + 0x38], r14
call fcn.1401271dc
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbx + 0x40], rdx
mov qword [rbx + 0x48], r14
mov qword [rbx + 0x50], r14
mov qword [rbx + 0x58], r14
mov qword [rbx + 0x60], r14
mov qword [rsp + 0x70], rbx
mov rcx, qword [rdi + 0x10]
add rcx, 0x10
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14001c80c
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x14001c816
lea r8, [rsp + 0x70]
call fcn.14001bd70
mov rax, qword [rdi + 0x10]
mov rdx, qword [rax + 8]
add rdx, 0x68
mov rcx, rbx
call fcn.1400e5c00
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, 0x50
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14001c85a
mov qword [rdx], r8
add qword [rcx + 8], 8
jmp 0x14001c864
lea r8, [rsp + 0x70]
call fcn.14001bd70
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx + 0xa8]
call fcn.140020e50
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001c88f
cmp byte [rcx + 9], 0
je 0x14001c88f
mov al, 1
jmp 0x14001c891
xor al, al
test al, al
je 0x14001c8a1
mov byte [0x1401d6504], 1
jmp 0x14001ca31
mov ecx, 0x18
call fcn.140128f74
mov rbx, rax
mov qword [rsp + 0x80], rax
mov rcx, qword [rdi + 0x10]
mov rbp, qword [rcx + 8]
lea rax, vtable.xmrig::ConsoleLog.0
mov qword [rbx], rax
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov ecx, 1
call fcn.14014ace8
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
sub eax, 1
je 0x14001c8f5
sub eax, 1
je 0x14001c906
sub eax, 1
je 0x14001c918
xor al, al
test al, al
jne 0x14001c91c
mov byte [0x1401cee00], al
jmp 0x14001c9f5
lea rdx, [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14001c8f5
mov al, 1
jmp 0x14001c8f7
mov ecx, 0x158
call fcn.140128f74
mov qword [rbx + 8], rax
mov rcx, qword [0x1401dd8d0]
test rcx, rcx
jne 0x14001c952
call fcn.1400f4cb0
test eax, eax
je 0x14001c944
mov rcx, r14
jmp 0x14001c952
lea rcx, [0x1401dd8e0]
mov qword [0x1401dd8d0], rcx
mov r8d, 1
mov rdx, qword [rbx + 8]
call fcn.1400e71a0
test eax, eax
jns 0x14001c971
mov byte [0x1401cee00], 0
jmp 0x14001c9f5
xor edx, edx
mov rcx, qword [rbx + 8]
call fcn.1400e7740
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 0x14001c9c7
mov dword [rsp + 0x70], r14d
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14001c9c7
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 + 0xb8], 0
je 0x14001c9f5
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0xb8]
call fcn.140020aa0
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x28]
call fcn.140128fb0
nop
mov rcx, qword [0x1401d6508]
test rcx, rcx
je 0x14001ca31
mov qword [rsp + 0x80], rbx
add rcx, 0x4050
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14001ca24
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x14001ca31
lea r8, [rsp + 0x80]
call fcn.14001bd70
mov rax, qword [rdi + 0x10]
mov rdx, qword [rax + 8]
cmp qword [rdx + 0x98], 0
je 0x14001cae0
mov ecx, 0x18
call fcn.140128f74
mov rbx, rax
mov qword [rsp + 0x70], rax
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rcx + 8]
mov rdx, qword [rdx + 0x98]
lea rax, vtable.xmrig::FileLog.0
mov qword [rbx], rax
lea rcx, [rbx + 8]
movzx r8d, word [0x14019cc38]
mov word [rcx], r8w
movzx r8d, byte [0x14019cc3a]
mov byte [rcx + 2], r8b
mov dword [rcx + 4], 0xffffffff
mov qword [rcx + 8], r14
call fcn.14001b3b0
nop
mov rcx, qword [0x1401d6508]
test rcx, rcx
je 0x14001cae0
mov qword [rsp + 0x70], rbx
add rcx, 0x4050
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14001cad6
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.14001bd70
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret