Function at 0x18005cc84
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x38], rax
xor r12d, r12d
mov qword [rbp + 0x10], r12
lea rdx, str.Select__from_NvWmiBrightness
lea rcx, [rsp + 0x70]
call fcn.18005a5d4
mov rbx, rax
lea rdx, [0x1801618a8]
lea rcx, [rsp + 0x68]
call fcn.18005a5d4
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005ccf7
mov r14, qword [rcx]
jmp 0x18005ccfa
mov r14, r12
mov rax, qword [rax]
test rax, rax
je 0x18005cd07
mov rsi, qword [rax]
jmp 0x18005cd0a
mov rsi, r12
mov rdi, qword [0x1801fad10]
mov rax, qword [rdi]
mov rbx, qword [rax + 0xa0]
mov rcx, rbx
call qword [fcn.18000e000]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, reloc.WS2_32.dll_recv
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call rbx
test eax, eax
sete bl
lea rcx, [rsp + 0x68]
call fcn.18005a660
nop
lea rcx, [rsp + 0x70]
call fcn.18005a660
test bl, bl
je 0x18005cdd9
mov qword [rsp + 0x70], r12
lea rdx, str.NvWmiBrightness
lea rcx, [rsp + 0x68]
call fcn.18005a5d4
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x18005cd85
mov rsi, qword [rcx]
jmp 0x18005cd88
mov rsi, r12
mov rdi, qword [0x1801fad10]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [fcn.18000e000]
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call rbx
test eax, eax
sete bl
lea rcx, [rsp + 0x68]
call fcn.18005a660
test bl, bl
je 0x18005cdd9
mov eax, 1
jmp 0x18005d283
mov qword [rsp + 0x78], r12
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x180163228]
mov esi, 1
mov r8d, esi
xor edx, edx
lea rcx, [0x180162fa8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15d, eax
lea r14d, [rsi + 6]
test eax, eax
jns 0x18005d10e
mov ecx, 0x208
call fcn.1800a6d90
mov rdi, rax
test rax, rax
je 0x18005d029
mov ebx, 0x104
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18005d021
mov ecx, ebx
mov rax, rdi
cmp word [rax], r12w
je 0x18005ce5f
add rax, 2
sub rcx, rsi
jne 0x18005ce50
mov rax, rcx
neg rax
sbb edx, edx
not edx
and edx, 0x80070057
test rcx, rcx
je 0x18005ce7c
mov rax, rbx
sub rax, rcx
jmp 0x18005ce7f
mov rax, r12
test edx, edx
js 0x18005cecf
sub rbx, rax
lea rcx, [rdi + rax*2]
je 0x18005cec0
lea rdx, [rax + 0x7ffffefa]
add rdx, rbx
lea rax, str.wbemmofd.dll
sub rax, rcx
test rdx, rdx
je 0x18005cec0
movzx r8d, word [rax + rcx]
test r8w, r8w
je 0x18005cec0
mov word [rcx], r8w
add rcx, 2
sub rdx, rsi
sub rbx, rsi
jne 0x18005cea0
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], r12w
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x18005cf4c
lea rdx, str.DllRegisterServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x18005cf38
mov rcx, rax
call qword [fcn.18000e000]
call r14
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x180163228]
mov r8d, esi
xor edx, edx
lea rcx, [0x180162fa8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14d, 7
jmp 0x18005d021
call fcn.18005abe8
cmp dword [rax + 0x20], 3
jl 0x18005d021
lea rax, [rbp - 0x10]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
mov qword [rbp + 8], r14
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp - 0x10]
call fcn.18001eca0
nop
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
lea rcx, str.Nvidia::UXDriver::Core::WmiBrightnessControl::RegisterNvWmiBrightnessClass
call fcn.1800d9868
mov r8, rax
lea rdx, str.Nvidia::UXDriver::Core::WmiBrightnessControl::RegisterNvWmiBrightnessClass
lea rcx, [rbp - 0x60]
call fcn.18001eca0
nop
lea rax, [rsp + 0x60]
mov qword [rbp - 0x38], rax
lea rax, str.ACELOG:_failed_to_load_wbemmofd.dll
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x78], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____38____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x68], rax
call fcn.18005abe8
mov rcx, rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1ac
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x70]
mov edx, 3
call fcn.180019ae4
mov rcx, rdi
call fcn.18006b9e0
test r15d, r15d
jns 0x18005d10e
call fcn.18005abe8
cmp dword [rax + 0x20], 3
jl 0x18005d25e
lea rax, [rbp - 0x60]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp - 0x60]
call fcn.18001eca0
nop
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
lea rcx, str.Nvidia::UXDriver::Core::WmiBrightnessControl::RegisterNvWmiBrightnessClass
call fcn.1800d9868
mov r8, rax
lea rdx, str.Nvidia::UXDriver::Core::WmiBrightnessControl::RegisterNvWmiBrightnessClass
lea rcx, [rbp - 0x30]
call fcn.18001eca0
nop
lea rax, [rsp + 0x60]
mov qword [rbp - 8], rax
lea rax, str.ACELOG:_failed_to_instantiate_MofCompiler_COM_interface_:
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x80], r15d
lea rax, [rbp - 0x70]
mov qword [rbp - 0x78], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_long_int__class_Nvidia::Logging::Chain_char_const_____59____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.0
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x38], rax
call fcn.18005abe8
mov rcx, rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1b4
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x40]
jmp 0x18005d254
xor edx, edx
lea r8d, [rdx + 0x18]
lea rcx, [rbp + 0x20]
call fcn.1800cf2b0
mov rbx, qword [rsp + 0x78]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [fcn.18000e000]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, str.rootWMI
lea r8, str._WMI___nDynamic___nProvider__WmiProv_____nLocale__MS0x409_____nDescription__WMI_Function_____nguid__603e9613_ef25_4338_a3d0_c46177516db7____n___nclass_NvWmiBrightness__n__n_t_key__read___n_tstring_InstanceName___n_t_read__boolean_Active___n_t_WmiMethodId_1____n_t_tImplemented___n_t_tread__write___n_t_tDescription__Get_Set_EC_brightness_level_status____n_t__void_NvGetSetBrightnessLevel__in__uint32_inArg___in__uint32_Level___out__uint32_Result____n_t_WmiMethodId_2____n_t_tImplemented___n_t_tread__write____n_t_tDescription__Get_Set_Display_Brightness_Source____n_t__void_NvGetSetBrightnessSource__in__uint32_inArg0___in__uint32_inArg1___out__uint32_Result____n__n
mov edx, 0x277
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
je 0x18005d261
call fcn.18005abe8
cmp dword [rax + 0x20], 3
jl 0x18005d25e
lea rax, [rbp - 0x30]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp - 0x30]
call fcn.18001eca0
nop
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
lea rcx, str.Nvidia::UXDriver::Core::WmiBrightnessControl::RegisterNvWmiBrightnessClass
call fcn.1800d9868
mov r8, rax
lea rdx, str.Nvidia::UXDriver::Core::WmiBrightnessControl::RegisterNvWmiBrightnessClass
lea rcx, [rbp - 0x60]
call fcn.18001eca0
nop
lea rax, [rsp + 0x60]
mov qword [rbp - 8], rax
lea rax, str.ACELOG:_CompileBuffer_failed:
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x70], ebx
lea rax, [rbp - 0x40]
mov qword [rbp - 0x68], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_long_int__class_Nvidia::Logging::Chain_char_const_____31____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.0
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x78], rax
call fcn.18005abe8
mov rcx, rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1bf
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x80]
mov edx, 3
call fcn.180019ae4
mov sil, r12b
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x18005d280
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.18000e000]
mov rcx, rbx
call rdi
mov al, sil
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1800a6240
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret