Function at 0x140113550
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 [0x14039a678]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
movzx r13d, dl
mov qword [rsp + 0x70], rcx
test dl, dl
je 0x1401136bf
xor edx, edx
xor ecx, ecx
call qword [sym.imp.OLE32.dll_CoInitializeEx]
test eax, eax
jns 0x1401136bf
lfence
mov edx, eax
lea rcx, [rbp + 0x100]
call fcn.140114200
nop
mov r8, rax
lea rdx, str.__WmiEventManager__Set_WMI_Event_Receiver_fail_CoInitializeEx_failed:._Error_code_
lea rcx, [rbp + 0x60]
call fcn.1400d13b0
mov rcx, rax
call fcn.1401d9b10
mov rdi, rax
mov rdx, qword [rbp + 0x118]
cmp rdx, 0x10
jb 0x14011361c
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140113617
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140114058
call fcn.1401e3784
lfence
xor ebx, ebx
mov qword [rbp + 0x110], rbx
mov qword [rbp + 0x118], SafeArrayPutElement
mov byte [rbp + 0x100], bl
lea edx, [rbx + 2]
mov rcx, rdi
call fcn.14017f5f0
mov rcx, rdi
call fcn.1401e3efc
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], SafeArrayGetLBound
lea ecx, [rbx + 0x40]
call fcn.1400d1570
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 [0x14029c338]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14029c348]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14029c358]
mov dword [rax + 0x30], ecx
movzx eax, byte [0x14029c35c]
mov byte [rdx + 0x34], al
mov byte [rdx + 0x35], bl
mov qword [rbp - 0x68], rdx
lea rcx, [rbp - 0x68]
call fcn.14017eab0
jmp 0x14011380e
xor ebx, ebx
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x1402c0918]
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [0x1402c0868]
call qword [sym.imp.OLE32.dll_CoCreateInstance]
test eax, eax
jns 0x140113843
lfence
mov edx, eax
lea rcx, [rbp + 0x120]
call fcn.140114200
nop
mov r8, rax
lea rdx, str.__WmiEventManager__Set_WMI_Event_Receiver_fail_CoCreateInstance_failed:._Error_code_
lea rcx, [rbp + 0x80]
call fcn.1400d13b0
mov rcx, rax
call fcn.1401d9b10
mov rdi, rax
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x140113766
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140113761
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011405e
call fcn.1401e3784
lfence
mov qword [rbp + 0x130], rbx
mov qword [rbp + 0x138], SafeArrayPutElement
mov byte [rbp + 0x120], 0
mov edx, 2
mov rcx, rdi
call fcn.14017f5f0
mov rcx, rdi
call fcn.1401e3efc
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], SafeArrayGetLBound
mov ecx, 0x40
call fcn.1400d1570
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 [0x14029c3c8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14029c3d8]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14029c3e8]
mov dword [rax + 0x30], ecx
movzx eax, byte [0x14029c3ec]
mov byte [rdx + 0x34], al
mov byte [rdx + 0x35], 0
mov qword [rbp - 0x48], rdx
lea rcx, [rbp - 0x48]
call fcn.14017eab0
call qword [sym.imp.OLE32.dll_CoUninitialize]
mov eax, 1
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401e3ce0
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.1401e3748
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140113885
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 0x140114042
jmp 0x140113888
mov rdi, rbx
mov qword [rbp - 0x78], rdi
test rdi, rdi
je 0x14011404d
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 [case.0x1400d34f5.0]
mov esi, eax
mov r15d, 0xffffffff
mov ecx, r15d
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x140113912
mov rcx, qword [rdi]
test rcx, rcx
je 0x1401138f3
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140113905
call fcn.1401e3efc
mov qword [rdi + 8], rbx
mov edx, SafeArrayPutElement
mov rcx, rdi
call fcn.1401e3784
test esi, esi
jns 0x140113a47
lfence
mov edx, esi
lea rcx, [rbp + 0x140]
call fcn.140114200
nop
mov r8, rax
lea rdx, str.__WmiEventManager__Set_WMI_Event_Receiver_fail_ConnectServer_failed:._Error_code_
lea rcx, [rbp + 0xa0]
call fcn.1400d13b0
mov rcx, rax
call fcn.1401d9b10
mov rdi, rax
mov rdx, qword [rbp + 0x158]
cmp rdx, 0x10
jb 0x14011398e
inc rdx
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140113989
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140114064
call fcn.1401e3784
lfence
mov qword [rbp + 0x150], rbx
mov qword [rbp + 0x158], SafeArrayPutElement
mov byte [rbp + 0x140], 0
mov edx, 2
mov rcx, rdi
call fcn.14017f5f0
mov rcx, rdi
call fcn.1401e3efc
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], SafeArrayGetLBound
mov ecx, 0x40
call fcn.1400d1570
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 [0x14029c478]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14029c488]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14029c498]
mov dword [rax + 0x30], ecx
movzx eax, byte [0x14029c49c]
mov byte [rdx + 0x34], al
mov byte [rdx + 0x35], 0
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x28]
call fcn.14017eab0
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
jmp 0x140113808
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 0x140113baa
lfence
mov edx, eax
lea rcx, [rbp + 0x160]
call fcn.140114200
nop
mov r8, rax
lea rdx, str.__WmiEventManager__Set_WMI_Event_Receiver_fail_CoSetProxyBlanket_failed:._Error_code_
lea rcx, [rbp + 0xc0]
call fcn.1400d13b0
mov rcx, rax
call fcn.1401d9b10
mov rdi, rax
mov rdx, qword [rbp + 0x178]
cmp rdx, 0x10
jb 0x140113af1
inc rdx
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140113aec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011406a
call fcn.1401e3784
lfence
mov qword [rbp + 0x170], rbx
mov qword [rbp + 0x178], SafeArrayPutElement
mov byte [rbp + 0x160], 0
mov edx, 2
mov rcx, rdi
call fcn.14017f5f0
mov rcx, rdi
call fcn.1401e3efc
mov qword [rbp - 8], rbx
mov qword [rbp + 8], rbx
mov qword [rbp + 0x10], SafeArrayGetLBound
mov ecx, 0x40
call fcn.1400d1570
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 [0x14029c508]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14029c518]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14029c528]
mov dword [rax + 0x30], ecx
movzx eax, byte [0x14029c52c]
mov byte [rdx + 0x34], al
mov byte [rdx + 0x35], 0
mov qword [rbp - 8], rdx
lea rcx, [rbp - 8]
call fcn.14017eab0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
jmp 0x140113a30
mov qword [rsp + 0x78], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x1402c0948]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [0x1402c0838]
call qword [sym.imp.OLE32.dll_CoCreateInstance]
mov ecx, 0x28
call fcn.1401e3748
mov r14, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140113c19
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 0x140113c1c
mov r14, rbx
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x1400d34f5.0]
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 [case.0x1400d34f5.0]
mov qword [rsp + 0x68], rbx
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
lea r8, [rsp + 0x68]
lea rdx, [0x1402c08c8]
mov rax, qword [rax]
call qword [case.0x1400d34f5.0]
mov ecx, SafeArrayPutElement
call fcn.1401e3748
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140113c9d
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_AsusAtkWmiEvent
call fcn.140218ff0
mov qword [rsi], rax
jmp 0x140113ca0
mov rsi, rbx
mov qword [rbp + 0x58], rsi
test rsi, rsi
je 0x14011404d
mov ecx, SafeArrayPutElement
call fcn.1401e3748
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140113ce0
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
lea rcx, [0x14029c550]
call fcn.140218ff0
mov qword [rdi], rax
jmp 0x140113ce3
mov rdi, rbx
mov qword [rbp - 0x70], rdi
test rdi, rdi
je 0x140114070
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 [case.0x1400d34f5.0]
mov r12d, eax
mov ecx, r15d
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x140113d64
mov rcx, qword [rdi]
test rcx, rcx
je 0x140113d44
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140113d56
call fcn.1401e3efc
mov qword [rdi + 8], rbx
mov edx, SafeArrayPutElement
mov rcx, rdi
call fcn.1401e3784
nop
lock xadd dword [rsi + 0x10], r15d
cmp r15d, 1
jne 0x140113da0
mov rcx, qword [rsi]
test rcx, rcx
je 0x140113d81
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rbx
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140113d93
call fcn.1401e3efc
mov qword [rsi + 8], rbx
mov edx, SafeArrayPutElement
mov rcx, rsi
call fcn.1401e3784
test r12d, r12d
jns 0x140113f2e
lfence
mov edx, r12d
lea rcx, [rbp + 0x180]
call fcn.140114200
nop
mov r8, rax
lea rdx, str.__WmiEventManager__Set_WMI_Event_Receiver_fail_ExecNotificationQueryAsync_failed:._Error_code_
lea rcx, [rbp + 0xe0]
call fcn.1400d13b0
mov rcx, rax
call fcn.1401d9b10
mov rdi, rax
mov rdx, qword [rbp + 0x198]
cmp rdx, 0x10
jb 0x140113e1e
inc rdx
mov rcx, qword [rbp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140113e19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011403c
call fcn.1401e3784
lfence
mov qword [rbp + 0x190], rbx
mov qword [rbp + 0x198], SafeArrayPutElement
mov byte [rbp + 0x180], 0
mov edx, 2
mov rcx, rdi
call fcn.14017f5f0
mov rcx, rdi
call fcn.1401e3efc
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], SafeArrayGetLBound
mov ecx, 0x40
call fcn.1400d1570
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 [0x14029c5d8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14029c5e8]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14029c5f8]
mov dword [rax + 0x30], ecx
movzx eax, byte [0x14029c5fc]
mov byte [rdx + 0x34], al
mov byte [rdx + 0x35], 0
mov qword [rbp + 0x18], rdx
lea rcx, [rbp + 0x18]
call fcn.14017eab0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
jmp 0x140113808
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x50], SafeArrayGetLBound
mov ecx, 0x30
call fcn.1400d1570
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 [0x14029c610]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14029c620]
movsd qword [rax + 0x20], xmm0
movzx edx, word [0x14029c628]
mov word [rax + 0x28], dx
movzx edx, byte [0x14029c62a]
mov byte [rax + 0x2a], dl
mov byte [rax + 0x2b], 0
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x38]
call fcn.14017eab0
mov rcx, qword [rsp + 0x70]
call fcn.1401142e0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rax + 0x20]
call qword [case.0x1400d34f5.0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400d34f5.0]
test r13b, r13b
je 0x140114035
call qword [sym.imp.OLE32.dll_CoUninitialize]
xor eax, eax
jmp 0x140113813
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
mov ecx, 0x8007000e
call fcn.140218d80
nop
mov ecx, 0x8007000e
call fcn.140218d80
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.140218d80
int3