Function at 0x10006c060
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x290
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebx, ebx
mov rbp, rdx
mov rsi, rcx
cmp rdx, rbx
jne 0x10006c09e
mov eax, 0x8007000e
jmp 0x10006c2cf
mov word [rcx], bx
mov edx, 0x5c
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rdi, rax
cmp rax, rbx
jne 0x10006c0bc
mov rdi, rbp
jmp 0x10006c0c0
add rdi, 2
mov r12d, 0x104
lea rcx, [rsp + 0x70]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jne 0x10006c102
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov eax, 0x57
cmp r11d, ebx
cmove r11d, eax
movzx eax, r11w
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
jmp 0x10006c2cf
lea r8, [0x10002f040]
lea rcx, [rsp + 0x70]
mov rdx, r12
call fcn.100039ee4
lea rcx, [rsp + 0x70]
mov r8, rdi
mov rdx, r12
call fcn.100039ee4
lea rcx, [rsp + 0x70]
call fcn.100053454
mov r12d, 4
cmp eax, ebx
je 0x10006c279
lea rdx, [0x10002f0b0]
mov r8, rbp
mov ecx, r12d
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x54], r12d
mov dword [rsp + 0x60], r12d
call fcn.1000527f4
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
lea rdx, [0x10002f100]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x10006c216
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10006c1e8
cmp dword [rsp + 0x54], r12d
jne 0x10006c1e8
cmp dword [rsp + 0x50], 1
mov eax, ebx
setne al
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov r9d, r12d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], ebx
je 0x10006c279
cmp rdi, rbx
je 0x10006c2b6
lea r9, [0x10002f170]
mov ecx, 0x103
mov rdx, rsi
sub r9, rsi
mov r8, rcx
lea rax, [r8 + 0x7ffffefb]
cmp rax, rbx
je 0x10006c25d
movzx eax, word [r9 + rdx]
cmp ax, bx
je 0x10006c25d
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x10006c23a
cmp r8, rbx
jne 0x10006c266
sub rdx, 2
mov word [rdx], bx
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call fcn.100039ee4
jmp 0x10006c2bb
cmp rdi, rbx
je 0x10006c2b6
mov ecx, 0x103
sub rdi, rsi
lea rax, [rcx + 0x7ffffefb]
cmp rax, rbx
je 0x10006c2a8
movzx eax, word [rdi + rsi]
cmp ax, bx
je 0x10006c2a8
mov word [rsi], ax
add rsi, 2
sub rcx, 1
jne 0x10006c286
cmp rcx, rbx
jne 0x10006c2b1
sub rsi, 2
mov word [rsi], bx
jmp 0x10006c2bb
mov ebx, 0x80004005
lea rdx, [0x10002f178]
mov r8d, ebx
mov ecx, r12d
call fcn.1000527f4
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret