Function at 0x140021e80
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 0x14002201d
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 0x14002204d
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400d6270]
lea r9, [0x1400d6280]
xor edx, edx
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
test eax, eax
js 0x14002204d
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::h3977f28ec8dff8a4
mov rdi, qword [rsp + 0x48]
mov r15d, 2
cmp rdi, 2
je 0x14002205d
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 0x14002221c
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 0x14002221c
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 0x14002205d
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 0x140022149
mov r15d, 2
cmp edi, 1
ja 0x14002205d
call fcn.1400d0f44
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 0x140022149
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 0x1400221db
jmp 0x140022208
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::hd2b8553b561af9cd
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 0x140022208
lea rcx, [rsp + 0x48]
mov rdx, rsi
xor r8d, r8d
call sym.sysinfo::windows::component::Connection::temperature::hf0b8e5f1c8c6dadb
cmp dword [rsp + 0x4c], 2
je 0x140022208
movss xmm0, dword [rsp + 0x48]
movss dword [rsi + 0x58], xmm0
ucomiss xmm0, dword [rsi + 0x5c]
jbe 0x140022208
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 0x14002222f
test r14, r14
je 0x14002222f
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
test r12, r12
je 0x140022242
test rbx, rbx
je 0x140022242
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
test rdi, rdi
mov rdi, qword [rsp + 0xb0]
je 0x14002225d
test rdi, rdi
je 0x14002225d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test bpl, bpl
je 0x14002226c
call fcn.1400d0f44
jmp 0x14002205d
xor ebp, ebp
jmp 0x14002205d