Function at 0x1400051e0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x8e8]
sub rsp, 0x9c0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
lea rcx, str.Attempting_to_repair_the_framework_n
call fcn.140004fac
xor r12d, r12d
mov ebx, r12d
mov qword [rbp - 0x80], rbx
mov ecx, r12d
mov dword [rsp + 0x60], ecx
lea edi, [r12 + 1]
mov rax, qword [0x14001a940]
test rax, rax
jne 0x1400052a6
cmp byte [0x14001a948], r12b
jne 0x1400052a1
xor r8d, r8d
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140005286
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001a940], rax
jmp 0x14000528d
mov rax, qword [0x14001a940]
mov byte [0x14001a948], dil
test rax, rax
jne 0x1400052a6
mov rbx, qword [rbp - 0x80]
mov ecx, dword [rsp + 0x60]
mov eax, r12d
jmp 0x1400052c5
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 ecx, dword [rsp + 0x60]
test eax, eax
jne 0x1400052e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Aborting_repair_due_to_error__u_from_WTSEnumerateSessions_n
mov edx, eax
call fcn.140004fac
jmp 0x140005999
mov eax, r12d
test ecx, ecx
je 0x14000530b
lea rdx, [rbx + 0x10]
cmp dword [rdx], r12d
je 0x1400052fe
add eax, edi
add rdx, 0x18
cmp eax, ecx
jb 0x1400052ed
jmp 0x14000530b
lea rdx, [rax + rax*2]
mov eax, dword [rbx + rdx*8]
mov dword [0x14001a28c], eax
mov rax, qword [0x14001a978]
test rax, rax
jne 0x140005363
cmp byte [0x14001a94b], r12b
jne 0x140005368
xor r8d, r8d
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140005350
lea rdx, str.WTSFreeMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001a978], rax
jmp 0x140005357
mov rax, qword [0x14001a978]
mov byte [0x14001a94b], dil
test rax, rax
je 0x140005368
mov rcx, rbx
call rax
mov qword [rbp - 0x80], r12
mov r13d, 2
or ebx, 0xffffffff
mov edx, dword [0x14001a28c]
cmp edx, ebx
je 0x140005388
lea rcx, str.Found_active_session__u_n
jmp 0x1400053e7
lea rcx, str.No_active_session_found.__Waiting..._n
call fcn.140004fac
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, r13d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
test eax, eax
je 0x14000598d
dec ecx
je 0x1400053da
lea rcx, str.Aborting_repair_due_to_unexpected_wait_status__u_n
jmp 0x1400052d6
mov edx, dword [0x14001a28c]
lea rcx, str.Session__u_has_become_active._n
call fcn.140004fac
or r15, 0xffffffffffffffff
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x60], r12d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140006450
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 0x140005476
cmp byte [0x14001a94c], r12b
jne 0x140005471
xor r8d, r8d
xor edx, edx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x14000545e
lea rdx, str.OpenProcessToken
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001a970], rax
jmp 0x140005465
mov rax, qword [0x14001a970]
mov byte [0x14001a94c], dil
test rax, rax
jne 0x140005476
mov eax, r12d
jmp 0x140005481
mov r8, rbx
mov edx, r14d
mov rcx, rsi
call rax
test eax, eax
sete cl
mov rax, qword [rsp + 0x68]
cmp qword [rax], r15
je 0x140005493
mov dword [rax + 8], edi
test cl, cl
je 0x1400054b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_current_process_token__error__d_n
call fcn.140004fac
jmp 0x140005972
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x70], r12d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.140006450
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], r15
je 0x1400054f8
mov dword [rax + 8], edi
test cl, cl
je 0x14000550b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_duplicating_current_process_token__error__d_n
jmp 0x140005538
mov esi, 4
mov r9d, esi
lea r8, [0x14001a28c]
lea edx, [rsi + 8]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x140005544
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_changing_token_session_ID__error__d_n
mov edx, eax
call fcn.140004fac
jmp 0x140005959
mov edx, 0x104
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140005959
mov qword [rbp + 0x260], r12
mov qword [rbp + 0x264], 0x200
mov qword [rbp + 0x270], r12
lea rax, [rbp + 0x278]
mov qword [rbp + 0x270], rax
mov r14d, 0x200
mov dword [rbp + 0x260], r13d
mov rax, qword [rbp + 0x270]
mov word [rax], r12w
lea rdx, [rbp + 0x6a0]
lea rcx, [rbp + 0x260]
call fcn.140009460
nop
mov dword [rsp + 0x68], r13d
mov dword [rsp + 0x6c], r13d
mov dword [rsp + 0x70], 0x10
lea r15, [0x1400104c8]
mov qword [rsp + 0x78], r15
xor r9d, r9d
mov r8d, esi
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.14000a8e8
mov ecx, 0x5c
mov rax, qword [rsp + 0x78]
mov word [rax], cx
mov rax, qword [rsp + 0x78]
mov word [rax + 2], r12w
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x260]
call fcn.140009d40
test eax, eax
sete bl
test byte [rsp + 0x70], 8
je 0x14000562c
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x14000562c
xor ecx, ecx
call qword [0x14001a008]
test bl, bl
je 0x14000563c
lea rcx, [rbp + 0x260]
call fcn.140004224
lea rdx, str.Microsoft.NETNETFXRepair.exe
lea rcx, [rbp + 0x260]
call fcn.140004140
mov dword [rbp - 0x30], r13d
mov dword [rbp - 0x2c], r13d
mov dword [rbp - 0x28], 0x10
mov qword [rbp - 0x20], r15
lea rdx, [rbp + 0x260]
lea rcx, [rbp - 0x30]
call fcn.140003f48
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 0x140005705
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 0x1400056ba
jmp 0x140005714
mov r8, r14
mov rdx, r10
mov rcx, r9
call sub.MSVCR110_CLR0400.dll_memcpy
nop
lea rdx, str.__OSUpgraded
lea rcx, [rbp - 0x30]
call fcn.140004140
mov qword [rbp + 0x480], r12
mov qword [rbp + 0x484], 0x200
mov qword [rbp + 0x490], r12
lea rax, [rbp + 0x498]
mov qword [rbp + 0x490], rax
mov dword [rbp + 0x480], r13d
mov rax, qword [rbp + 0x490]
mov word [rax], r12w
mov ecx, dword [rbp - 0x28]
test r13b, cl
je 0x140005790
mov eax, ecx
and eax, 7
cmp al, 7
jne 0x140005777
cmp dword [0x14001a0c0], r12d
je 0x140005790
lea rcx, [rbp - 0x30]
call fcn.14000a898
test eax, eax
jne 0x14000578d
lea rcx, [rbp - 0x30]
call fcn.140009680
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.14000a8e8
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 0x1400057e8
mov r8d, edi
mov edx, ebx
lea rcx, [rbp + 0x480]
call fcn.14000b974
mov edx, dword [rbp + 0x488]
mov eax, dword [rbp + 0x484]
mov dword [rbp + 0x480], ebx
test dl, 0x10
je 0x140005804
mov r8d, edi
mov edx, eax
lea rcx, [rbp + 0x480]
call fcn.14000b974
mov r14, qword [rbp + 0x490]
lea rcx, [rbp - 0x30]
call fcn.140009680
mov rsi, qword [rbp - 0x20]
mov r15, rsi
mov ebx, dword [rbp - 0x28]
test r13b, bl
je 0x140005852
mov eax, ebx
and eax, 7
cmp al, 7
jne 0x140005835
cmp dword [0x14001a0c0], r12d
je 0x140005852
lea rcx, [rbp - 0x30]
call fcn.14000a898
test eax, eax
jne 0x14000584b
lea rcx, [rbp - 0x30]
call fcn.140009680
mov ebx, dword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
mov ecx, ebx
not ecx
and cl, dil
mov edx, dword [rbp - 0x30]
shr rdx, cl
or r9, 0xffffffffffffffff
mov r8, r15
mov rcx, r14
call qword [sym.imp.MSVCR110_CLR0400.dll_wcsncpy_s]
mov dword [rbp + 0x1f0], 0x68
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp + 0x1f8]
call sub.MSVCR110_CLR0400.dll_memset
lea rcx, [rbp + 0x260]
call fcn.140009680
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x48], rax
mov r8, r14
mov rdx, qword [rbp + 0x270]
mov rcx, qword [rbp - 0x78]
call fcn.1400066e4
test eax, eax
jne 0x1400058d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_create_repair_process__error__d_n
call fcn.140004fac
jmp 0x140005904
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 [0x14001a28c]
lea rcx, str.Created_repair_process_in_session__d__process_ID__d_n
call fcn.140004fac
nop
mov dil, 8
test byte [rbp + 0x488], dil
je 0x140005925
mov rdx, qword [rbp + 0x490]
test rdx, rdx
je 0x140005925
xor ecx, ecx
call qword [0x14001a008]
nop
test dil, bl
je 0x14000593b
test rsi, rsi
je 0x14000593b
mov rdx, rsi
xor ecx, ecx
call qword [0x14001a008]
nop
test byte [rbp + 0x268], dil
je 0x140005959
mov rdx, qword [rbp + 0x270]
test rdx, rdx
je 0x140005959
xor ecx, ecx
call qword [0x14001a008]
nop
cmp dword [rbp - 0x70], r12d
je 0x140005972
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000596e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x70], r12d
cmp dword [rbp - 0x60], r12d
je 0x140005999
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140005987
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x60], r12d
jmp 0x140005999
lea rcx, str.Aborting_repair_due_to_service_shutdown._n
call fcn.140004fac
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.140001680
lea r11, [rsp + 0x9c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret