Function at 0x7fffb6da7848
Capabilities:
Get common file path
Link many functions at runtime
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x7fffb6df6798]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14, rcx
mov edi, 0x80004005
xor r15d, r15d
mov qword [0x7fffb6df6728], r15
mov qword [0x7fffb6df6730], r15
mov qword [0x7fffb6df6738], r15
mov qword [0x7fffb6df6740], r15
mov qword [0x7fffb6df6748], r15
mov qword [0x7fffb6df6750], r15
mov esi, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_Servicing
mov rcx, 0xffffffff80000002
call qword [sym.imp.KernelBase.dll_RegOpenKeyExW]
mov r12d, 0x80070000
test eax, eax
jne 0x7fffb6da796a
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.EnableDpxLog
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KernelBase.dll_RegQueryValueExW]
test eax, eax
jne 0x7fffb6da795a
cmp dword [rsp + 0x34], 4
jne 0x7fffb6da794a
mov esi, dword [rsp + 0x38]
mov ebx, r15d
jmp 0x7fffb6da798b
lea rcx, str.Registry_value_is_not_a_DWORD_type.
call fcn.7fffb6dc6268
mov ebx, edi
jmp 0x7fffb6da798b
lea rdx, str.EnableDpxLog
lea rcx, str.Failed_to_query_registry_value:__ls__hr_d
jmp 0x7fffb6da7978
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_Servicing
lea rcx, str.Failed_to_open_the_registry_key:__ls._hr_d
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.7fffb6dc6268
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x7fffb6da79c0
call qword [sym.imp.KernelBase.dll_RegCloseKey]
test eax, eax
je 0x7fffb6da79c0
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
mov r8d, ebx
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_Servicing
lea rcx, str.Failed_to_close_the_registry_key:__ls._hr_d
call fcn.7fffb6dc6268
test ebx, ebx
js 0x7fffb6da7c56
mov dword [0x7fffb6df6d58], esi
cmp esi, 1
jb 0x7fffb6da7c56
lea rsi, str.wdscore.dll
mov rcx, rsi
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov qword [0x7fffb6df6d68], rax
test rax, rax
je 0x7fffb6da7c2d
lea rdx, str.WdsSetupLogInit
mov rcx, rax
call qword [sym.imp.KernelBase.dll_GetProcAddress]
mov qword [0x7fffb6df6730], rax
test rax, rax
jne 0x7fffb6da7a2b
call fcn.7fffb6d96f60
test eax, eax
cmovns eax, edi
mov edi, eax
lea rcx, str.Failed_to_get_proc_address_for_WdsSetupLogInit.
jmp 0x7fffb6da7c5d
lea rdx, str.WdsSetupLogDestroy
mov rcx, qword [0x7fffb6df6d68]
call qword [sym.imp.KernelBase.dll_GetProcAddress]
mov qword [0x7fffb6df6738], rax
test rax, rax
jne 0x7fffb6da7a63
call fcn.7fffb6d96f60
test eax, eax
cmovns eax, edi
mov edi, eax
lea rcx, str.Failed_to_get_proc_address_for_WdsSetupLogDestroy.
jmp 0x7fffb6da7c5d
lea rdx, str.WdsSetupLogMessageA
mov rcx, qword [0x7fffb6df6d68]
call qword [sym.imp.KernelBase.dll_GetProcAddress]
mov qword [0x7fffb6df6740], rax
test rax, rax
jne 0x7fffb6da7a9b
call fcn.7fffb6d96f60
test eax, eax
cmovns eax, edi
mov edi, eax
lea rcx, str.Failed_to_get_proc_address_for_WdsSetupLogMessageA.
jmp 0x7fffb6da7c5d
lea rdx, str.ConstructPartialMsgVA
mov rcx, qword [0x7fffb6df6d68]
call qword [sym.imp.KernelBase.dll_GetProcAddress]
mov qword [0x7fffb6df6748], rax
test rax, rax
jne 0x7fffb6da7ad3
call fcn.7fffb6d96f60
test eax, eax
cmovns eax, edi
mov edi, eax
lea rcx, str.Failed_to_get_proc_address_for_ConstructPartialMsgVA.
jmp 0x7fffb6da7c5d
lea rdx, str.CurrentIP
mov rcx, qword [0x7fffb6df6d68]
call qword [sym.imp.KernelBase.dll_GetProcAddress]
mov qword [0x7fffb6df6750], rax
test rax, rax
jne 0x7fffb6da7b0b
call fcn.7fffb6d96f60
test eax, eax
cmovns eax, edi
mov edi, eax
lea rcx, str.Failed_to_get_proc_address_for_CurrentIP.
jmp 0x7fffb6da7c5d
lea rdx, str.WdsGetSetupLog
mov rcx, qword [0x7fffb6df6d68]
call qword [sym.imp.KernelBase.dll_GetProcAddress]
mov qword [0x7fffb6df6728], rax
test rax, rax
jne 0x7fffb6da7b43
call fcn.7fffb6d96f60
test eax, eax
cmovns eax, edi
mov edi, eax
lea rcx, str.Failed_to_get_proc_address_for_WdsGetSetupLog.
jmp 0x7fffb6da7c5d
call qword [sym.imp.____1]
mov qword [0x7fffb6df6d60], rax
test rax, rax
jne 0x7fffb6da7c1c
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KernelBase.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x7fffb6da7b85
call fcn.7fffb6d96f60
test eax, eax
cmovns eax, edi
mov edi, eax
lea rcx, str.Failed_to_get_windows_directory_for_log_file.
jmp 0x7fffb6da7c5d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LogsDPX
lea rcx, [rsp + 0x50]
call fcn.7fffb6d976d4
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rdx, str.LogsDPX
lea rcx, [rsp + 0x50]
call fcn.7fffb6d98800
mov edi, eax
test eax, eax
js 0x7fffb6da7c0c
mov rax, qword [0x7fffb6df6730]
test rax, rax
je 0x7fffb6da7c0c
mov r8, rbx
mov edx, 0x100b000
mov rcx, r14
call qword [sym.imp.____1]
mov qword [0x7fffb6df6d60], rax
test rax, rax
jne 0x7fffb6da7bfd
mov edi, 0x8000ffff
mov r8d, edi
mov rdx, rsi
lea rcx, str.Failed_to_initialize_WDSCORE_DLL:__ls_hr:___HRESULT_
call fcn.7fffb6dc61e0
jmp 0x7fffb6da7c0c
lea rcx, str.DPX_logging_initialized.
call fcn.7fffb6dc6224
mov edi, r15d
test rbx, rbx
je 0x7fffb6da7c62
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
jmp 0x7fffb6da7c62
lea rcx, str.dpx_logging_initialized._Participating_in_calling_process_log
call fcn.7fffb6dc6224
mov edi, r15d
jmp 0x7fffb6da7c62
call qword [sym.imp.KernelBase.dll_GetLastError]
cmp eax, 0x7e
jne 0x7fffb6da7c49
mov rdx, rsi
lea rcx, str.Could_not_load_WDSCORE_DLL_from_path:__ls.__Continuing_without_text_file_logging.
call fcn.7fffb6dc6268
jmp 0x7fffb6da7c66
movzx edi, ax
or edi, r12d
test eax, eax
cmovle edi, eax
jmp 0x7fffb6da7c62
lea rcx, str.Logging_not_enabled.__Ignoring_any_previous_errors_related_to_searching_for_PantherLog_registry_key_and_continuing...
call fcn.7fffb6dc61e0
test edi, edi
jns 0x7fffb6da7cab
mov qword [0x7fffb6df6d60], r15
mov qword [0x7fffb6df6728], r15
mov qword [0x7fffb6df6730], r15
mov qword [0x7fffb6df6738], r15
mov qword [0x7fffb6df6740], r15
mov qword [0x7fffb6df6748], r15
mov qword [0x7fffb6df6750], r15
mov rcx, qword [0x7fffb6df6d68]
call qword [sym.imp.KernelBase.dll_FreeLibrary]
mov qword [0x7fffb6df6d68], r15
mov eax, edi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.7fffb6dcff80
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret