Function at 0x1800034c8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r13
push r14
lea rbp, [rax - 0x8a8]
sub rsp, 0x990
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x18001b030]
xor rax, rsp
mov qword [rbp + 0x880], rax
lea rcx, str.Attempting_to_repair_the_framework_n
call fcn.1800032a8
xor r14d, r14d
mov ebx, r14d
mov qword [rsp + 0x70], rbx
mov ecx, r14d
mov dword [rsp + 0x50], ecx
lea edi, [r14 + 1]
mov rax, qword [0x180021308]
test rax, rax
jne 0x18000358f
cmp byte [0x1800212ec], r14b
jne 0x18000358a
xor r8d, r8d
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x18000356e
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180021308], rax
jmp 0x180003575
mov rax, qword [0x180021308]
mov byte [0x1800212ec], dil
test rax, rax
jne 0x18000358f
mov rbx, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x50]
mov eax, r14d
jmp 0x1800035b0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
mov r8d, edi
xor edx, edx
xor ecx, ecx
call rax
mov rbx, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x50]
test eax, eax
jne 0x1800035cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Aborting_repair_due_to_error__u_from_WTSEnumerateSessions_n
mov edx, eax
call fcn.1800032a8
jmp 0x180003ccb
mov eax, r14d
test ecx, ecx
je 0x1800035f6
lea rdx, [rbx + 0x10]
cmp dword [rdx], r14d
je 0x1800035e9
add eax, edi
add rdx, 0x18
cmp eax, ecx
jb 0x1800035d8
jmp 0x1800035f6
lea rdx, [rax + rax*2]
mov eax, dword [rbx + rdx*8]
mov dword [0x1800204f4], eax
mov rax, qword [0x180021300]
test rax, rax
jne 0x18000364e
cmp byte [0x1800212eb], r14b
jne 0x180003653
xor r8d, r8d
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x18000363b
lea rdx, str.WTSFreeMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180021300], rax
jmp 0x180003642
mov rax, qword [0x180021300]
mov byte [0x1800212eb], dil
test rax, rax
je 0x180003653
mov rcx, rbx
call rax
mov qword [rsp + 0x70], r14
or ebx, 0xffffffff
mov edx, dword [0x1800204f4]
cmp edx, ebx
je 0x18000366e
lea rcx, str.Found_active_session__u_n
jmp 0x1800036ce
lea rcx, str.No_active_session_found.__Waiting..._n
call fcn.1800032a8
mov r11, qword [0x1800206c8]
mov qword [rsp + 0x58], r11
mov rax, qword [0x1800206d8]
mov qword [rsp + 0x60], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
test eax, eax
je 0x180003cbf
dec ecx
je 0x1800036c1
lea rcx, str.Aborting_repair_due_to_unexpected_wait_status__u_n
jmp 0x1800035c1
mov edx, dword [0x1800204f4]
lea rcx, str.Session__u_has_become_active._n
call fcn.1800032a8
or r13, 0xffffffffffffffff
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x38], r14d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.1800048dc
nop
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rsi, rax
mov r12d, 0x2000000
mov rax, qword [0x180021318]
test rax, rax
jne 0x180003760
cmp byte [0x1800212ee], r14b
jne 0x18000375b
xor r8d, r8d
xor edx, edx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x180003748
lea rdx, str.OpenProcessToken
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180021318], rax
jmp 0x18000374f
mov rax, qword [0x180021318]
mov byte [0x1800212ee], dil
test rax, rax
jne 0x180003760
mov eax, r14d
jmp 0x18000376b
mov r8, rbx
mov edx, r12d
mov rcx, rsi
call rax
test eax, eax
sete cl
mov rax, qword [rsp + 0x58]
cmp qword [rax], r13
je 0x18000377d
mov dword [rax + 8], edi
test cl, cl
je 0x1800037bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_current_process_token__error__d_n
call fcn.1800032a8
nop
cmp dword [rsp + 0x38], r14d
je 0x180003ccb
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800037b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x38], r14d
jmp 0x180003ccb
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], r14d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1800048dc
nop
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, edi
xor r8d, r8d
mov edx, r12d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
sete cl
mov rax, qword [rsp + 0x58]
cmp qword [rax], r13
je 0x180003807
mov dword [rax + 8], edi
test cl, cl
je 0x180003841
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_duplicating_current_process_token__error__d_n
call fcn.1800032a8
nop
cmp dword [rsp + 0x48], r14d
je 0x18000383c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180003837
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x48], r14d
jmp 0x180003796
mov r12d, 4
mov r9d, r12d
lea r8, [0x1800204f4]
lea edx, [r12 + 8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x18000389b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_changing_token_session_ID__error__d_n
call fcn.1800032a8
nop
cmp dword [rsp + 0x48], r14d
je 0x180003896
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180003891
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x48], r14d
jmp 0x180003796
mov ebx, 0x104
mov edx, ebx
lea rcx, [rbp + 0x670]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x180003c9e
cmp eax, ebx
jae 0x180003c9e
mov qword [rbp + 0x230], r14
mov qword [rbp + 0x240], r14
lea rax, [rbp + 0x248]
mov qword [rbp + 0x240], rax
mov qword [rbp + 0x234], 0x200
mov esi, 2
mov dword [rbp + 0x230], esi
mov rax, qword [rbp + 0x240]
mov word [rax], r14w
lea rdx, [rbp + 0x670]
lea rcx, [rbp + 0x230]
call fcn.180007394
nop
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x5c], esi
lea r13d, [rsi + 0xe]
mov dword [rsp + 0x60], r13d
lea rax, [0x180011a5c]
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov r8d, r12d
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.180008704
lea r11d, [rsi + 0x5a]
mov rax, qword [rsp + 0x68]
mov word [rax], r11w
mov rax, qword [rsp + 0x68]
mov word [rax + 2], r14w
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x230]
call fcn.180007b74
test eax, eax
sete bl
test byte [rsp + 0x60], 8
je 0x18000397d
mov rcx, qword [rsp + 0x68]
call fcn.180004e48
test bl, bl
je 0x18000398d
lea rcx, [rbp + 0x230]
call fcn.180001574
lea rdx, str.Microsoft.NETNETFXRepair.exe
lea rcx, [rbp + 0x230]
call fcn.1800014a0
mov dword [rbp - 0x60], esi
mov dword [rbp - 0x5c], esi
mov dword [rbp - 0x58], r13d
lea rax, [0x180011a5c]
mov qword [rbp - 0x50], rax
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 0x60]
call fcn.180001188
mov r11d, dword [rbp + 0x238]
and r11d, 7
mov eax, dword [rbp - 0x58]
and eax, 0xfffffff8
mov dword [rbp - 0x58], eax
or eax, r11d
mov dword [rbp - 0x58], eax
btr eax, 8
mov dword [rbp - 0x58], eax
lea rcx, [rbp - 0x48]
lea rdx, [rbp + 0x248]
mov ebx, 0x200
mov r8d, ebx
call sub.MSVCR100_CLR0400.dll_memcpy
nop
lea rdx, str.__OSUpgraded
lea rcx, [rbp - 0x60]
call fcn.1800014a0
mov qword [rbp + 0x450], r14
mov qword [rbp + 0x460], r14
lea rax, [rbp + 0x468]
mov qword [rbp + 0x460], rax
mov qword [rbp + 0x454], rbx
mov dword [rbp + 0x450], esi
mov rax, qword [rbp + 0x460]
mov word [rax], r14w
mov ecx, dword [rbp - 0x58]
test sil, cl
je 0x180003a76
mov eax, ecx
and eax, 7
cmp al, 7
jne 0x180003a5d
cmp dword [0x1800204d4], r14d
je 0x180003a76
lea rcx, [rbp - 0x60]
call fcn.1800086b4
test eax, eax
jne 0x180003a73
lea rcx, [rbp - 0x60]
call fcn.180007508
mov ecx, dword [rbp - 0x58]
not ecx
and ecx, edi
mov ebx, dword [rbp - 0x60]
shr ebx, cl
sub ebx, edi
xor r9d, r9d
mov r8d, r12d
lea edx, [rbx + 1]
lea rcx, [rbp + 0x450]
call fcn.180008704
mov r11d, dword [rbp + 0x458]
mov ecx, r11d
not ecx
and ecx, edi
add ebx, 2
shl ebx, cl
mov edx, dword [rbp + 0x454]
cmp ebx, edx
jbe 0x180003ad1
mov r8d, edi
mov edx, ebx
lea rcx, [rbp + 0x450]
call fcn.18000a1ec
mov r11d, dword [rbp + 0x458]
mov edx, dword [rbp + 0x454]
mov dword [rbp + 0x450], ebx
test r13b, r11b
je 0x180003aeb
mov r8d, edi
lea rcx, [rbp + 0x450]
call fcn.18000a1ec
mov r12, qword [rbp + 0x460]
lea rcx, [rbp - 0x60]
call fcn.180007508
mov rsi, qword [rbp - 0x50]
mov r13, rsi
mov ebx, dword [rbp - 0x58]
test bl, 2
je 0x180003b39
mov eax, ebx
and eax, 7
cmp al, 7
jne 0x180003b1c
cmp dword [0x1800204d4], r14d
je 0x180003b39
lea rcx, [rbp - 0x60]
call fcn.1800086b4
test eax, eax
jne 0x180003b32
lea rcx, [rbp - 0x60]
call fcn.180007508
mov ebx, dword [rbp - 0x58]
mov rsi, qword [rbp - 0x50]
mov ecx, ebx
not ecx
and cl, dil
mov edx, dword [rbp - 0x60]
shr rdx, cl
or r9, 0xffffffffffffffff
mov r8, r13
mov rcx, r12
call qword [sym.imp.MSVCR100_CLR0400.dll_wcsncpy_s]
mov dword [rbp + 0x1c0], 0x68
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp + 0x1c8]
call sub.MSVCR100_CLR0400.dll_memset
lea rcx, [rbp + 0x230]
call fcn.180007508
lea r11, [rsp + 0x78]
mov qword [rsp + 0x20], r11
lea r9, [rbp + 0x1c0]
mov r8, r12
mov rdx, qword [rbp + 0x240]
mov rcx, qword [rsp + 0x40]
call section..text
test eax, eax
jne 0x180003c17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_create_repair_process__error__d_n
call fcn.1800032a8
nop
test byte [rbp + 0x458], 8
je 0x180003bd2
mov rcx, qword [rbp + 0x460]
call fcn.180004e48
nop
test bl, 8
je 0x180003be0
mov rcx, rsi
call fcn.180004e48
nop
test byte [rbp + 0x238], 8
je 0x180003bf6
mov rcx, qword [rbp + 0x240]
call fcn.180004e48
nop
cmp dword [rsp + 0x48], r14d
je 0x180003c12
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180003c0d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x48], r14d
jmp 0x180003796
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp - 0x78]
mov edx, dword [0x1800204f4]
lea rcx, str.Created_repair_process_in_session__d__process_ID__d_n
call fcn.1800032a8
nop
test byte [rbp + 0x458], 8
je 0x180003c59
mov rcx, qword [rbp + 0x460]
call fcn.180004e48
nop
test bl, 8
je 0x180003c67
mov rcx, rsi
call fcn.180004e48
nop
test byte [rbp + 0x238], 8
je 0x180003c7d
mov rcx, qword [rbp + 0x240]
call fcn.180004e48
nop
cmp dword [rsp + 0x48], r14d
je 0x180003c99
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180003c94
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x48], r14d
jmp 0x180003796
cmp dword [rsp + 0x48], r14d
je 0x180003cba
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180003cb5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x48], r14d
jmp 0x180003796
lea rcx, str.Aborting_repair_due_to_service_shutdown._n
call fcn.1800032a8
mov rcx, qword [rbp + 0x880]
xor rcx, rsp
call fcn.18000bef0
lea r11, [rsp + 0x990]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret