Function at 0x14000392c
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 [0x140022010]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
lea rcx, str.Attempting_to_repair_the_framework_n
call fcn.140003708
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 [0x1400228c0]
test rbx, rbx
jne 0x1400039f3
cmp byte [0x1400228ae], r14b
jne 0x1400039ee
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400039d2
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1400228c0], rax
jmp 0x1400039d9
mov rbx, qword [0x1400228c0]
mov byte [0x1400228ae], r15b
test rbx, rbx
jne 0x1400039f3
mov rdi, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x60]
mov eax, r14d
jmp 0x140003a1c
mov rcx, rbx
call qword [fcn.14000e680]
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 0x140003a39
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Aborting_repair_due_to_error__u_from_WTSEnumerateSessions_n
mov edx, eax
call fcn.140003708
jmp 0x1400040b5
mov edx, r14d
test r8d, r8d
je 0x140003a67
mov eax, edx
lea rcx, [rax + rax*2]
cmp dword [rdi + rcx*8 + 0x10], r14d
je 0x140003a58
add edx, r15d
cmp edx, r8d
jb 0x140003a41
jmp 0x140003a67
mov eax, edx
lea rdx, [rax + rax*2]
mov eax, dword [rdi + rdx*8]
mov dword [0x140022044], eax
mov rbx, qword [0x1400228b8]
test rbx, rbx
jne 0x140003ac2
cmp byte [0x1400228ad], r14b
jne 0x140003ad0
xor r8d, r8d
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140003aaf
lea rdx, str.WTSFreeMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1400228b8], rax
jmp 0x140003ab6
mov rbx, qword [0x1400228b8]
mov byte [0x1400228ad], r15b
test rbx, rbx
je 0x140003ad0
mov rcx, rbx
call qword [fcn.14000e680]
mov rcx, rdi
call rbx
mov qword [rbp - 0x80], r14
mov r12d, 2
or ebx, 0xffffffff
mov edx, dword [0x140022044]
cmp edx, ebx
je 0x140003af0
lea rcx, str.Found_active_session__u_n
jmp 0x140003b4e
lea rcx, str.No_active_session_found.__Waiting..._n
call fcn.140003708
mov rax, qword [0x1400220b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400220d0]
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 0x1400040a9
cmp eax, r15d
je 0x140003b41
lea rcx, str.Aborting_repair_due_to_unexpected_wait_status__u_n
jmp 0x140003a2d
mov edx, dword [0x140022044]
lea rcx, str.Session__u_has_become_active._n
call fcn.140003708
or qword [rbp - 0x68], 0xffffffffffffffff
mov dword [rbp - 0x60], r14d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140004d54
nop
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rsi, rax
mov rbx, qword [0x140022898]
test rbx, rbx
jne 0x140003bd7
cmp byte [0x1400228af], r14b
jne 0x140003bd2
xor r8d, r8d
xor edx, edx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140003bbf
lea rdx, str.OpenProcessToken
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x140022898], rax
jmp 0x140003bc6
mov rbx, qword [0x140022898]
mov byte [0x1400228af], r15b
test rbx, rbx
jne 0x140003bd7
mov eax, r14d
jmp 0x140003bee
mov rcx, rbx
call qword [fcn.14000e680]
mov r8, rdi
mov edx, 0x2000000
mov rcx, rsi
call rbx
nop
mov rcx, qword [rsp + 0x68]
cmp qword [rcx], 0xffffffffffffffff
je 0x140003bfd
mov dword [rcx + 8], r15d
test eax, eax
jne 0x140003c1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_current_process_token__error__d_n
call fcn.140003708
jmp 0x14000408e
or qword [rbp - 0x78], 0xffffffffffffffff
mov dword [rbp - 0x70], r14d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.140004d54
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 0x140003c68
mov dword [rax + 8], r15d
test cl, cl
je 0x140003c7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_duplicating_current_process_token__error__d_n
jmp 0x140003ca8
mov edi, 4
mov r9d, edi
lea r8, [0x140022044]
lea edx, [rdi + 8]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x140003cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_changing_token_session_ID__error__d_n
mov edx, eax
call fcn.140003708
jmp 0x140004075
mov edx, 0x104
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140004075
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
lea rdx, [rbp + 0x6a0]
lea rcx, [rbp + 0x480]
call fcn.1400085d8
nop
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x6c], r12d
mov esi, 0x10
mov dword [rsp + 0x70], esi
lea rax, [0x1400132d0]
mov qword [rsp + 0x78], rax
xor r9d, r9d
mov r8d, edi
mov edx, r15d
lea rcx, [rsp + 0x68]
call fcn.140009a60
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 + 0x480]
call fcn.140008e3c
test eax, eax
sete bl
test byte [rsp + 0x70], 8
je 0x140003d8e
mov rcx, qword [rsp + 0x78]
call fcn.140005218
test bl, bl
je 0x140003d9e
lea rcx, [rbp + 0x480]
call fcn.1400015bc
lea rdx, str.Microsoft.NETNETFXRepair.exe
lea rcx, [rbp + 0x480]
call fcn.1400014fc
mov dword [rbp - 0x30], r12d
mov dword [rbp - 0x2c], r12d
mov dword [rbp - 0x28], esi
lea rax, [0x1400132d0]
mov qword [rbp - 0x20], rax
lea rdx, [rbp + 0x480]
lea rcx, [rbp - 0x30]
call fcn.140001310
mov ecx, dword [rbp + 0x488]
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 + 0x498]
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 0x140003e09
lea rdx, str.__OSUpgraded
lea rcx, [rbp - 0x30]
call fcn.1400014fc
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
mov ecx, dword [rbp - 0x28]
test r12b, cl
je 0x140003ecf
mov eax, ecx
and eax, 7
cmp al, 7
jne 0x140003eb6
cmp dword [0x140022080], r14d
je 0x140003ecf
lea rcx, [rbp - 0x30]
call fcn.140009a10
test eax, eax
jne 0x140003ecc
lea rcx, [rbp - 0x30]
call fcn.1400087cc
mov ecx, dword [rbp - 0x28]
not ecx
and ecx, r15d
mov ebx, dword [rbp - 0x30]
shr ebx, cl
xor r9d, r9d
mov r8d, edi
mov edx, ebx
lea rcx, [rbp + 0x260]
call fcn.140009a60
mov edx, dword [rbp + 0x268]
mov ecx, edx
not ecx
and ecx, r15d
inc ebx
shl ebx, cl
mov eax, dword [rbp + 0x264]
cmp ebx, eax
jbe 0x140003f25
mov r8d, r15d
mov edx, ebx
lea rcx, [rbp + 0x260]
call fcn.14000b0fc
mov edx, dword [rbp + 0x268]
mov eax, dword [rbp + 0x264]
mov dword [rbp + 0x260], ebx
test sil, dl
je 0x140003f41
mov r8d, r15d
mov edx, eax
lea rcx, [rbp + 0x260]
call fcn.14000b0fc
mov rdi, qword [rbp + 0x270]
lea rcx, [rbp - 0x30]
call fcn.1400087cc
mov rsi, qword [rbp - 0x20]
mov ebx, dword [rbp - 0x28]
test r12b, bl
je 0x140003f88
mov eax, ebx
and eax, 7
cmp al, 7
jne 0x140003f6f
cmp dword [0x140022080], r14d
je 0x140003f88
lea rcx, [rbp - 0x30]
call fcn.140009a10
test eax, eax
jne 0x140003f85
lea rcx, [rbp - 0x30]
call fcn.1400087cc
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.ucrtbase_clr0400.dll_wcsncpy_s]
mov dword [rbp + 0x1f0], 0x68
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp + 0x1f8]
call sub.VCRUNTIME140_CLR0400.dll_memset
lea rcx, [rbp + 0x480]
call fcn.1400087cc
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 + 0x490]
mov rcx, qword [rbp - 0x78]
call fcn.140004fc4
test eax, eax
jne 0x14000400f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_create_repair_process__error__d_n
call fcn.140003708
jmp 0x14000403a
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 [0x140022044]
lea rcx, str.Created_repair_process_in_session__d__process_ID__d_n
call fcn.140003708
nop
test byte [rbp + 0x268], 8
je 0x140004050
mov rcx, qword [rbp + 0x270]
call fcn.140005218
nop
test bl, 8
je 0x14000405f
mov rcx, qword [rbp - 0x20]
call fcn.140005218
nop
test byte [rbp + 0x488], 8
je 0x140004075
mov rcx, qword [rbp + 0x490]
call fcn.140005218
nop
cmp dword [rbp - 0x70], r14d
je 0x14000408e
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000408a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x70], r14d
cmp dword [rbp - 0x60], r14d
je 0x1400040b5
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400040a3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x60], r14d
jmp 0x1400040b5
lea rcx, str.Aborting_repair_due_to_service_shutdown._n
call fcn.140003708
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.14000db20
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