Function at 0x1400c2ea0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rbp + 0x2f], rax
movzx esi, dl
mov r14, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
mov qword [rbp + 0x27], 7
xor r15d, r15d
mov qword [rbp + 0x1f], r15
mov word [rbp + 0xf], r15w
cmp eax, 1
jbe 0x1400c2f18
cmp eax, 0x80010106
je 0x1400c2f18
call fcn.14003c140
mov rcx, rax
lea r8, str.Failed_to_Coinitialize_in_getHardDiskSerialNumber._Error_code__0x_x
jmp 0x1400c2feb
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ebx, eax
mov eax, 0x80000000
lea ecx, [rbx + rax]
test eax, ecx
jne 0x1400c2f8a
cmp ebx, 0x80010119
je 0x1400c2f8a
mov ecx, dword [0x140184200]
test cl, 1
jne 0x1400c2f81
or ecx, 1
mov dword [0x140184200], ecx
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
lea r8, str.Failed_to_initialize_security._Error_code__0x_x
jmp 0x1400c2fe4
mov qword [rbp - 0x49], r15
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [0x140128280]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140128350]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x1400c2fff
mov ecx, dword [0x140184200]
test cl, 1
jne 0x1400c2fdd
or ecx, 1
mov dword [0x140184200], ecx
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
lea r8, str.Failed_to_create_IWbemLocator_object._Err_code__0x_x
lea rcx, [0x140184130]
mov r9d, ebx
lea rdx, [0x14013d788]
call fcn.14003d0c0
jmp 0x1400c3144
mov qword [rbp - 0x41], r15
mov ecx, 0x18
call fcn.1400de2bc
mov rbx, rax
mov qword [rbp - 0x21], rax
test rax, rax
je 0x1400c3044
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x1400c3047
mov ecx, 0x8007000e
call fcn.14011bdf0
int3
mov rbx, r15
mov qword [rbp - 0x21], rbx
test rbx, rbx
jne 0x1400c305b
mov ecx, 0x8007000e
call fcn.14011bdf0
nop
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
lea rdx, [rbp - 0x41]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x18]
mov edi, eax
mov rcx, rbx
call fcn.1400c2e40
test edi, edi
jns 0x1400c30de
mov ecx, dword [0x140184200]
test cl, 1
jne 0x1400c30bf
or ecx, 1
mov dword [0x140184200], ecx
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
mov r9d, edi
lea r8, str.Could_not_connect_while_getting_hdd_serial_number._Error_code__0x_x
lea rdx, [0x14013d788]
lea rcx, [0x140184130]
call fcn.14003d0c0
jmp 0x1400c313a
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x1400c314c
call fcn.14003c140
mov rcx, rax
mov r9d, ebx
lea r8, str.Could_not_set_proxy_blanket._Error_code__0x_x
lea rdx, [0x14013d788]
call fcn.14003d0c0
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor dil, dil
jmp 0x1400c3372
lea rax, str.SELECT__FROM_Win32_DiskDrive_where_interfaceType__USB
lea rdx, str.SELECT__FROM_Win32_DiskDrive_where_interfaceType___USB
test sil, sil
cmovne rdx, rax
lea rcx, [rbp - 0x21]
call fcn.1400c2d90
nop
mov qword [rbp - 0x31], r15
mov ecx, 0x18
call fcn.1400de2bc
mov rdi, rax
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400c31a1
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, [0x140148090]
call fcn.14011bc60
mov qword [rdi], rax
jmp 0x1400c31a4
mov rdi, r15
mov qword [rbp - 0x19], rdi
test rdi, rdi
jne 0x1400c31b8
mov ecx, 0x8007000e
call fcn.14011bdf0
nop
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x1400c31c6
mov r8, qword [rbx]
jmp 0x1400c31c9
mov r8, r15
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
lea rdx, [rbp - 0x31]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r15
mov r9d, 0x30
mov rdx, qword [rdi]
call qword [rax + 0xa0]
mov esi, eax
mov rcx, rdi
call fcn.1400c2e40
test esi, esi
jns 0x1400c3235
call fcn.14003c140
mov rcx, rax
mov r9d, esi
lea r8, str.Query_for_operating_system_name_failed._Error_code__0x_x
lea rdx, [0x14013d788]
call fcn.14003d0c0
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor dil, dil
jmp 0x1400c3364
mov qword [rbp - 0x29], r15
mov dword [rbp - 0x39], r15d
xor dil, dil
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400c3349
nop dword [rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x39]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x29]
mov r8d, 1
or edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rbp - 0x39], 0
je 0x1400c3345
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x11]
xor r8d, r8d
lea rdx, str.SerialNumber
call qword [rax + 0x20]
test eax, eax
jns 0x1400c32e6
mov eax, dword [0x140184200]
test al, 1
jne 0x1400c32c1
or eax, 1
mov dword [0x140184200], eax
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str._Failed_in_getting_serial_Error_is_:_d
lea rdx, [0x14013d788]
lea rcx, [0x140184130]
call fcn.14003d0c0
jmp 0x1400c332c
cmp word [rbp - 0x11], 8
jne 0x1400c3322
mov rdi, qword [rbp - 9]
cmp word [rdi], 0
jne 0x1400c32fc
mov rax, r15
jmp 0x1400c3304
mov rcx, rdi
call fcn.1400ded00
mov r8, rax
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.140010250
lea rdx, [rbp + 0xf]
mov rcx, r14
call fcn.14001440c
mov dil, 1
lea rcx, [rbp - 0x11]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
jne 0x1400c3250
jmp 0x1400c3349
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
test rbx, rbx
je 0x1400c3372
mov rcx, rbx
call fcn.1400c2e40
nop
cmp qword [rbp + 0x27], 8
jb 0x1400c3382
mov rcx, qword [rbp + 0xf]
call fcn.1400400f0
movzx eax, dil
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400dc400
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret