Function at 0x14000817f
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rcx
movsxd rbx, edx
test edx, edx
jns 0x1400081ac
mov rax, qword [0x14000d050]
not edx
movsxd rdx, edx
mov rax, qword [rax]
movsxd rbx, dword [rax + rdx*4]
mov rax, qword [0x14000d080]
lea rsi, [0x14006c440]
add rbx, rbx
mov r13, rsi
add rbx, qword [rax + 0x24]
cmp rbp, rsi
jb 0x1400081dc
mov rax, rbp
sub rax, rsi
cmp rax, 0x7ffe
ja 0x1400081dc
mov rsi, rbp
xor ebp, ebp
mov cx, word [rbx]
test cx, cx
je 0x140008435
mov rax, rsi
sub rax, r13
cmp rax, 0x3ffe
jg 0x140008435
cmp cx, 3
ja 0x14000840f
movsx r12d, byte [rbx + 3]
mov al, byte [rbx + 2]
add rbx, 4
shl r12d, 7
and eax, 0x7f
and r12d, 0x3f80
or r12d, eax
mov ax, word [rbx - 2]
movzx r8d, al
mov r14d, eax
movzx edi, ah
mov edx, r8d
shr r14w, 8
mov dword [rsp + 0x34], r8d
or dh, 0x80
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x30], edx
mov edx, r14d
or dx, 0x8000
movzx edx, dx
mov dword [rsp + 0x38], edx
cmp cx, 2
jne 0x1400083a2
mov rdx, qword [0x14000d0b0]
cmp dword [rdx + 4], 1
sbb edx, edx
and edx, 0xfffffffe
add edx, 4
test al, al
jns 0x1400082bb
mov rcx, qword [0x14000d080]
mov r8, rax
and eax, 0x40
mov r9, rsi
and r8d, 0x3f
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
add r8, r8
add r8, qword [rcx + 0x24]
mov dword [rsp + 0x20], eax
mov rcx, 0xffffffff80000002
call fcn.14000770d
cmp word [rsi], 0
jne 0x1400082ea
mov edx, edi
mov rcx, rsi
call fcn.14000817f
jmp 0x1400082ea
cmp r8d, 0x25
jne 0x1400082d1
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1400082ea
cmp r8d, 0x24
je 0x1400082dc
movsxd rdi, edx
jmp 0x140008344
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edx, edx
jmp 0x1400082d7
mov rax, qword [0x14000d060]
mov r12d, dword [rsp + rdi*4 + 0x2c]
mov rax, qword [rax]
mov edx, r12d
mov r15d, r12d
and edx, 0xffffffbf
and r15d, 0x8000
test rax, rax
jne 0x14000834a
mov ecx, 4
call fcn.140008100
mov rcx, qword [0x14000d110]
mov edx, r12d
mov r8d, r15d
and edx, 0xbf
mov rcx, qword [rcx]
call rax
mov r12, rax
test rax, rax
jne 0x140008383
mov word [rsi], 0
dec rdi
test edi, edi
jne 0x1400082ee
jmp 0x140008365
mov rcx, qword [0x14000d110]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rcx]
call rax
test eax, eax
jne 0x140008312
cmp word [rsi], 0
je 0x1400083e5
cmp r14w, 0x1a
jne 0x1400083e5
lea rdx, str.MicrosoftInternet_ExplorerQuick_Launch
mov rcx, rsi
call sub.KERNEL32.dll_lstrcatW
jmp 0x1400083e5
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, r12
mov r15d, eax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15d, r15d
je 0x14000833c
jmp 0x140008365
cmp cx, 3
jne 0x1400083ef
cmp r12d, 0x1d
jne 0x1400083c2
mov rax, qword [0x14000d110]
mov rcx, rsi
mov rdx, qword [rax]
call fcn.1400077a1
jmp 0x1400083fc
movsxd rdx, r12d
lea rax, [section..ndata]
mov rcx, rsi
sub r12d, 0x15
shl rdx, 0xe
add rdx, rax
call fcn.140007861
cmp r12d, 6
ja 0x1400083fc
mov rcx, rsi
call fcn.1400078ea
jmp 0x1400083fc
mov edx, r12d
mov rcx, rsi
not edx
call fcn.14000817f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
add rax, rax
add rax, rsi
jmp 0x14000842d
lea rax, [rsi + 2]
cmp cx, 4
jne 0x140008426
mov dx, word [rbx + 2]
add rbx, 4
mov word [rsi], dx
jmp 0x14000842d
mov word [rsi], cx
add rbx, 2
mov rsi, rax
jmp 0x1400081dc
mov word [rsi], 0
test rbp, rbp
je 0x14000845a
mov rdx, r13
mov rcx, rbp
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140007861
mov rax, r13
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret