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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r15, qword [case.0x140038a0b.76]
mov rax, qword [r15]
xor ecx, ecx
cmp rax, 4
setne cl
mov eax, 0xff
cmovbe eax, ecx
cmp al, 0xff
je 0x14003b092
movzx eax, al
test eax, eax
jne 0x14003b0db
lea rax, str.Calling_CoCreateInstance_for_CLSID_WbemLocator
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 1
lea rax, [0x1401e7038]
mov qword [rbp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rsp + 0x20], 0
lea r8, str.wmi::connectionC:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fwmi_0.13.3_srcconnection.rs
lea rcx, [rbp + 0x28]
mov edx, 4
mov r9d, 0xb9
call fcn.140045aa0
mov qword [rbp - 0x18], 0
mov qword [rbp + 0x28], 1
mov qword [rbp + 0x30], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401e7160]
lea r9, [0x1401e7038]
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14003b138
mov r14, qword [rbp - 0x18]
test r14, r14
je 0x14003b32c
mov r12b, 1
cmp qword [rbp + 0x28], 0
jne 0x14003b153
jmp 0x14003b340
mov ecx, eax
call fcn.140044840
mov r14, rax
mov r13d, edx
xor r12d, r12d
cmp qword [rbp + 0x28], 0
je 0x14003b340
test r12b, r12b
je 0x14003b352
mov qword [rbp + 0x58], r14
mov rax, qword [r15]
cmp rax, 4
lea r12, [rbp - 0x18]
jb 0x14003b1cf
lea rax, [rbp + 0x58]
mov qword [rbp - 0x18], rax
lea rax, [0x140043c20]
mov qword [rbp - 0x10], rax
lea rax, [0x1401e7180]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 1
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 1
mov qword [rsp + 0x20], 0
lea r8, str.wmi::connectionC:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fwmi_0.13.3_srcconnection.rs
lea rcx, [rbp + 0x28]
mov edx, 4
mov r9d, 0xbd
call fcn.140045aa0
mov r14, qword [rbp + 0x58]
mov qword [rbp + 8], r14
mov rax, qword [r15]
xor ecx, ecx
cmp rax, 4
setne cl
mov eax, 0xff
cmovbe eax, ecx
cmp al, 0xff
je 0x14003b1f2
movzx eax, al
test eax, eax
jne 0x14003b23b
lea rax, str.Calling_ConnectServer
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 1
lea rax, [0x1401e7038]
mov qword [rbp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rsp + 0x20], 0
lea r8, str.wmi::connectionC:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fwmi_0.13.3_srcconnection.rs
lea rcx, [rbp + 0x28]
mov edx, 4
mov r9d, 0xc3
call fcn.140045aa0
mov rcx, rdi
mov rdx, rbx
call fcn.140044f00
mov qword [rbp], rax
call fcn.140044ef0
mov qword [rbp + 0x18], rax
call fcn.140044ef0
mov qword [rbp + 0x20], rax
call fcn.140044ef0
mov qword [rbp + 0x58], rax
call fcn.140044ef0
mov qword [rbp - 0x18], rax
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0x80
lea rcx, [rbp + 0x28]
lea rdx, [rbp + 8]
mov r8, rbp
lea r9, [rbp + 0x18]
call fcn.140040d40
cmp qword [rbp + 0x28], 0
mov rdi, qword [rbp + 0x30]
je 0x14003b397
mov eax, dword [rbp + 0x38]
mov qword [rbp + 0x28], rdi
mov dword [rbp + 0x30], eax
lea rcx, [rbp + 0x28]
call fcn.1400444c0
mov edi, eax
cmp qword [rbp + 0x28], 0
je 0x14003b2de
lea rcx, [rbp + 0x28]
call fcn.140043e40
lea rcx, [rbp - 0x18]
call fcn.1400450d0
lea rcx, [rbp + 0x58]
call fcn.1400450d0
lea rcx, [rbp + 0x20]
call fcn.1400450d0
lea rcx, [rbp + 0x18]
call fcn.1400450d0
mov rcx, rbp
call fcn.1400450d0
movzx eax, byte [rbp + 0x17]
mov byte [rsi + 3], al
movzx eax, word [rbp + 0x15]
mov word [rsi + 1], ax
mov dword [rsi + 4], edi
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rsi + 0x10], xmm0
mov byte [rsi], 0
jmp 0x14003b546
xor r14d, r14d
xor r13d, r13d
xor r12d, r12d
cmp qword [rbp + 0x28], 0
jne 0x14003b153
lea rcx, [rbp + 0x30]
call fcn.140043e40
test r12b, r12b
jne 0x14003b15c
mov qword [rbp + 0x28], r14
mov dword [rbp + 0x30], r13d
lea rcx, [rbp + 0x28]
call fcn.1400444c0
mov edi, eax
cmp qword [rbp + 0x28], 0
je 0x14003b375
lea rcx, [rbp + 0x28]
call fcn.140043e40
movzx eax, byte [rbp + 0x22]
mov byte [rsi + 3], al
movzx eax, word [rbp + 0x20]
mov word [rsi + 1], ax
mov dword [rsi + 4], edi
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rsi + 0x10], xmm0
mov byte [rsi], 0
jmp 0x14003b54f
mov qword [rbp - 0x20], rdi
lea rbx, [rbp - 0x18]
mov rcx, rbx
call fcn.1400450d0
lea rcx, [rbp + 0x58]
call fcn.1400450d0
lea rcx, [rbp + 0x20]
call fcn.1400450d0
lea rcx, [rbp + 0x18]
call fcn.1400450d0
mov rax, qword [r15]
cmp rax, 3
jbe 0x14003b42d
lea rax, [rbp - 0x20]
mov qword [rbp - 0x18], rax
lea rax, [0x140043c60]
mov qword [rbp - 0x10], rax
lea rax, str.Got_service
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 1
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x40], 1
mov qword [rsp + 0x20], 0
lea r8, str.wmi::connectionC:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fwmi_0.13.3_srcconnection.rs
lea rcx, [rbp + 0x28]
mov edx, 4
mov r9d, 0xd3
call fcn.140045aa0
mov rdi, qword [rbp - 0x20]
mov rcx, rbp
call fcn.1400450d0
mov qword [rbp - 0x30], rdi
mov rax, qword [r15]
xor ecx, ecx
cmp rax, 4
setne cl
mov eax, 0xff
cmovbe eax, ecx
cmp al, 0xff
je 0x14003b458
movzx eax, al
test eax, eax
jne 0x14003b4a1
lea rax, [0x1401e7070]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 1
lea rax, [0x1401e7038]
mov qword [rbp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rsp + 0x20], 0
lea r8, str.wmi::connectionC:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fwmi_0.13.3_srcconnection.rs
lea rcx, [rbp + 0x28]
mov edx, 4
mov r9d, 0xa5
call fcn.140045aa0
mov qword [rbp + 0x28], 1
mov qword [rbp + 0x30], rdi
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x14003b4ef
mov qword [rsi + 8], rdi
mov byte [rsi], 0x12
jmp 0x14003b546
mov ecx, eax
call fcn.140044840
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], edx
lea rcx, [rbp + 0x28]
call fcn.1400444c0
mov edi, eax
cmp qword [rbp + 0x28], 0
je 0x14003b518
lea rcx, [rbp + 0x28]
call fcn.140043e40
movzx eax, byte [rbp + 0x5a]
mov byte [rsi + 3], al
movzx eax, word [rbp + 0x58]
mov word [rsi + 1], ax
mov dword [rsi + 4], edi
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rsi + 8], xmm0
mov rax, qword [rbp - 8]
mov qword [rsi + 0x18], rax
mov byte [rsi], 0
lea rcx, [rbp - 0x30]
call fcn.140043e40
lea rcx, [rbp + 8]
call fcn.140043e40
mov rax, rsi
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret