Function at 0x140004ee0
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.140004cc0
xor r15d, r15d
mov ebx, r15d
mov qword [rbp - 0x80], rbx
mov r8d, r15d
mov dword [rsp + 0x60], r15d
lea edi, [r15 + 1]
mov rax, qword [0x14001a940]
test rax, rax
jne 0x140004fa4
cmp byte [0x14001a948], r15b
jne 0x140004f9f
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140004f83
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001a940], rax
jmp 0x140004f8a
mov rax, qword [0x14001a940]
mov byte [0x14001a948], dil
test rax, rax
jne 0x140004fa4
mov rbx, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x60]
mov eax, r15d
jmp 0x140004fc4
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x80]
mov r8d, edi
xor edx, edx
xor ecx, ecx
call rax
mov rbx, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x60]
test eax, eax
jne 0x140004fe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Aborting_repair_due_to_error__u_from_WTSEnumerateSessions_n
mov edx, eax
call fcn.140004cc0
jmp 0x14000567a
mov edx, r15d
test r8d, r8d
je 0x14000500e
mov eax, edx
lea rcx, [rax + rax*2]
cmp dword [rbx + rcx*8 + 0x10], r15d
je 0x140004fff
add edx, edi
cmp edx, r8d
jb 0x140004fe9
jmp 0x14000500e
mov eax, edx
lea rdx, [rax + rax*2]
mov eax, dword [rbx + rdx*8]
mov dword [0x14001a250], eax
mov rax, qword [0x14001a978]
test rax, rax
jne 0x140005066
cmp byte [0x14001a94b], r15b
jne 0x14000506b
xor r8d, r8d
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140005053
lea rdx, str.WTSFreeMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001a978], rax
jmp 0x14000505a
mov rax, qword [0x14001a978]
mov byte [0x14001a94b], dil
test rax, rax
je 0x14000506b
mov rcx, rbx
call rax
mov qword [rbp - 0x80], r15
mov r12d, 2
or ebx, 0xffffffff
mov edx, dword [0x14001a250]
cmp edx, ebx
je 0x14000508b
lea rcx, str.Found_active_session__u_n
jmp 0x1400050ea
lea rcx, str.No_active_session_found.__Waiting..._n
call fcn.140004cc0
mov rax, qword [0x14001a068]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001a040]
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]
mov ecx, eax
test eax, eax
je 0x14000566e
dec ecx
je 0x1400050dd
lea rcx, str.Aborting_repair_due_to_unexpected_wait_status__u_n
jmp 0x140004fd5
mov edx, dword [0x14001a250]
lea rcx, str.Session__u_has_become_active._n
call fcn.140004cc0
or qword [rbp - 0x68], 0xffffffffffffffff
mov dword [rbp - 0x60], r15d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140006110
nop
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rsi, rax
mov r14d, 0x2000000
mov rax, qword [0x14001a970]
test rax, rax
jne 0x140005176
cmp byte [0x14001a94c], r15b
jne 0x140005171
xor r8d, r8d
xor edx, edx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x14000515e
lea rdx, str.OpenProcessToken
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001a970], rax
jmp 0x140005165
mov rax, qword [0x14001a970]
mov byte [0x14001a94c], dil
test rax, rax
jne 0x140005176
mov eax, r15d
jmp 0x140005181
mov r8, rbx
mov edx, r14d
mov rcx, rsi
call rax
test eax, eax
sete cl
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0xffffffffffffffff
je 0x140005194
mov dword [rax + 8], edi
test cl, cl
je 0x1400051b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_current_process_token__error__d_n
call fcn.140004cc0
jmp 0x140005653
or qword [rbp - 0x78], 0xffffffffffffffff
mov dword [rbp - 0x70], r15d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.140006110
nop
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, edi
xor r8d, r8d
mov edx, r14d
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 0x1400051fb
mov dword [rax + 8], edi
test cl, cl
je 0x14000520e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_duplicating_current_process_token__error__d_n
jmp 0x14000523b
mov esi, 4
mov r9d, esi
lea r8, [0x14001a250]
lea edx, [rsi + 8]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x140005247
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_changing_token_session_ID__error__d_n
mov edx, eax
call fcn.140004cc0
jmp 0x14000563a
mov edx, 0x104
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x14000563a
mov qword [rbp + 0x260], r15
mov qword [rbp + 0x264], 0x200
mov qword [rbp + 0x270], r15
lea rax, [rbp + 0x278]
mov qword [rbp + 0x270], rax
mov r14d, 0x200
mov dword [rbp + 0x260], r12d
mov rax, qword [rbp + 0x270]
mov word [rax], r15w
lea rdx, [rbp + 0x6a0]
lea rcx, [rbp + 0x260]
call fcn.140009398
nop
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x6c], r12d
mov dword [rsp + 0x70], 0x10
lea rax, [0x1400104d0]
mov qword [rsp + 0x78], rax
xor r9d, r9d
mov r8d, esi
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.14000a788
mov ecx, 0x5c
mov rax, qword [rsp + 0x78]
mov word [rax], cx
mov rax, qword [rsp + 0x78]
mov word [rax + 2], r15w
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x260]
call fcn.140009c28
test eax, eax
sete bl
test byte [rsp + 0x70], 8
je 0x140005327
mov rcx, qword [rsp + 0x78]
call fcn.140001094
test bl, bl
je 0x140005337
lea rcx, [rbp + 0x260]
call fcn.140003fa8
lea rdx, str.Microsoft.NETNETFXRepair.exe
lea rcx, [rbp + 0x260]
call fcn.140003ee8
mov dword [rbp - 0x30], r12d
mov dword [rbp - 0x2c], r12d
mov dword [rbp - 0x28], 0x10
lea rax, [0x1400104d0]
mov qword [rbp - 0x20], rax
lea rdx, [rbp + 0x260]
lea rcx, [rbp - 0x30]
call fcn.140003cf8
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 r9, [rbp - 0x18]
lea r10, [rbp + 0x278]
lea rcx, [rbp - 0x18]
lea rdx, [rbp + 0x278]
mov rax, rdx
or rax, rcx
and eax, 0xf
jne 0x140005407
mov rax, rsi
mov r8d, 0x80
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [rcx + 0x50], xmm1
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [rcx + 0x60], xmm0
add rcx, r8
movaps xmm1, xmmword [rdx + 0x70]
movaps xmmword [rcx - 0x10], xmm1
add rdx, r8
dec rax
jne 0x1400053bc
jmp 0x140005416
mov r8, r14
mov rdx, r10
mov rcx, r9
call sub.MSVCR120_CLR0400.dll_memcpy
nop
lea rdx, str.__OSUpgraded
lea rcx, [rbp - 0x30]
call fcn.140003ee8
mov qword [rbp + 0x480], r15
mov qword [rbp + 0x484], 0x200
mov qword [rbp + 0x490], r15
lea rax, [rbp + 0x498]
mov qword [rbp + 0x490], rax
mov dword [rbp + 0x480], r12d
mov rax, qword [rbp + 0x490]
mov word [rax], r15w
mov ecx, dword [rbp - 0x28]
test r12b, cl
je 0x140005492
mov eax, ecx
and eax, 7
cmp al, 7
jne 0x140005479
cmp dword [0x14001a0c0], r15d
je 0x140005492
lea rcx, [rbp - 0x30]
call fcn.14000a738
test eax, eax
jne 0x14000548f
lea rcx, [rbp - 0x30]
call fcn.1400095ac
mov ecx, dword [rbp - 0x28]
not ecx
and ecx, edi
mov ebx, dword [rbp - 0x30]
shr ebx, cl
sub ebx, edi
xor r9d, r9d
mov r8d, esi
lea edx, [rbx + 1]
lea rcx, [rbp + 0x480]
call fcn.14000a788
mov edx, dword [rbp + 0x488]
mov ecx, edx
not ecx
and ecx, edi
add ebx, 2
shl ebx, cl
mov eax, dword [rbp + 0x484]
cmp ebx, eax
jbe 0x1400054ea
mov r8d, edi
mov edx, ebx
lea rcx, [rbp + 0x480]
call fcn.14000b800
mov edx, dword [rbp + 0x488]
mov eax, dword [rbp + 0x484]
mov dword [rbp + 0x480], ebx
test dl, 0x10
je 0x140005506
mov r8d, edi
mov edx, eax
lea rcx, [rbp + 0x480]
call fcn.14000b800
mov rsi, qword [rbp + 0x490]
lea rcx, [rbp - 0x30]
call fcn.1400095ac
mov r14, qword [rbp - 0x20]
mov ebx, dword [rbp - 0x28]
test r12b, bl
je 0x14000554d
mov eax, ebx
and eax, 7
cmp al, 7
jne 0x140005534
cmp dword [0x14001a0c0], r15d
je 0x14000554d
lea rcx, [rbp - 0x30]
call fcn.14000a738
test eax, eax
jne 0x14000554a
lea rcx, [rbp - 0x30]
call fcn.1400095ac
mov ebx, dword [rbp - 0x28]
mov ecx, ebx
not ecx
and cl, dil
mov edx, dword [rbp - 0x30]
shr rdx, cl
or r9, 0xffffffffffffffff
mov r8, r14
mov rcx, rsi
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.1400095ac
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x48], rax
mov r8, rsi
mov rdx, qword [rbp + 0x270]
mov rcx, qword [rbp - 0x78]
call fcn.140006408
test eax, eax
jne 0x1400055d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_create_repair_process__error__d_n
call fcn.140004cc0
jmp 0x1400055ff
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 [0x14001a250]
lea rcx, str.Created_repair_process_in_session__d__process_ID__d_n
call fcn.140004cc0
nop
test byte [rbp + 0x488], 8
je 0x140005615
mov rcx, qword [rbp + 0x490]
call fcn.140001094
nop
test bl, 8
je 0x140005624
mov rcx, qword [rbp - 0x20]
call fcn.140001094
nop
test byte [rbp + 0x268], 8
je 0x14000563a
mov rcx, qword [rbp + 0x270]
call fcn.140001094
nop
cmp dword [rbp - 0x70], r15d
je 0x140005653
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000564f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x70], r15d
cmp dword [rbp - 0x60], r15d
je 0x14000567a
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140005668
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x60], r15d
jmp 0x14000567a
lea rcx, str.Aborting_repair_due_to_service_shutdown._n
call fcn.140004cc0
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.140001680
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