Function at 0x140026f70
Capabilities:
Set console window title

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14049e608]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.1403195d4
mov rbx, rax
mov qword [rsp + 0x48], rax
lea rax, vtable.xmrig::Api.0
mov qword [rbx], rax
mov qword [rbx + 8], rsi
xorps xmm0, xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
call fcn.140317a80
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 r15d, r15d
mov qword [rbx + 0x38], r15
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x48], r15
mov qword [rbx + 0x50], r15
mov qword [rbx + 0x58], r15
mov qword [rbx + 0x60], r15
mov byte [rbx + 0x68], r15b
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsi + 0x10]
add rcx, 0x10
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x140027041
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x14002704b
lea r8, [rsp + 0x30]
call fcn.140026630
mov rax, qword [rsi + 0x10]
mov rdx, qword [rax + 8]
add rdx, 0x78
mov rcx, rbx
call fcn.140160850
nop
mov rax, qword [rsi + 0x10]
mov qword [rax], rbx
lea r8, [rsi + 8]
mov qword [rsp + 0x30], r8
mov rax, qword [rsi + 0x10]
mov rcx, qword [rax]
add rcx, 0x40
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14002708f
mov qword [rdx], r8
add qword [rcx + 8], 8
jmp 0x140027099
lea r8, [rsp + 0x30]
call fcn.140026630
mov rax, qword [rsi + 0x10]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx + 0xb8]
call fcn.14002c460
mov rax, qword [rsi + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400270c4
cmp byte [rcx + 9], 0
je 0x1400270c4
mov al, 1
jmp 0x1400270c6
xor al, al
test al, al
je 0x1400270d6
mov byte [0x140732904], 1
jmp 0x1400272ad
mov ecx, 0x18
call fcn.1403195d4
mov rdi, rax
mov qword [rsp + 0x48], rax
mov rcx, qword [rsi + 0x10]
mov r14, qword [rcx + 8]
lea rax, vtable.xmrig::ConsoleLog.0
mov qword [rdi], rax
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov ecx, 1
call fcn.1402e0830
cmp eax, 0xe
je 0x14002711a
cmp eax, 7
je 0x14002711a
xor al, al
jmp 0x14002711c
mov al, 1
test al, al
je 0x140027270
mov ecx, 0x158
call fcn.1403195d4
mov rbx, rax
mov qword [rdi + 8], rax
call fcn.1402e0f10
mov rcx, rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
call fcn.1402e4a50
test eax, eax
js 0x140027270
xor edx, edx
mov rcx, qword [rdi + 8]
call fcn.1402e4f60
mov rax, qword [rdi + 8]
mov qword [rdi + 0x10], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400271aa
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1400271aa
mov edx, dword [rsp + 0x30]
and edx, 0xffffffbf
mov dword [rsp + 0x30], edx
bts edx, 7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp byte [r14 + 0xc8], 0
je 0x140027277
cmp qword [r14 + 0xd0], 0
jne 0x1400271f0
mov ecx, reloc.WS2_32.dll_listen
call fcn.140319c08
mov rbx, rax
movsd xmm0, qword [str.XMRig_6.21.1]
movsd qword [rax], xmm0
mov ecx, dword [0x140451e50]
mov dword [rax + 8], ecx
movzx ecx, byte [0x140451e54]
mov byte [rax + 0xc], cl
jmp 0x14002725d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov ecx, 0x40
call fcn.140003d40
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
mov rdx, qword [r14 + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.140016b60
nop
mov r8, qword [rsp + 0x38]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1400194f0
mov edx, 0x40
mov rcx, qword [rsp + 0x38]
call fcn.140319610
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, rbx
call fcn.140319610
jmp 0x140027277
mov byte [0x14049f320], 0
mov rcx, qword [0x140732908]
test rcx, rcx
je 0x1400272ad
mov qword [rsp + 0x48], rdi
add rcx, 0x4050
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x1400272a3
mov qword [rdx], rdi
add qword [rcx + 8], 8
jmp 0x1400272ad
lea r8, [rsp + 0x48]
call fcn.140026630
mov rax, qword [rsi + 0x10]
mov rdx, qword [rax + 8]
cmp qword [rdx + 0xa8], 0
je 0x140027443
mov ecx, 0x18
call fcn.1403195d4
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rcx + 8]
mov rdi, qword [rdx + 0xa8]
lea rax, vtable.xmrig::FileLog.0
mov qword [rbx], rax
mov word [rbx + 8], 0xa0d
mov byte [rbx + 0xa], 0
mov dword [rbx + 0xc], 0xffffffff
mov qword [rbx + 0x10], r15
test rdi, rdi
je 0x14002740d
xor edx, edx
mov r8d, 0x1c8
lea rcx, [rsp + 0x70]
call fcn.140338240
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov ecx, 0x40
call fcn.140003d40
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140016b60
nop
mov r8, qword [rsp + 0x38]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1400194f0
mov edx, 0x40
mov rcx, qword [rsp + 0x38]
call fcn.140319610
call fcn.1402e0f10
mov rcx, rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x1a4
mov r9d, 0x101
mov rdi, qword [rsp + 0x50]
mov r8, rdi
lea rdx, [rsp + 0x70]
call fcn.1402e9400
mov dword [rbx + 0xc], eax
cmp qword [rbp - 8], 0
jl 0x1400273f3
test eax, eax
js 0x1400273f3
lea rcx, [rsp + 0x70]
call fcn.1402e9650
call fcn.1402e0f10
mov rcx, rax
xor r9d, r9d
mov r8, rdi
lea rdx, [rsp + 0x70]
call fcn.1402e9710
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0x10], rax
lea rcx, [rsp + 0x70]
call fcn.1402e9650
jmp 0x140027404
lea rcx, [rsp + 0x70]
call fcn.1402e9650
mov dword [rbx + 0xc], 0xffffffff
mov rcx, rdi
call fcn.140319610
nop
mov rcx, qword [0x140732908]
test rcx, rcx
je 0x140027443
mov qword [rsp + 0x48], rbx
add rcx, 0x4050
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x140027439
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x140027443
lea r8, [rsp + 0x48]
call fcn.140026630
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1403195b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret