Function at 0x1400050a4
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.140004e84
xor r14d, r14d
mov ebx, r14d
mov qword [rbp - 0x80], rbx
mov r8d, r14d
mov dword [rsp + 0x60], r14d
lea r15d, [r14 + 1]
mov rax, qword [0x14001b900]
test rax, rax
jne 0x140005168
cmp byte [0x14001b908], r14b
jne 0x140005163
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140005147
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001b900], rax
jmp 0x14000514e
mov rax, qword [0x14001b900]
mov byte [0x14001b908], r15b
test rax, rax
jne 0x140005168
mov rbx, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x60]
mov eax, r14d
jmp 0x140005188
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x80]
mov r8d, r15d
xor edx, edx
xor ecx, ecx
call rax
mov rbx, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x60]
test eax, eax
jne 0x1400051a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Aborting_repair_due_to_error__u_from_WTSEnumerateSessions_n
mov edx, eax
call fcn.140004e84
jmp 0x140005812
mov edx, r14d
test r8d, r8d
je 0x1400051d3
mov eax, edx
lea rcx, [rax + rax*2]
cmp dword [rbx + rcx*8 + 0x10], r14d
je 0x1400051c4
add edx, r15d
cmp edx, r8d
jb 0x1400051ad
jmp 0x1400051d3
mov eax, edx
lea rdx, [rax + rax*2]
mov eax, dword [rbx + rdx*8]
mov dword [0x14001b250], eax
mov rax, qword [0x14001b938]
test rax, rax
jne 0x14000522b
cmp byte [0x14001b90b], r14b
jne 0x140005230
xor r8d, r8d
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140005218
lea rdx, str.WTSFreeMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001b938], rax
jmp 0x14000521f
mov rax, qword [0x14001b938]
mov byte [0x14001b90b], r15b
test rax, rax
je 0x140005230
mov rcx, rbx
call rax
mov qword [rbp - 0x80], r14
mov r12d, 2
or ebx, 0xffffffff
mov edx, dword [0x14001b250]
cmp edx, ebx
je 0x140005250
lea rcx, str.Found_active_session__u_n
jmp 0x1400052ae
lea rcx, str.No_active_session_found.__Waiting..._n
call fcn.140004e84
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 0x140005806
cmp eax, r15d
je 0x1400052a1
lea rcx, str.Aborting_repair_due_to_unexpected_wait_status__u_n
jmp 0x140005199
mov edx, dword [0x14001b250]
lea rcx, str.Session__u_has_become_active._n
call fcn.140004e84
or rsi, 0xffffffffffffffff
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], r14d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400062b0
nop
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
mov rax, qword [0x14001b930]
test rax, rax
jne 0x140005337
cmp byte [0x14001b90c], r14b
jne 0x140005332
xor r8d, r8d
xor edx, edx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x14000531f
lea rdx, str.OpenProcessToken
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001b930], rax
jmp 0x140005326
mov rax, qword [0x14001b930]
mov byte [0x14001b90c], r15b
test rax, rax
jne 0x140005337
mov eax, r14d
jmp 0x140005344
mov r8, rbx
mov edx, 0x2000000
mov rcx, rdi
call rax
test eax, eax
sete cl
mov rax, qword [rsp + 0x68]
cmp qword [rax], rsi
je 0x140005357
mov dword [rax + 8], r15d
test cl, cl
je 0x140005374
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_current_process_token__error__d_n
call fcn.140004e84
jmp 0x1400057eb
mov qword [rbp - 0x78], rsi
mov dword [rbp - 0x70], r14d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.1400062b0
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], rsi
je 0x1400053c0
mov dword [rax + 8], r15d
test cl, cl
je 0x1400053d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_duplicating_current_process_token__error__d_n
jmp 0x140005400
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 0x14000540c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_changing_token_session_ID__error__d_n
mov edx, eax
call fcn.140004e84
jmp 0x1400057d2
mov edx, 0x104
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x1400057d2
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.1400094dc
nop
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x6c], r12d
mov esi, 0x10
mov dword [rsp + 0x70], esi
lea rax, [0x1400114e8]
mov qword [rsp + 0x78], rax
xor r9d, r9d
mov r8d, edi
mov edx, r15d
lea rcx, [rsp + 0x68]
call fcn.14000a938
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.140009d74
test eax, eax
sete bl
test byte [rsp + 0x70], 8
je 0x1400054e6
mov rcx, qword [rsp + 0x78]
call fcn.1400010a0
test bl, bl
je 0x1400054f6
lea rcx, [rbp + 0x260]
call fcn.140004168
lea rdx, str.Microsoft.NETNETFXRepair.exe
lea rcx, [rbp + 0x260]
call fcn.1400040a8
mov dword [rbp - 0x30], r12d
mov dword [rbp - 0x2c], r12d
mov dword [rbp - 0x28], esi
lea rax, [0x1400114e8]
mov qword [rbp - 0x20], rax
lea rdx, [rbp + 0x260]
lea rcx, [rbp - 0x30]
call fcn.140003eb8
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 0x140005561
lea rdx, str.__OSUpgraded
lea rcx, [rbp - 0x30]
call fcn.1400040a8
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 0x140005627
mov eax, ecx
and eax, 7
cmp al, 7
jne 0x14000560e
cmp dword [0x14001b0c0], r14d
je 0x140005627
lea rcx, [rbp - 0x30]
call fcn.14000a8e8
test eax, eax
jne 0x140005624
lea rcx, [rbp - 0x30]
call fcn.1400096f0
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.14000a938
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 0x140005682
mov r8d, r15d
mov edx, ebx
lea rcx, [rbp + 0x480]
call fcn.14000b9b4
mov edx, dword [rbp + 0x488]
mov eax, dword [rbp + 0x484]
mov dword [rbp + 0x480], ebx
test sil, dl
je 0x14000569e
mov r8d, r15d
mov edx, eax
lea rcx, [rbp + 0x480]
call fcn.14000b9b4
mov rdi, qword [rbp + 0x490]
lea rcx, [rbp - 0x30]
call fcn.1400096f0
mov rsi, qword [rbp - 0x20]
mov ebx, dword [rbp - 0x28]
test r12b, bl
je 0x1400056e5
mov eax, ebx
and eax, 7
cmp al, 7
jne 0x1400056cc
cmp dword [0x14001b0c0], r14d
je 0x1400056e5
lea rcx, [rbp - 0x30]
call fcn.14000a8e8
test eax, eax
jne 0x1400056e2
lea rcx, [rbp - 0x30]
call fcn.1400096f0
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.1400096f0
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.1400065a4
test eax, eax
jne 0x14000576c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_create_repair_process__error__d_n
call fcn.140004e84
jmp 0x140005797
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.140004e84
nop
test byte [rbp + 0x488], 8
je 0x1400057ad
mov rcx, qword [rbp + 0x490]
call fcn.1400010a0
nop
test bl, 8
je 0x1400057bc
mov rcx, qword [rbp - 0x20]
call fcn.1400010a0
nop
test byte [rbp + 0x268], 8
je 0x1400057d2
mov rcx, qword [rbp + 0x270]
call fcn.1400010a0
nop
cmp dword [rbp - 0x70], r14d
je 0x1400057eb
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400057e7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x70], r14d
cmp dword [rbp - 0x60], r14d
je 0x140005812
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140005800
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x60], r14d
jmp 0x140005812
lea rcx, str.Aborting_repair_due_to_service_shutdown._n
call fcn.140004e84
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.140001460
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