Function at 0x14000833f
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 0x14000836c
mov rax, qword [0x14000d0f0]
not edx
movsxd rdx, edx
mov rax, qword [rax]
movsxd rbx, dword [rax + rdx*4]
mov rax, qword [0x14000d130]
lea rsi, [0x14006c440]
add rbx, rbx
mov r13, rsi
add rbx, qword [rax + 0x24]
cmp rbp, rsi
jb 0x14000839c
mov rax, rbp
sub rax, rsi
cmp rax, 0x7ffe
ja 0x14000839c
mov rsi, rbp
xor ebp, ebp
mov cx, word [rbx]
test cx, cx
je 0x1400085f5
mov rax, rsi
sub rax, r13
cmp rax, 0x3ffe
jg 0x1400085f5
cmp cx, 3
ja 0x1400085cf
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 0x140008562
mov rdx, qword [0x14000d160]
cmp dword [rdx + 4], 1
sbb edx, edx
and edx, 0xfffffffe
add edx, 4
test al, al
jns 0x14000847b
mov rcx, qword [0x14000d130]
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.1400078cd
cmp word [rsi], 0
jne 0x1400084aa
mov edx, edi
mov rcx, rsi
call fcn.14000833f
jmp 0x1400084aa
cmp r8d, 0x25
jne 0x140008491
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1400084aa
cmp r8d, 0x24
je 0x14000849c
movsxd rdi, edx
jmp 0x140008504
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edx, edx
jmp 0x140008497
mov rax, qword [0x14000d110]
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 0x14000850a
mov ecx, 4
call fcn.1400082c0
mov rcx, qword [0x14000d1c0]
mov edx, r12d
mov r8d, r15d
and edx, 0xbf
mov rcx, qword [rcx]
call rax
mov r12, rax
test rax, rax
jne 0x140008543
mov word [rsi], 0
dec rdi
test edi, edi
jne 0x1400084ae
jmp 0x140008525
mov rcx, qword [0x14000d1c0]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rcx]
call rax
test eax, eax
jne 0x1400084d2
cmp word [rsi], 0
je 0x1400085a5
cmp r14w, 0x1a
jne 0x1400085a5
lea rdx, str.MicrosoftInternet_ExplorerQuick_Launch
mov rcx, rsi
call sub.KERNEL32.dll_lstrcatW
jmp 0x1400085a5
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 0x1400084fc
jmp 0x140008525
cmp cx, 3
jne 0x1400085af
cmp r12d, 0x1d
jne 0x140008582
mov rax, qword [0x14000d1c0]
mov rcx, rsi
mov rdx, qword [rax]
call fcn.140007961
jmp 0x1400085bc
movsxd rdx, r12d
lea rax, [section..ndata]
mov rcx, rsi
sub r12d, 0x15
shl rdx, 0xe
add rdx, rax
call fcn.140007a21
cmp r12d, 6
ja 0x1400085bc
mov rcx, rsi
call fcn.140007aaa
jmp 0x1400085bc
mov edx, r12d
mov rcx, rsi
not edx
call fcn.14000833f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
add rax, rax
add rax, rsi
jmp 0x1400085ed
lea rax, [rsi + 2]
cmp cx, 4
jne 0x1400085e6
mov dx, word [rbx + 2]
add rbx, 4
mov word [rsi], dx
jmp 0x1400085ed
mov word [rsi], cx
add rbx, 2
mov rsi, rax
jmp 0x14000839c
mov word [rsi], 0
test rbp, rbp
je 0x14000861a
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.140007a21
mov rax, r13
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret