Function at 0x1400073a9
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r12, rcx
movsxd rbx, edx
test edx, edx
jns 0x1400073d6
mov rax, qword [0x14000afd0]
not edx
movsxd rdx, edx
mov rax, qword [rax]
movsxd rbx, dword [rax + rdx*4]
mov rax, qword [0x14000b010]
lea rsi, [0x140030420]
add rbx, rbx
mov r15, rsi
add rbx, qword [rax + 0x24]
cmp r12, rsi
jb 0x1400074c3
mov rax, r12
sub rax, rsi
cmp rax, 0xffe
ja 0x1400074c3
mov rsi, r12
xor r12d, r12d
jmp 0x1400074c3
mov rax, rsi
sub rax, r15
cmp rax, 0x7fe
jg 0x14000766d
cmp cx, 3
ja 0x140007647
movsx edi, byte [rbx + 3]
mov dl, byte [rbx + 2]
add rbx, 4
mov ax, word [rbx - 2]
shl edi, 7
and edx, 0x7f
and edi, 0x3f80
mov r13d, eax
movzx ebp, ah
or edi, edx
movzx edx, al
shr r13w, 8
mov dword [rsp + 0x5c], ebp
mov r8d, edx
mov dword [rsp + 0x54], edx
or r8d, 0x8000
mov dword [rsp + 0x50], r8d
mov r8d, r13d
or r8w, 0x8000
movzx r8d, r8w
mov dword [rsp + 0x58], r8d
cmp cx, 2
je 0x1400074d4
cmp cx, 3
jne 0x14000762d
cmp edi, 0x1d
jne 0x1400075fb
mov rax, qword [0x14000b0a0]
mov rcx, rsi
mov rdx, qword [rax]
call fcn.14000719f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
add rax, rax
add rax, rsi
mov rsi, rax
mov cx, word [rbx]
test cx, cx
jne 0x140007414
jmp 0x14000766d
mov rcx, qword [0x14000b040]
cmp dword [rcx + 4], 1
sbb edi, edi
and edi, 0xfffffffe
add edi, 4
test al, al
jns 0x14000753b
mov rdi, qword [0x14000b010]
mov r8, rax
and eax, 0x40
mov r9, rsi
and r8d, 0x3f
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
add r8, r8
add r8, qword [rdi + 0x24]
mov dword [rsp + 0x20], eax
xor edi, edi
call fcn.140007107
cmp word [rsi], 0
jne 0x14000752f
mov edx, ebp
mov rcx, rsi
call fcn.1400073a9
mov r14, qword [0x14000b0a0]
movsxd rdi, edi
jmp 0x140007597
cmp edx, 0x25
jne 0x140007550
mov edx, 0x400
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x140007563
cmp edx, 0x24
jne 0x14000752f
mov edx, 0x400
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edi, edi
jmp 0x14000752f
mov rax, qword [0x14000aff0]
mov edx, dword [rsp + rdi*4 + 0x4c]
mov rcx, qword [r14]
mov rax, qword [rax]
test rax, rax
jne 0x14000759d
mov rcx, qword [r14]
lea r8, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x1400075d4
mov word [rsi], 0
dec rdi
test edi, edi
jne 0x140007567
jmp 0x1400075b6
mov dword [rsp + 0x3c], edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call rax
mov edx, dword [rsp + 0x3c]
test eax, eax
jne 0x14000757d
cmp word [rsi], 0
je 0x140007620
cmp r13w, 0x1a
jne 0x140007620
lea rdx, str.MicrosoftInternet_ExplorerQuick_Launch
mov rcx, rsi
call sub.KERNEL32.dll_lstrcatW
jmp 0x140007620
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x14000758f
jmp 0x1400075b6
movsxd rdx, edi
lea rax, [section..ndata]
mov rcx, rsi
sub edi, 0x15
shl rdx, 0xb
add rdx, rax
call fcn.140007271
cmp edi, 6
ja 0x1400074af
mov rcx, rsi
call fcn.1400072cc
jmp 0x1400074af
dec cx
jne 0x1400074af
not edi
mov rcx, rsi
mov edx, edi
call fcn.1400073a9
jmp 0x1400074af
lea rax, [rsi + 2]
cmp cx, 4
jne 0x140007661
mov dx, word [rbx + 2]
add rbx, 4
mov word [rsi], dx
jmp 0x1400074c0
mov word [rsi], cx
add rbx, 2
jmp 0x1400074c0
mov word [rsi], 0
test r12, r12
je 0x140007696
lea rdx, [0x140030420]
mov rcx, r12
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140007271
lea rax, [0x140030420]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret