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

Disassembly:
mov rax, rsp
sub rsp, 0x268
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov qword [rax - 0x18], r14
mov qword [rax - 0x20], r15
mov r12, rcx
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov esi, 0xffffffff
mov edx, esi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x41af61
cmp eax, 0x80010119
je 0x41af61
xor eax, eax
mov byte [rsp + 0x54], al
lea r8, [rsp + 0x54]
lea rdx, str.Failed_to_initialize_security
lea rcx, [rsp + 0xc0]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x120]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea rdx, [0x005c53f0]
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll__CxxThrowException
nop
lea rbp, [r12 + 0x10]
mov qword [rbp], r14
mov qword [rsp + 0x20], rbp
lea r9, [0x00565a38]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x00565b08]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x41afd9
xor eax, eax
mov byte [rsp + 0x52], al
lea r8, [rsp + 0x52]
lea rdx, str.Failed_to_create_IWbemLocator_object.
lea rcx, [rsp + 0xe0]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x1c8]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea rdx, [0x005c53f0]
lea rcx, [rsp + 0x1c8]
call sub.msvcrt.dll__CxxThrowException
nop
lea r13, [r12 + 0x18]
mov qword [r13], r14
mov ecx, 0x18
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x41b025
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x41b028
mov ecx, 0x8007000e
call fcn.00443650
jmp 0x41b028
mov rbx, r14
mov qword [rsp + 0x70], rbx
test rbx, rbx
jne 0x41b03d
mov ecx, 0x8007000e
call fcn.00443650
nop
test rbx, rbx
je 0x41b047
mov rdx, qword [rbx]
jmp 0x41b04a
mov rdx, r14
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
call qword [rax + 0x18]
mov edi, eax
test rbx, rbx
je 0x41b0a9
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
jne 0x41b0a9
mov rcx, qword [rbx]
test rcx, rcx
je 0x41b093
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x41b0a1
call fcn.00442df0
mov rcx, rbx
call fcn.00442df0
test edi, edi
jns 0x41b107
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbp], r14
xor eax, eax
mov byte [rsp + 0x50], al
lea r8, [rsp + 0x50]
lea rdx, str.Could_not_connect.
lea rcx, [rsp + 0xa0]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x158]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea rdx, [0x005c53f0]
lea rcx, [rsp + 0x158]
call sub.msvcrt.dll__CxxThrowException
nop
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r13]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x41b1a1
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [r13], r14
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbp], r14
xor eax, eax
mov byte [rsp + 0x51], al
lea r8, [rsp + 0x51]
lea rdx, str.Could_not_set_proxy_blanket.
lea rcx, [rsp + 0x80]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x190]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea rdx, [0x005c53f0]
lea rcx, [rsp + 0x190]
call sub.msvcrt.dll__CxxThrowException
nop
lea r15, [r12 + 0x20]
mov qword [r15], r14
mov qword [rsp + 0x20], r15
lea r9, [0x00565a88]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [0x00565b28]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, 0x20
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r11, rax
test rax, rax
je 0x41b1fb
mov rax, qword [r12]
mov ecx, dword [r12 + 8]
lea rdx, [0x00562cd0]
mov qword [r11], rdx
mov qword [r11 + 0x10], rax
mov dword [r11 + 0x18], ecx
mov dword [r11 + 8], r14d
jmp 0x41b1fe
mov r11, r14
mov qword [r12 + 0x28], r11
mov rax, qword [r11]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [r12 + 0x30], r14
mov rcx, qword [r15]
mov rax, qword [rcx]
lea r8, [r12 + 0x30]
mov rdx, qword [r12 + 0x28]
call qword [rax + 0x18]
xor edi, edi
mov qword [r12 + 0x38], rdi
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
lea r8, [r12 + 0x38]
lea rdx, [0x00565a48]
call qword [rax]
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [r12 + 0x30], rdi
lea ecx, [rdi + 0x18]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x41b295
mov qword [rax + 8], 0
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM___InstanceCreationEvent_WITHIN_1_WHERE_TargetInstance_ISA_Win32_Process
call fcn.004438b0
mov qword [rdi], rax
test rax, rax
jne 0x41b297
mov ecx, 0x8007000e
call fcn.00443650
jmp 0x41b297
xor edi, edi
mov qword [rsp + 0x68], rdi
test rdi, rdi
jne 0x41b2ac
mov ecx, 0x8007000e
call fcn.00443650
nop
mov ecx, 0x18
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x41b2f2
mov qword [rax + 8], 0
mov dword [rax + 0x10], 1
lea rcx, [0x00562d3c]
call fcn.004438b0
mov qword [rbx], rax
test rax, rax
jne 0x41b2f4
mov ecx, 0x8007000e
call fcn.00443650
jmp 0x41b2f4
xor ebx, ebx
mov qword [rsp + 0x60], rbx
test rbx, rbx
jne 0x41b309
mov ecx, 0x8007000e
call fcn.00443650
nop
test rdi, rdi
je 0x41b313
mov r8, qword [rdi]
jmp 0x41b316
xor r8d, r8d
test rbx, rbx
je 0x41b320
mov rdx, qword [rbx]
jmp 0x41b322
xor edx, edx
mov rcx, qword [r13]
mov r10, qword [rcx]
mov rax, qword [r12 + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x80
call qword [r10 + 0xb8]
mov r14d, eax
test rbx, rbx
je 0x41b381
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
jne 0x41b381
mov rcx, qword [rbx]
test rcx, rcx
je 0x41b36a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x41b378
call fcn.00442df0
mov rcx, rbx
call fcn.00442df0
nop
test rdi, rdi
je 0x41b3b3
lock xadd dword [rdi + 0x10], esi
dec esi
jne 0x41b3b3
mov rcx, qword [rdi]
test rcx, rcx
je 0x41b39d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x41b3ab
call fcn.00442df0
mov rcx, rdi
call fcn.00442df0
test r14d, r14d
jns 0x41b452
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
xor ebx, ebx
mov qword [r13], rbx
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbp], rbx
mov rcx, qword [r15]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [r15], rbx
mov rcx, qword [r12 + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [r12 + 0x28], rbx
mov rcx, qword [r12 + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [r12 + 0x38], rbx
xor eax, eax
mov byte [rsp + 0x53], al
lea r8, [rsp + 0x53]
lea rdx, str.ExecNotificationQueryAsync_failed
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x200]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea rdx, [0x005c53f0]
lea rcx, [rsp + 0x200]
call sub.msvcrt.dll__CxxThrowException
nop
mov rbx, qword [rsp + 0x270]
mov rbp, qword [rsp + 0x278]
mov rsi, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x288]
mov r12, qword [rsp + 0x260]
mov r13, qword [rsp + 0x258]
mov r14, qword [rsp + 0x250]
mov r15, qword [rsp + 0x248]
add rsp, 0x268
ret