Function at 0x140005bd0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6f8]
sub rsp, 0x7d0
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
xor r15d, r15d
mov rbx, rcx
lea rcx, [rbp + 0xb0]
mov dword [rsp + 0x78], r15d
xor edx, edx
mov qword [rbp - 0x10], r15
mov r8d, 0x208
mov qword [rbp + 8], r15
mov qword [rbp - 8], r15
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea r12d, [r15 + 1]
mov dword [rsp + 0x50], r15d
mov eax, r12d
mov dword [rsp + 0x64], 3
mov esi, r15d
mov qword [rsp + 0x70], r15
mov qword [rbp], r15
lock xadd dword [0x14003c920], eax
add eax, r12d
cmp eax, r12d
jle 0x140005c88
mov r14d, 0x800704df
lea r9, str.Wds_logger_is_already_initialized
mov edx, r14d
mov r8d, r12d
mov ecx, 0x4000000
call fcn.140006a50
mov rdi, qword [rbp - 8]
jmp 0x14000689b
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140005ce8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 0x80004005
movzx r14d, ax
or r14d, 0x80070000
lea r8, str.Failed_to_get_windows_directory_for_WDSCORE_DLL_path.
test eax, eax
cmovle r14d, eax
test r14d, r14d
cmovns r14d, ecx
mov ecx, r14d
mov edx, r12d
call fcn.140005608
mov rdi, qword [rbp - 8]
jmp 0x140006896
mov rdx, rbx
lea rcx, [rbp - 8]
call fcn.140007794
mov r14d, eax
test eax, eax
jns 0x140005d06
lea r8, str.Failed_to_allocate_relative_path_to_WDSCORE_DLL.
mov ecx, eax
jmp 0x140005cd7
lea rcx, [rbp - 8]
call fcn.1400078d8
mov r14d, eax
test eax, eax
jns 0x140005d33
mov rdi, qword [rbp - 8]
lea r8, str.Failed_to_ensure_Wds_path_ended_with_a_backslash:__ws
mov r9, rdi
mov edx, r12d
mov ecx, eax
call fcn.140005608
jmp 0x140006896
lea rdx, str.wdscore.dll
lea rcx, [rbp - 8]
call fcn.1400071dc
mov r14d, eax
test eax, eax
jns 0x140005d53
lea r8, str.Failed_to_concat_full_path_to_WDSCORE_DLL
jmp 0x140005d02
mov rdi, qword [rbp - 8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_LoadLibraryW]
nop dword [rax + rax]
cmp qword [0x14003c8d8], r15
je 0x140005d70
int3
mov qword [0x14003c8d8], rax
test rax, rax
jne 0x140005e67
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 8]
call fcn.140007794
mov r14d, eax
test eax, eax
jns 0x140005db4
lea r9, [rbp + 0xb0]
mov edx, r12d
lea r8, str.Failed_to_allocate_Wds_path_from_windows_directory:__ws
mov ecx, eax
call fcn.140005608
jmp 0x140005cdf
lea rcx, [rbp - 8]
call fcn.1400078d8
mov r14d, eax
test eax, eax
js 0x140005d16
lea rcx, [rbp - 8]
call fcn.140007364
mov r14d, eax
test eax, eax
jns 0x140005de4
lea r8, str.Failed_to_allocate_full_path_to_WDSCORE_DLL.
jmp 0x140005d02
mov rdi, qword [rbp - 8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_LoadLibraryW]
nop dword [rax + rax]
cmp qword [0x14003c8d8], r15
je 0x140005e01
int3
mov qword [0x14003c8d8], rax
test rax, rax
jne 0x140005e67
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r9, rdi
mov edx, r12d
cmp eax, 0x7e
jne 0x140005e3b
lea r8, str.Could_not_load_WDSCORE_DLL_from_path:__ws.__Continuing_without_text_file_logging.
mov ecx, r12d
call fcn.140005608
mov r14d, r12d
jmp 0x140006902
mov ecx, 0x80004005
movzx r14d, ax
or r14d, 0x80070000
lea r8, str.Failed_to_load_WDSCORE_DLL:__ws
test eax, eax
cmovle r14d, eax
test r14d, r14d
cmovns r14d, ecx
mov ecx, r14d
jmp 0x140005d29
lea rdx, str.WdsSetupLogInit
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14003c930], rax
test rax, rax
jne 0x140005ec9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.Failed_to_get_proc_address_for_WdsSetupLogInit.
mov ecx, 0x80004005
movzx r14d, ax
or r14d, 0x80070000
mov edx, r12d
test eax, eax
cmovle r14d, eax
test r14d, r14d
cmovns r14d, ecx
mov ecx, r14d
call fcn.140005608
jmp 0x140006896
mov rcx, qword [0x14003c8d8]
lea rdx, str.WdsGenericSetupLogInit
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14003c908], rax
test rax, rax
jne 0x140005f04
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.Failed_to_get_proc_address_for_WdsGenericSetupLogInit.
jmp 0x140005e9c
mov rcx, qword [0x14003c8d8]
lea rdx, str.WdsGetSetupLog
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14003c900], rax
test rax, rax
jne 0x140005f42
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.Failed_to_get_proc_address_for_WdsGetSetupLog.
jmp 0x140005e9c
mov rcx, qword [0x14003c8d8]
lea rdx, str.WdsSetupLogDestroy
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14003c8e8], rax
test rax, rax
jne 0x140005f80
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.Failed_to_get_proc_address_for_WdsSetupLogDestroy.
jmp 0x140005e9c
mov rcx, qword [0x14003c8d8]
lea rdx, str.WdsSetupLogMessageA
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14003c910], rax
test rax, rax
jne 0x140005fbe
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.Failed_to_get_proc_address_for_WdsSetupLogMessageA.
jmp 0x140005e9c
mov rcx, qword [0x14003c8d8]
lea rdx, str.ConstructPartialMsgVA
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14003c918], rax
test rax, rax
jne 0x140005ffc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.Failed_to_get_proc_address_for_ConstructPartialMsgVA.
jmp 0x140005e9c
mov rcx, qword [0x14003c8d8]
lea rdx, str.CurrentIP
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14003c928], rax
test rax, rax
jne 0x14000603a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.Failed_to_get_proc_address_for_CurrentIP.
jmp 0x140005e9c
lea rcx, [rbp - 0x10]
call fcn.140006980
cmp qword [rbp - 0x10], r15
je 0x1400060a6
lea rax, [rsp + 0x54]
mov dword [rsp + 0x54], r15d
lea r9, str.SystemSetupInProgress
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMSetup
call fcn.140008164
mov r13d, dword [rsp + 0x54]
test r13d, r13d
jne 0x14000609c
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], r15d
lea r9, str.OOBEInProgress
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMSetup
call fcn.140008164
mov r13d, dword [rsp + 0x58]
mov r15d, r13d
mov dword [rsp + 0x50], r13d
jmp 0x1400060b0
mov r13d, dword [rsp + 0x78]
mov r15d, dword [rsp + 0x50]
mov ecx, 0x400
mov r12d, 0x4000000
test r15d, r15d
jne 0x1400064c2
mov r8d, ecx
xor edx, edx
lea rcx, [rbp + 0x2c0]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x200
lea rdx, [rbp + 0x2c0]
lea rcx, str.COMPONENT_BASED_SERVICING_LOGFILE
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
dec eax
cmp eax, 0x1fe
ja 0x140006133
lea rdx, [rbp + 0x2c0]
lea rcx, [rbp - 0x10]
call fcn.140007794
xor r15d, r15d
mov r14d, eax
test eax, eax
jns 0x1400064c5
lea r9, [rbp + 0x2c0]
lea r8, str.Failed_to_allocate_log_file_name:__ws
lea edx, [r15 + 1]
jmp 0x140005d27
lea rax, [rsp + 0x50]
lea r9, str.EnableLog
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_Servicing
call fcn.140008164
xor r15d, r15d
test eax, eax
js 0x140006504
mov r15d, dword [rsp + 0x50]
test r15d, r15d
je 0x140006501
lea rax, [rbp - 0x10]
lea r9, str.LogPath
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSideBySideConfiguration
call fcn.140007e58
test eax, eax
js 0x14000620f
mov rbx, qword [rbp - 0x10]
cmp word [rbx], si
je 0x14000620f
lea rdx, [rbp]
mov rcx, rbx
call fcn.14000843c
mov r14d, eax
test eax, eax
jns 0x1400061c7
lea r8, str.Failed_to_get_log_path_from:__ws
mov r9, rbx
mov edx, 1
mov ecx, eax
call fcn.140005608
xor r15d, r15d
jmp 0x140006896
mov rcx, qword [rbp]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x1400061cf
test rax, rax
je 0x1400061ee
mov rcx, qword [rbp]
cmp word [rcx + rax*2 - 2], 0x5c
jne 0x1400061ee
mov word [rcx + rax*2 - 2], si
mov rcx, qword [rbp]
call fcn.140008664
mov r14d, eax
test eax, eax
jns 0x1400062ce
mov r9, qword [rbp - 0x10]
lea r8, str.Failed_to_ensure_that_logging_directory_exists:__ws
jmp 0x1400061b3
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x10]
call fcn.140007794
mov r14d, eax
test eax, eax
jns 0x140006239
lea r9, [rbp + 0xb0]
lea r8, str.Failed_to_allocate_log_directory_from_windows_directory:__ws
jmp 0x1400061b3
lea rcx, [rbp - 0x10]
call fcn.1400078d8
mov r14d, eax
test eax, eax
jns 0x140006259
mov r9, qword [rbp - 0x10]
lea r8, str.Failed_to_ensure_log_directory_ended_with_a_backslash:__ws
jmp 0x1400061b3
lea rdx, str.LogsCBS
lea rcx, [rbp - 0x10]
call fcn.1400071dc
mov r14d, eax
test eax, eax
jns 0x140006280
mov r9, qword [rbp - 0x10]
lea r8, str.Failed_to_concat_CBS_name_on_to_log_directory:__ws
jmp 0x1400061b3
mov rbx, qword [rbp - 0x10]
lea rcx, [rbp]
mov rdx, rbx
call fcn.140007794
mov r14d, eax
test eax, eax
jns 0x1400062a3
lea r8, str.Failed_to_store_log_path_argument:__ws
jmp 0x1400061b0
lea rdx, str.CBS.log
lea rcx, [rbp - 0x10]
call fcn.1400071dc
mov r14d, eax
test eax, eax
jns 0x1400061ee
mov r9, qword [rbp - 0x10]
lea r8, str.Failed_to_add_log_name_log_directory:__ws
jmp 0x1400061b3
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x5c], esi
lea r9, str.CBSLogMaxInMB
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSideBySideConfiguration
call fcn.140008164
test eax, eax
js 0x1400062fc
mov ebx, dword [rsp + 0x5c]
cmp ebx, 0x28
jbe 0x140006301
mov ebx, 0xf
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], esi
lea r9, str.CBSLogHardMaxInMB
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSideBySideConfiguration
call fcn.140008164
test eax, eax
js 0x14000632e
mov esi, dword [rsp + 0x60]
cmp esi, ebx
jae 0x140006333
mov esi, 0x64
mov rcx, qword [rbp - 0x10]
lea rdx, [rbp - 0x80]
xor eax, eax
mov qword [rbp - 0x80], rax
call fcn.1400085a4
test eax, eax
js 0x1400064b4
shl ebx, 0x14
mov eax, ebx
cmp qword [rbp - 0x80], rax
jbe 0x1400064b4
lea rax, [rsp + 0x64]
lea r9, str.Start
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetServicesTrustedInstaller
call fcn.140008164
test eax, eax
js 0x140006394
cmp dword [rsp + 0x64], 2
jne 0x140006394
shl esi, 0x14
mov eax, esi
cmp qword [rbp - 0x80], rax
jbe 0x1400064b4
lea rcx, [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
nop dword [rax + rax]
movzx ecx, word [rbp + 0x1a]
movzx edx, word [rbp + 0x18]
movzx r8d, word [rbp + 0x16]
movzx eax, word [rbp + 0x1c]
movzx r10d, word [rbp + 0x12]
movzx r9d, word [rbp + 0x10]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rbp + 8]
mov dword [rsp + 0x30], edx
lea rdx, str._wsCbsPersist__02d_02d_02d_02d_02d_02d.log
mov dword [rsp + 0x28], r8d
mov r8, qword [rbp]
mov dword [rsp + 0x20], r10d
call fcn.1400074dc
xor esi, esi
test eax, eax
js 0x1400064e8
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], esi
lea r9, str.MaintenanceFlags
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSideBySide
call fcn.140008164
mov edx, eax
cmp eax, 0x80070002
jne 0x140006423
mov edx, esi
mov eax, esi
jmp 0x140006427
mov eax, dword [rsp + 0x68]
test edx, edx
jns 0x140006434
lea r9, str.Failed_getting_maintenance_flags.
jmp 0x14000644f
and eax, 0x7ffeffff
mov dword [rsp + 0x20], eax
call fcn.140008310
test eax, eax
jns 0x14000645d
lea r9, str.Failed_updating_maintenance_flags.
mov edx, eax
mov r8d, 1
mov ecx, r12d
call fcn.140006a50
mov rsi, qword [rbp + 8]
mov r8d, 1
mov rbx, qword [rbp - 0x10]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400064b4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r9, rbx
mov qword [rsp + 0x20], rsi
movzx ecx, ax
lea r8, str.Failed_to_move_log:__ws_to_backup_log:__ws__continuing_anyway.
or ecx, 0x80070000
mov edx, 1
test eax, eax
cmovle ecx, eax
call fcn.140005608
mov rsi, qword [rsp + 0x70]
test r15d, r15d
je 0x14000684e
xor r15d, r15d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140006523
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140006527
mov r9, qword [rbp - 0x10]
lea r8, str.Could_not_allocate_a_backup_name_for_the_log_file:__ws__well_just_continue_with_our_current_log_file.
mov edx, 1
mov ecx, eax
call fcn.140005608
jmp 0x1400064b9
xor r15d, r15d
mov r14d, 0x80004004
lea r8, str.WDS_logging_is_not_enabled_in_the_registry__continuing_without_logging.
mov ecx, r14d
mov edx, 1
call fcn.140005608
jmp 0x14000689b
test al, 0x10
je 0x140006596
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x6c], r15d
lea r9, str.CBSLogCompress
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSideBySideConfiguration
call fcn.140008164
mov ecx, dword [rsp + 0x6c]
test eax, eax
mov eax, 1
cmovs ecx, eax
test ecx, ecx
je 0x140006596
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x20], r15
call fcn.140008808
mov rcx, qword [rbp + 0x20]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006596
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test eax, eax
jns 0x140006596
mov ecx, 7
int 0x29
mov rbx, qword [rbp - 0x10]
test r13d, r13d
je 0x1400065e6
mov rax, qword [0x14003c930]
mov r8, rbx
mov edx, 0xb000
xor ecx, ecx
call qword [0x14001d8a8]
test rax, rax
jne 0x140006851
mov r9, rdi
mov qword [rsp + 0x20], rbx
lea r8, str.Failed_to_initialize_logging_with_dll:__ws__log_directory:__ws
mov ecx, 0x8000ffff
lea edx, [rax + 1]
call fcn.140005608
mov r14d, 0x8000ffff
jmp 0x14000689b
mov rax, qword [0x14003c908]
mov edx, 0x8000
mov rcx, rbx
call qword [0x14001d8a8]
test eax, eax
jne 0x140006623
mov ecx, 0x80004005
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea r8, str.Failed_to_initialize_logging_with_DLL:__ws__log_file:__ws
lea edx, [rax + 1]
mov r14d, ecx
call fcn.140005608
jmp 0x14000689b
mov esi, 0x400
lea rcx, [rbp + 0x30]
xor edx, edx
mov r8d, 0x80
mov ebx, esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x40
lea rdx, [rbp + 0x30]
lea rcx, str.COMPONENT_BASED_SERVICING_LOGLEVEL
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
dec eax
cmp eax, 0x3e
ja 0x140006687
mov r8d, 0x10
mov qword [rbp - 0x78], r15
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_wcstoul
mov ebx, eax
test eax, eax
jne 0x140006687
call sub.api_ms_win_crt_private_l1_1_0.dll__o__errno
cmp dword [rax], 0x22
cmove ebx, esi
mov rax, qword [0x14003c900]
call qword [0x14001d8a8]
mov rsi, rax
test rax, rax
jne 0x1400066b0
lea r8, str.Failed_to_acquire_log_manager
mov ecx, 0x8000ffff
lea edx, [rax + 1]
jmp 0x140005ebf
cmp ebx, 0x100
je 0x1400066da
cmp ebx, 0x200
je 0x1400066d3
cmp ebx, 0x400
mov eax, r12d
mov ecx, 0x9000000
cmovne eax, ecx
jmp 0x1400066dd
mov eax, 0x2000000
jmp 0x1400066dd
mov eax, r15d
and qword [rbp - 0x50], 0
lea rcx, [0x14001fde8]
mov dword [rbp - 0x68], eax
lea r9, [0x140020088]
mov qword [rbp - 0x70], rcx
lea rax, [0x14001fdf0]
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x70]
mov qword [rbp - 0x38], rcx
lea rax, [0x14001fdf8]
mov qword [rbp - 0x30], rax
lea rcx, [0x14003c8f8]
mov qword [rsp + 0x38], rcx
lea rax, [0x14001fe00]
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x30], rcx
lea rax, [0x14001fe08]
mov qword [rbp - 0x20], rax
lea rcx, [0x140020098]
mov rax, qword [rbp - 0x10]
lea rdx, [0x140020078]
mov qword [rsp + 0x28], rcx
mov ebx, 1
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x64], rbx
mov dword [rbp - 0x18], r15d
mov dword [rbp - 0x48], r15d
mov rax, qword [rsi]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov rax, qword [rax]
call qword [0x14001d8a8]
test eax, eax
jne 0x1400067a0
lea r8, str.Failed_to_configure_logging_settings
mov edx, ebx
mov ecx, 0x8000ffff
call fcn.140005608
jmp 0x140006884
mov rcx, qword [0x14003c8d8]
lea rdx, str.WdsLogRegisterProvider
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140006838
lea rdx, [0x140005830]
lea rcx, [0x140020068]
call qword [0x14001d8a8]
cmp eax, ebx
jne 0x140006838
mov rax, qword [rsi]
lea rcx, [0x14003c938]
mov qword [rsp + 0x38], rcx
lea r9, [0x140020088]
lea rcx, [0x140020068]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rcx
lea r8, [rbp - 0x70]
mov rax, qword [rax]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
lea rdx, [0x140020078]
mov rcx, rsi
call qword [0x14001d8a8]
test eax, eax
jne 0x14000685b
lea r9, str.Failed_to_add_CbsLogMonitor_provider
xor r8d, r8d
xor edx, edx
mov ecx, r12d
call fcn.140006a50
jmp 0x14000685b
lea r9, str.Failed_to_register_CbsLogMonitor_provider
xor r8d, r8d
xor edx, edx
mov ecx, r12d
call fcn.140006a50
jmp 0x140006856
xor r15d, r15d
mov ebx, 1
test r13d, r13d
jne 0x140006884
mov rcx, qword [rbp]
test rcx, rcx
je 0x140006884
call fcn.14000585c
mov r14d, eax
test eax, eax
jns 0x140006884
lea r9, str.Failed_to_delete_extra_backup_log_files.
mov r8d, ebx
mov edx, eax
mov ecx, r12d
call fcn.140006a50
test rsi, rsi
je 0x140006896
mov rax, qword [0x14003c8e8]
call qword [0x14001d8a8]
test r14d, r14d
jns 0x140006902
mov rcx, qword [0x14003c8d8]
mov qword [0x14003c930], r15
mov qword [0x14003c908], r15
mov qword [0x14003c900], r15
mov qword [0x14003c8e8], r15
mov qword [0x14003c910], r15
mov qword [0x14003c918], r15
mov qword [0x14003c928], r15
test rcx, rcx
je 0x140006902
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FreeLibrary]
nop dword [rax + rax]
test eax, eax
jne 0x1400068fb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 7
int 0x29
mov qword [0x14003c8d8], r15
mov rcx, qword [rbp]
test rcx, rcx
je 0x140006914
add rcx, 0xfffffffffffffff8
call fcn.14001b594
test rdi, rdi
je 0x140006922
lea rcx, [rdi - 8]
call fcn.14001b594
mov rsi, qword [rbp + 8]
test rsi, rsi
je 0x140006934
lea rcx, [rsi - 8]
call fcn.14001b594
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x140006946
lea rcx, [rbx - 8]
call fcn.14001b594
mov eax, r14d
mov rcx, qword [rbp + 0x6c0]
xor rcx, rsp
call fcn.14001b900
lea r11, [rsp + 0x7d0]
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