Function at 0x14021eb40
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov rsi, rcx
mov r15, qword [rcx]
cmp r15, 2
jne 0x14021ecdd
xor ecx, ecx
xor edx, edx
call sub.ole32.dll_CoInitializeEx
mov edi, eax
cmp eax, 2
setb bl
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
xor ecx, ecx
mov edx, 0xffffffff
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoInitializeSecurity
test eax, eax
js 0x14021ed0d
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rcx, [0x14032ed00]
lea r9, [0x14032ed10]
xor edx, edx
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
test eax, eax
js 0x14021ed0d
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xf0], 1
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x110], 0
mov byte [rsp + 0x120], bl
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0xf0]
call sym.sysinfo::windows::component::Connection::connect_server::h83357c48e9522e66
mov rdi, qword [rsp + 0x48]
mov r15d, 2
cmp rdi, 2
je 0x14021ed1d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xb0], rax
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
movzx ebp, byte [rsp + 0x78]
test r12, r12
je 0x14021eedc
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x14021eedc
lea rax, [rsp + 0x79]
mov ecx, dword [rax]
mov eax, dword [rax + 3]
mov dword [rsp + 0x83], eax
mov dword [rsp + 0x80], ecx
mov r15, rdi
mov rdi, qword [rsp + 0xb0]
jmp 0x14021ed1d
movups xmm0, xmmword [rsi + 8]
movups xmm1, xmmword [rsi + 0x18]
movups xmm2, xmmword [rsi + 0x28]
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsi], 2
jmp 0x14021ee09
mov r15d, 2
cmp edi, 1
ja 0x14021ed1d
call fcn.1402dad9c
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x20], r13
mov qword [rsi + 0x28], r14
mov byte [rsi + 0x30], bpl
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x83]
mov dword [rsi + 0x31], eax
mov dword [rsi + 0x34], ecx
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov r8, qword [rsi + 0x20]
mov r9, qword [rsi + 0x28]
mov qword [rsp + 0xa0], r9
movzx r9d, byte [rsi + 0x30]
mov byte [rsp + 0xa8], r9b
mov r9d, dword [rsi + 0x31]
mov dword [rsp + 0xa9], r9d
movzx r9d, word [rsi + 0x35]
mov word [rsp + 0xad], r9w
movzx r9d, byte [rsi + 0x37]
mov byte [rsp + 0xaf], r9b
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x98], r8
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
mov qword [rsi], 2
cmp r15d, 2
jne 0x14021ee09
mov qword [rsp + 0x48], 2
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x30], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
mov rax, qword [rsp + 0x50]
mov qword [rsi + 8], rax
cmp dword [rsi], 2
jne 0x14021ee9b
jmp 0x14021eec8
mov qword [rsp + 0xb8], r15
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
movaps xmm0, xmmword [rsp + 0xa0]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rcx
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xd8], r8
movups xmmword [rsp + 0xe0], xmm0
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0xb8]
call sym.sysinfo::windows::component::Connection::exec_query::h532546ea6d43888a
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x30], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
movups xmm2, xmmword [rsp + 0x68]
movups xmmword [rsi + 0x20], xmm2
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp dword [rsi], 2
je 0x14021eec8
lea rcx, [rsp + 0x48]
mov rdx, rsi
xor r8d, r8d
call sym.sysinfo::windows::component::Connection::temperature::hc93aa4900dbc6333
cmp dword [rsp + 0x4c], 2
je 0x14021eec8
movss xmm0, dword [rsp + 0x48]
movss dword [rsi + 0x58], xmm0
ucomiss xmm0, dword [rsi + 0x5c]
jbe 0x14021eec8
movss dword [rsi + 0x5c], xmm0
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r13, r13
je 0x14021eeef
test r14, r14
je 0x14021eeef
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
test r12, r12
je 0x14021ef02
test rbx, rbx
je 0x14021ef02
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
test rdi, rdi
mov rdi, qword [rsp + 0xb0]
je 0x14021ef1d
test rdi, rdi
je 0x14021ef1d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test bpl, bpl
je 0x14021ef2c
call fcn.1402dad9c
jmp 0x14021ed1d
xor ebp, ebp
jmp 0x14021ed1d