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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140351248]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
movzx r13d, dl
mov qword [rsp + 0x70], rcx
test dl, dl
je 0x1400f86af
xor edx, edx
xor ecx, ecx
call qword [sym.imp.OLE32.dll_CoInitializeEx]
test eax, eax
jns 0x1400f86af
lfence
mov edx, eax
lea rcx, [rbp + 0x100]
call fcn.1400f91f0
nop
mov r8, rax
lea rdx, str.__WmiEventManager__Set_WMI_Event_Receiver_fail_CoInitializeEx_failed:._Error_code_
lea rcx, [rbp + 0x60]
call fcn.1400b8710
mov rcx, rax
call fcn.1401b5ee0
mov rdi, rax
mov rdx, qword [rbp + 0x118]
cmp rdx, 0x10
jb 0x1400f860c
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f8607
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400f9048
call fcn.1401bfb10
lfence
xor ebx, ebx
mov qword [rbp + 0x110], rbx
mov qword [rbp + 0x118], SafeArrayLock
mov byte [rbp + 0x100], bl
lea edx, [rbx + 2]
mov rcx, rdi
call fcn.140162c40
mov rcx, rdi
call fcn.1401c028c
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], SafeArrayLock
lea ecx, [rbx + 0x40]
call fcn.1400b88d0
mov rdx, rax
mov qword [rbp - 0x58], 0x35
mov qword [rbp - 0x50], 0x3f
movups xmm0, xmmword [str._WmiEventManager__Set_WMI_Event_Receiver_fail_:_Step1]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14026dd18]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14026dd28]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14026dd38]
mov dword [rax + 0x30], ecx
movzx eax, byte [0x14026dd3c]
mov byte [rdx + 0x34], al
mov byte [rdx + 0x35], bl
mov qword [rbp - 0x68], rdx
lea rcx, [rbp - 0x68]
call fcn.140162100
jmp 0x1400f87fe
xor ebx, ebx
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x140290e18]
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [0x140290d68]
call qword [sym.imp.OLE32.dll_CoCreateInstance]
test eax, eax
jns 0x1400f8833
lfence
mov edx, eax
lea rcx, [rbp + 0x120]
call fcn.1400f91f0
nop
mov r8, rax
lea rdx, str.__WmiEventManager__Set_WMI_Event_Receiver_fail_CoCreateInstance_failed:._Error_code_
lea rcx, [rbp + 0x80]
call fcn.1400b8710
mov rcx, rax
call fcn.1401b5ee0
mov rdi, rax
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x1400f8756
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f8751
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400f904e
call fcn.1401bfb10
lfence
mov qword [rbp + 0x130], rbx
mov qword [rbp + 0x138], SafeArrayLock
mov byte [rbp + 0x120], 0
mov edx, 2
mov rcx, rdi
call fcn.140162c40
mov rcx, rdi
call fcn.1401c028c
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], SafeArrayLock
mov ecx, 0x40
call fcn.1400b88d0
mov rdx, rax
mov qword [rbp - 0x38], 0x35
mov qword [rbp - 0x30], 0x3f
movups xmm0, xmmword [str._WmiEventManager__Set_WMI_Event_Receiver_fail_:_Step3]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14026dda8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14026ddb8]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14026ddc8]
mov dword [rax + 0x30], ecx
movzx eax, byte [0x14026ddcc]
mov byte [rdx + 0x34], al
mov byte [rdx + 0x35], 0
mov qword [rbp - 0x48], rdx
lea rcx, [rbp - 0x48]
call fcn.140162100
call qword [sym.imp.OLE32.dll_CoUninitialize]
mov eax, 1
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401c0070
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [rsp + 0x50], rbx
mov ecx, SafeArrayPutElement
call fcn.1401bfad4
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400f8875
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
lea rcx, str.ROOTWMI
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
je 0x1400f9032
jmp 0x1400f8878
mov rdi, rbx
mov qword [rbp - 0x78], rdi
test rdi, rdi
je 0x1400f903d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rax, qword [rax + 0x18]
call qword [str.pP__]
mov esi, eax
mov r15d, 0xffffffff
mov ecx, r15d
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x1400f8902
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400f88e3
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400f88f5
call fcn.1401c028c
mov qword [rdi + 8], rbx
mov edx, SafeArrayPutElement
mov rcx, rdi
call fcn.1401bfb10
test esi, esi
jns 0x1400f8a37
lfence
mov edx, esi
lea rcx, [rbp + 0x140]
call fcn.1400f91f0
nop
mov r8, rax
lea rdx, str.__WmiEventManager__Set_WMI_Event_Receiver_fail_ConnectServer_failed:._Error_code_
lea rcx, [rbp + 0xa0]
call fcn.1400b8710
mov rcx, rax
call fcn.1401b5ee0
mov rdi, rax
mov rdx, qword [rbp + 0x158]
cmp rdx, 0x10
jb 0x1400f897e
inc rdx
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f8979
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400f9054
call fcn.1401bfb10
lfence
mov qword [rbp + 0x150], rbx
mov qword [rbp + 0x158], SafeArrayLock
mov byte [rbp + 0x140], 0
mov edx, 2
mov rcx, rdi
call fcn.140162c40
mov rcx, rdi
call fcn.1401c028c
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], SafeArrayLock
mov ecx, 0x40
call fcn.1400b88d0
mov rdx, rax
mov qword [rbp - 0x18], 0x35
mov qword [rbp - 0x10], 0x3f
movups xmm0, xmmword [str._WmiEventManager__Set_WMI_Event_Receiver_fail_:_Step4]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14026de58]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14026de68]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14026de78]
mov dword [rax + 0x30], ecx
movzx eax, byte [0x14026de7c]
mov byte [rdx + 0x34], al
mov byte [rdx + 0x35], 0
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x28]
call fcn.140162100
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
jmp 0x1400f87f8
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.OLE32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400f8b9a
lfence
mov edx, eax
lea rcx, [rbp + 0x160]
call fcn.1400f91f0
nop
mov r8, rax
lea rdx, str.__WmiEventManager__Set_WMI_Event_Receiver_fail_CoSetProxyBlanket_failed:._Error_code_
lea rcx, [rbp + 0xc0]
call fcn.1400b8710
mov rcx, rax
call fcn.1401b5ee0
mov rdi, rax
mov rdx, qword [rbp + 0x178]
cmp rdx, 0x10
jb 0x1400f8ae1
inc rdx
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f8adc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400f905a
call fcn.1401bfb10
lfence
mov qword [rbp + 0x170], rbx
mov qword [rbp + 0x178], SafeArrayLock
mov byte [rbp + 0x160], 0
mov edx, 2
mov rcx, rdi
call fcn.140162c40
mov rcx, rdi
call fcn.1401c028c
mov qword [rbp - 8], rbx
mov qword [rbp + 8], rbx
mov qword [rbp + 0x10], SafeArrayLock
mov ecx, 0x40
call fcn.1400b88d0
mov rdx, rax
mov qword [rbp + 8], 0x35
mov qword [rbp + 0x10], 0x3f
movups xmm0, xmmword [str._WmiEventManager__Set_WMI_Event_Receiver_fail_:_Step5]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14026dee8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14026def8]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14026df08]
mov dword [rax + 0x30], ecx
movzx eax, byte [0x14026df0c]
mov byte [rdx + 0x34], al
mov byte [rdx + 0x35], 0
mov qword [rbp - 8], rdx
lea rcx, [rbp - 8]
call fcn.140162100
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
jmp 0x1400f8a20
mov qword [rsp + 0x78], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x140290e48]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [0x140290d38]
call qword [sym.imp.OLE32.dll_CoCreateInstance]
mov ecx, 0x28
call fcn.1401bfad4
mov r14, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400f8c09
mov dword [rax + 8], ebx
lea rax, vtable.WmiEventManager.0
mov qword [r14], rax
mov dword [r14 + 0x18], 0x9a
mov dword [r14 + 0x1c], 0x9b
mov dword [r14 + 0x20], 0x98
mov dword [r14 + 0x24], 0x97
jmp 0x1400f8c0c
mov r14, rbx
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [str.pP__]
mov qword [rbp - 0x80], rbx
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea r8, [rbp - 0x80]
mov rdx, r14
mov rax, qword [rax + 0x18]
call qword [str.pP__]
mov qword [rsp + 0x68], rbx
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
lea r8, [rsp + 0x68]
lea rdx, [0x140290dc8]
mov rax, qword [rax]
call qword [str.pP__]
mov ecx, SafeArrayPutElement
call fcn.1401bfad4
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400f8c8d
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_AsusAtkWmiEvent
call fcn.1401f5390
mov qword [rsi], rax
jmp 0x1400f8c90
mov rsi, rbx
mov qword [rbp + 0x58], rsi
test rsi, rsi
je 0x1400f903d
mov ecx, SafeArrayPutElement
call fcn.1401bfad4
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400f8cd0
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
lea rcx, [0x14026df30]
call fcn.1401f5390
mov qword [rdi], rax
jmp 0x1400f8cd3
mov rdi, rbx
mov qword [rbp - 0x70], rdi
test rdi, rdi
je 0x1400f9060
mov r10, qword [rsp + 0x50]
mov rax, qword [r10]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
mov r9d, 0x80
mov r8, qword [rsi]
mov rdx, qword [rdi]
mov rcx, r10
mov rax, qword [rax + 0xb8]
call qword [str.pP__]
mov r12d, eax
mov ecx, r15d
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x1400f8d54
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400f8d34
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400f8d46
call fcn.1401c028c
mov qword [rdi + 8], rbx
mov edx, SafeArrayPutElement
mov rcx, rdi
call fcn.1401bfb10
nop
lock xadd dword [rsi + 0x10], r15d
cmp r15d, 1
jne 0x1400f8d90
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400f8d71
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rbx
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400f8d83
call fcn.1401c028c
mov qword [rsi + 8], rbx
mov edx, SafeArrayPutElement
mov rcx, rsi
call fcn.1401bfb10
test r12d, r12d
jns 0x1400f8f1e
lfence
mov edx, r12d
lea rcx, [rbp + 0x180]
call fcn.1400f91f0
nop
mov r8, rax
lea rdx, str.__WmiEventManager__Set_WMI_Event_Receiver_fail_ExecNotificationQueryAsync_failed:._Error_code_
lea rcx, [rbp + 0xe0]
call fcn.1400b8710
mov rcx, rax
call fcn.1401b5ee0
mov rdi, rax
mov rdx, qword [rbp + 0x198]
cmp rdx, 0x10
jb 0x1400f8e0e
inc rdx
mov rcx, qword [rbp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f8e09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400f902c
call fcn.1401bfb10
lfence
mov qword [rbp + 0x190], rbx
mov qword [rbp + 0x198], SafeArrayLock
mov byte [rbp + 0x180], 0
mov edx, 2
mov rcx, rdi
call fcn.140162c40
mov rcx, rdi
call fcn.1401c028c
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], SafeArrayLock
mov ecx, 0x40
call fcn.1400b88d0
mov rdx, rax
mov qword [rbp + 0x28], 0x35
mov qword [rbp + 0x30], 0x3f
movups xmm0, xmmword [str._WmiEventManager__Set_WMI_Event_Receiver_fail_:_Step6]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14026dfb8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14026dfc8]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14026dfd8]
mov dword [rax + 0x30], ecx
movzx eax, byte [0x14026dfdc]
mov byte [rdx + 0x34], al
mov byte [rdx + 0x35], 0
mov qword [rbp + 0x18], rdx
lea rcx, [rbp + 0x18]
call fcn.140162100
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [str.pP__]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
jmp 0x1400f87f8
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x50], SafeArrayLock
mov ecx, 0x30
call fcn.1400b88d0
mov qword [rbp + 0x48], 0x2b
mov qword [rbp + 0x50], 0x2f
movups xmm0, xmmword [str._WmiEventManager__Set_WMI_Event_Receiver_OK]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14026dff0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14026e000]
movsd qword [rax + 0x20], xmm0
movzx edx, word [0x14026e008]
mov word [rax + 0x28], dx
movzx edx, byte [0x14026e00a]
mov byte [rax + 0x2a], dl
mov byte [rax + 0x2b], 0
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x38]
call fcn.140162100
mov rcx, qword [rsp + 0x70]
call fcn.1400f92d0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rax + 0x20]
call qword [str.pP__]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [str.pP__]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.pP__]
test r13b, r13b
je 0x1400f9025
call qword [sym.imp.OLE32.dll_CoUninitialize]
xor eax, eax
jmp 0x1400f8803
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
mov ecx, 0x8007000e
call fcn.1401f5120
nop
mov ecx, 0x8007000e
call fcn.1401f5120
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
mov ecx, 0x8007000e
call fcn.1401f5120
int3