Function at 0x14000554c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x8d8]
sub rsp, 0x9c0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
lea rcx, str.Attempting_to_repair_the_framework_n
call fcn.140005328
xor r14d, r14d
mov edi, r14d
mov qword [rbp - 0x80], r14
mov r8d, r14d
mov dword [rsp + 0x60], r14d
lea r15d, [r14 + 1]
mov rbx, qword [0x14001b900]
test rbx, rbx
jne 0x140005613
cmp byte [0x14001b908], r14b
jne 0x14000560e
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400055f2
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x14001b900], rax
jmp 0x1400055f9
mov rbx, qword [0x14001b900]
mov byte [0x14001b908], r15b
test rbx, rbx
jne 0x140005613
mov rdi, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x60]
mov eax, r14d
jmp 0x14000563c
mov rcx, rbx
call qword [0x140011568]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov r8d, r15d
xor edx, edx
xor ecx, ecx
call rbx
mov rdi, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x60]
test eax, eax
jne 0x140005659
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Aborting_repair_due_to_error__u_from_WTSEnumerateSessions_n
mov edx, eax
call fcn.140005328
jmp 0x140005cde
mov edx, r14d
test r8d, r8d
je 0x140005687
mov eax, edx
lea rcx, [rax + rax*2]
cmp dword [rdi + rcx*8 + 0x10], r14d
je 0x140005678
add edx, r15d
cmp edx, r8d
jb 0x140005661
jmp 0x140005687
mov eax, edx
lea rdx, [rax + rax*2]
mov eax, dword [rdi + rdx*8]
mov dword [0x14001b250], eax
mov rbx, qword [0x14001b938]
test rbx, rbx
jne 0x1400056e2
cmp byte [0x14001b90b], r14b
jne 0x1400056f0
xor r8d, r8d
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400056cf
lea rdx, str.WTSFreeMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x14001b938], rax
jmp 0x1400056d6
mov rbx, qword [0x14001b938]
mov byte [0x14001b90b], r15b
test rbx, rbx
je 0x1400056f0
mov rcx, rbx
call qword [0x140011568]
mov rcx, rdi
call rbx
mov qword [rbp - 0x80], r14
mov r12d, 2
or ebx, 0xffffffff
mov edx, dword [0x14001b250]
cmp edx, ebx
je 0x140005710
lea rcx, str.Found_active_session__u_n
jmp 0x14000576e
lea rcx, str.No_active_session_found.__Waiting..._n
call fcn.140005328
mov rax, qword [0x14001b070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001b040]
mov qword [rsp + 0x70], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140005cd2
cmp eax, r15d
je 0x140005761
lea rcx, str.Aborting_repair_due_to_unexpected_wait_status__u_n
jmp 0x14000564d
mov edx, dword [0x14001b250]
lea rcx, str.Session__u_has_become_active._n
call fcn.140005328
or qword [rbp - 0x68], 0xffffffffffffffff
mov dword [rbp - 0x60], r14d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400067a8
nop
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rsi, rax
mov rbx, qword [0x14001b930]
test rbx, rbx
jne 0x1400057f7
cmp byte [0x14001b90c], r14b
jne 0x1400057f2
xor r8d, r8d
xor edx, edx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400057df
lea rdx, str.OpenProcessToken
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x14001b930], rax
jmp 0x1400057e6
mov rbx, qword [0x14001b930]
mov byte [0x14001b90c], r15b
test rbx, rbx
jne 0x1400057f7
mov eax, r14d
jmp 0x14000580d
mov rcx, rbx
call qword [0x140011568]
mov r8, rdi
mov edx, 0x2000000
mov rcx, rsi
call rbx
test eax, eax
sete cl
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0xffffffffffffffff
je 0x140005821
mov dword [rax + 8], r15d
test cl, cl
je 0x14000583e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_current_process_token__error__d_n
call fcn.140005328
jmp 0x140005cb7
or qword [rbp - 0x78], 0xffffffffffffffff
mov dword [rbp - 0x70], r14d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.1400067a8
nop
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9d, r15d
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
sete cl
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0xffffffffffffffff
je 0x14000588c
mov dword [rax + 8], r15d
test cl, cl
je 0x14000589f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_duplicating_current_process_token__error__d_n
jmp 0x1400058cc
mov edi, 4
mov r9d, edi
lea r8, [0x14001b250]
lea edx, [rdi + 8]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1400058d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_changing_token_session_ID__error__d_n
mov edx, eax
call fcn.140005328
jmp 0x140005c9e
mov edx, 0x104
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140005c9e
mov qword [rbp + 0x260], r14
mov qword [rbp + 0x264], 0x200
mov qword [rbp + 0x270], r14
lea rax, [rbp + 0x278]
mov qword [rbp + 0x270], rax
mov dword [rbp + 0x260], r12d
mov rax, qword [rbp + 0x270]
mov word [rax], r14w
lea rdx, [rbp + 0x6a0]
lea rcx, [rbp + 0x260]
call fcn.140009ea4
nop
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x6c], r12d
mov esi, 0x10
mov dword [rsp + 0x70], esi
lea rax, [0x140011750]
mov qword [rsp + 0x78], rax
xor r9d, r9d
mov r8d, edi
mov edx, r15d
lea rcx, [rsp + 0x68]
call fcn.14000b300
lea ecx, [rsi + 0x4c]
mov rax, qword [rsp + 0x78]
mov word [rax], cx
mov rax, qword [rsp + 0x78]
mov word [rax + 2], r14w
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x260]
call fcn.14000a73c
test eax, eax
sete bl
test byte [rsp + 0x70], 8
je 0x1400059b2
mov rcx, qword [rsp + 0x78]
call fcn.1400011b0
test bl, bl
je 0x1400059c2
lea rcx, [rbp + 0x260]
call fcn.140004560
lea rdx, str.Microsoft.NETNETFXRepair.exe
lea rcx, [rbp + 0x260]
call fcn.1400044a0
mov dword [rbp - 0x30], r12d
mov dword [rbp - 0x2c], r12d
mov dword [rbp - 0x28], esi
lea rax, [0x140011750]
mov qword [rbp - 0x20], rax
lea rdx, [rbp + 0x260]
lea rcx, [rbp - 0x30]
call fcn.1400042b0
mov ecx, dword [rbp + 0x268]
and ecx, 7
mov eax, dword [rbp - 0x28]
and eax, 0xfffffff8
mov dword [rbp - 0x28], eax
or eax, ecx
mov dword [rbp - 0x28], eax
btr eax, 8
mov dword [rbp - 0x28], eax
lea rax, [rbp - 0x18]
lea rcx, [rbp + 0x278]
mov rdx, rdi
mov r8d, 0x80
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rcx, r8
sub rdx, 1
jne 0x140005a2d
lea rdx, str.__OSUpgraded
lea rcx, [rbp - 0x30]
call fcn.1400044a0
mov qword [rbp + 0x480], r14
mov qword [rbp + 0x484], 0x200
mov qword [rbp + 0x490], r14
lea rax, [rbp + 0x498]
mov qword [rbp + 0x490], rax
mov dword [rbp + 0x480], r12d
mov rax, qword [rbp + 0x490]
mov word [rax], r14w
mov ecx, dword [rbp - 0x28]
test r12b, cl
je 0x140005af3
mov eax, ecx
and eax, 7
cmp al, 7
jne 0x140005ada
cmp dword [0x14001b0c0], r14d
je 0x140005af3
lea rcx, [rbp - 0x30]
call fcn.14000b2b0
test eax, eax
jne 0x140005af0
lea rcx, [rbp - 0x30]
call fcn.14000a0b8
mov ecx, dword [rbp - 0x28]
not ecx
and ecx, r15d
mov ebx, dword [rbp - 0x30]
shr ebx, cl
sub ebx, r15d
xor r9d, r9d
mov r8d, edi
lea edx, [rbx + 1]
lea rcx, [rbp + 0x480]
call fcn.14000b300
mov edx, dword [rbp + 0x488]
mov ecx, edx
not ecx
and ecx, r15d
add ebx, 2
shl ebx, cl
mov eax, dword [rbp + 0x484]
cmp ebx, eax
jbe 0x140005b4e
mov r8d, r15d
mov edx, ebx
lea rcx, [rbp + 0x480]
call fcn.14000c488
mov edx, dword [rbp + 0x488]
mov eax, dword [rbp + 0x484]
mov dword [rbp + 0x480], ebx
test sil, dl
je 0x140005b6a
mov r8d, r15d
mov edx, eax
lea rcx, [rbp + 0x480]
call fcn.14000c488
mov rdi, qword [rbp + 0x490]
lea rcx, [rbp - 0x30]
call fcn.14000a0b8
mov rsi, qword [rbp - 0x20]
mov ebx, dword [rbp - 0x28]
test r12b, bl
je 0x140005bb1
mov eax, ebx
and eax, 7
cmp al, 7
jne 0x140005b98
cmp dword [0x14001b0c0], r14d
je 0x140005bb1
lea rcx, [rbp - 0x30]
call fcn.14000b2b0
test eax, eax
jne 0x140005bae
lea rcx, [rbp - 0x30]
call fcn.14000a0b8
mov ebx, dword [rbp - 0x28]
mov ecx, ebx
not ecx
and cl, r15b
mov edx, dword [rbp - 0x30]
shr rdx, cl
or r9, 0xffffffffffffffff
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.MSVCR120_CLR0400.dll_wcsncpy_s]
mov dword [rbp + 0x1f0], 0x68
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp + 0x1f8]
call sub.MSVCR120_CLR0400.dll_memset
lea rcx, [rbp + 0x260]
call fcn.14000a0b8
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x48], rax
mov r8, rdi
mov rdx, qword [rbp + 0x270]
mov rcx, qword [rbp - 0x78]
call fcn.140006abc
test eax, eax
jne 0x140005c38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_create_repair_process__error__d_n
call fcn.140005328
jmp 0x140005c63
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp - 0x48]
mov edx, dword [0x14001b250]
lea rcx, str.Created_repair_process_in_session__d__process_ID__d_n
call fcn.140005328
nop
test byte [rbp + 0x488], 8
je 0x140005c79
mov rcx, qword [rbp + 0x490]
call fcn.1400011b0
nop
test bl, 8
je 0x140005c88
mov rcx, qword [rbp - 0x20]
call fcn.1400011b0
nop
test byte [rbp + 0x268], 8
je 0x140005c9e
mov rcx, qword [rbp + 0x270]
call fcn.1400011b0
nop
cmp dword [rbp - 0x70], r14d
je 0x140005cb7
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140005cb3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x70], r14d
cmp dword [rbp - 0x60], r14d
je 0x140005cde
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140005ccc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x60], r14d
jmp 0x140005cde
lea rcx, str.Aborting_repair_due_to_service_shutdown._n
call fcn.140005328
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.140001030
lea r11, [rsp + 0x9c0]
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