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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb8
xor edi, edi
lea r15, [0x1417190c8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x39], dil
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400519e1
xorps xmm0, xmm0
movups xmmword [0x1417190c8], xmm0
mov qword [0x1417190d8], rdi
mov qword [0x1417190e0], rdi
mov ecx, Ordinal_50
call fcn.1401da418
mov qword [0x1417190c8], rax
mov qword [0x1417190d8], 0x20
mov qword [0x1417190e0], 0x2f
movups xmm0, xmmword [str.Failed_to_initialize_COM_library]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140259e00]
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], dil
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x1400519ce
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400519c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051eae
call fcn.1401da694
mov rax, r15
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140051a8e
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1417190c8], xmm0
mov qword [0x1417190d8], rdi
mov qword [0x1417190e0], rdi
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1401da418
mov rdx, rax
mov qword [0x1417190c8], rax
mov qword [0x1417190d8], 0x1d
mov ebx, Ordinal_32
mov qword [0x1417190e0], rbx
movups xmm0, xmmword [str.Failed_to_initialize_security]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140259e28]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x140259e30]
mov dword [rax + 0x18], ecx
movzx eax, byte [0x140259e34]
mov byte [rdx + 0x1c], al
mov byte [rdx + 0x1d], 0
jmp 0x140051993
mov qword [rbp + 0x7f], rdi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9, [0x140210618]
xor edx, edx
mov r8d, 1
lea rcx, [0x140210628]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140051b27
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1417190c8], xmm0
mov qword [0x1417190d8], rdi
mov qword [0x1417190e0], rdi
mov ecx, Ordinal_50
call fcn.1401da418
mov qword [0x1417190c8], rax
mov qword [0x1417190d8], 0x24
mov qword [0x1417190e0], 0x2f
movups xmm0, xmmword [str.Failed_to_create_IWbemLocator_object]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140259e48]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x140259e58]
mov dword [rax + 0x20], ecx
mov byte [rax + 0x24], 0
jmp 0x140051993
mov qword [rbp + 0x77], rdi
mov rax, qword [rbp + 0x7f]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140051b72
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x1400520f5
jmp 0x140051b75
mov rbx, rdi
mov qword [rbp + 0x6f], rbx
test rbx, rbx
je 0x140052106
lea rax, [rbp + 0x77]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x7f]
call rsi
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140051bee
mov rcx, qword [rbx]
test rcx, rcx
je 0x140051bcf
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140051be1
call fcn.1401da694
mov qword [rbx + 8], rdi
mov edx, Ordinal_26
mov rcx, rbx
call fcn.1401da694
test esi, esi
jns 0x140051c6a
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1417190c8], xmm0
mov qword [0x1417190d8], rdi
mov qword [0x1417190e0], rdi
mov ecx, Ordinal_50
call fcn.1401da418
mov qword [0x1417190c8], rax
mov qword [0x1417190d8], 0x22
mov qword [0x1417190e0], 0x2f
movups xmm0, xmmword [str.Could_not_connect_to_WMI_namespace]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140259e70]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x140259e80]
mov word [rax + 0x20], cx
mov byte [rax + 0x22], 0
jmp 0x140051993
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140051d32
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1417190c8], xmm0
mov qword [0x1417190d8], rdi
mov qword [0x1417190e0], rdi
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1401da418
mov rdx, rax
mov qword [0x1417190c8], rax
mov qword [0x1417190d8], 0x1b
mov ebx, Ordinal_32
mov qword [0x1417190e0], rbx
movups xmm0, xmmword [str.Could_not_set_proxy_blanket]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140259e98]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x140259ea0]
mov word [rax + 0x18], cx
movzx eax, byte [reloc.WS2_32.dll_WSACleanup]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], 0
jmp 0x140051993
mov qword [rbp - 0x19], rdi
mov rax, qword [rbp + 0x77]
mov rcx, qword [rax]
mov r14, qword [rcx + 0xa0]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140051d76
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, str.SELECT_SerialNumber_FROM_Win32_BIOS
call fcn.1401db730
mov qword [rbx], rax
jmp 0x140051d79
mov rbx, rdi
mov qword [rbp - 1], rbx
test rbx, rbx
je 0x140052106
mov rsi, qword [rbx]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140051dbb
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, [0x140259d88]
call fcn.1401db730
mov qword [rbx], rax
jmp 0x140051dbe
mov rbx, rdi
mov qword [rbp + 0x6f], rbx
test rbx, rbx
je 0x1400520ea
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, Ordinal_50
mov r8, rsi
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x77]
call r14
mov ebx, eax
lea rcx, [rbp + 0x6f]
call fcn.14004d4a0
nop
lea rcx, [rbp - 1]
call fcn.14004d4a0
test ebx, ebx
jns 0x140051eb5
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1417190c8], xmm0
mov qword [0x1417190d8], rdi
mov qword [0x1417190e0], rdi
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1401da418
mov qword [0x1417190c8], rax
mov qword [0x1417190d8], 0x10
mov ebx, Ordinal_32
mov qword [0x1417190e0], rbx
movups xmm0, xmmword [str.WMI_query_failed]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x1400519ce
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400519c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, rbx
jbe 0x1400519c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rbp - 0x11], rdi
mov dword [rbp + 0x67], edi
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140051f67
nop dword [rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x11]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp + 0x67], 0
je 0x140051f67
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 7]
xor r8d, r8d
lea rdx, str.SerialNumber
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp word [rbp + 7], 8
jne 0x140051f46
mov rcx, qword [rbp + 0xf]
call fcn.1401db610
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140051f30
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.1400839d0
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
jne 0x140051ed0
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp qword [rbp - 0x29], 0
jne 0x1400520cf
mov rsi, qword [rbp - 0x21]
cmp rsi, 0x1b
jb 0x140051fd3
lea rbx, [rbp - 0x39]
cmp rsi, 0xf
cmova rbx, qword [rbp - 0x39]
mov qword [rbp - 0x29], reloc.WLDAP32.dll_Ordinal_27
mov r8d, reloc.WLDAP32.dll_Ordinal_27
lea rdx, str.Serial_number_not_available
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1b], 0
jmp 0x1400520cf
mov rcx, rsi
shr rcx, 1
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x14005201b
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1401da418
test rax, rax
je 0x1400520bf
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140052054
lea rax, [rsi + rcx]
mov ebx, Ordinal_32
cmp rax, rbx
cmova rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
je 0x140052054
cmp rcx, 0x1000
jb 0x14005204c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140052100
jmp 0x140051ffc
call fcn.1401da418
mov rdi, rax
mov qword [rbp - 0x29], reloc.WLDAP32.dll_Ordinal_27
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [str.Serial_number_not_available]
movups xmmword [rdi], xmm0
movsd xmm0, qword [0x140259ef8]
movsd qword [rdi + 0x10], xmm0
movzx ecx, word [0x140259f00]
mov word [rdi + 0x18], cx
movzx eax, byte [0x140259f02]
mov byte [rdi + 0x1a], al
mov byte [rdi + 0x1b], 0
cmp rsi, 0xf
jbe 0x1400520cb
lea rdx, [rsi + 1]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400520c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400520c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401da694
mov qword [rbp - 0x39], rdi
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [0x1417190c8], xmm0
movups xmm1, xmmword [rbp - 0x29]
movups xmmword [0x1417190d8], xmm1
jmp 0x1400519ce
mov ecx, 0x8007000e
call fcn.1401db600
nop
mov ecx, 0x8007000e
call fcn.1401db600
nop
call fcn.140011d60
int3
mov ecx, 0x8007000e
call fcn.1401db600
int3