Function at 0x1400072a4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14000d188]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r13d, r13d
mov qword [rsp + 0x30], rcx
mov rsi, rcx
test edx, edx
jns 0x1400072e2
mov rax, qword [0x140070cf0]
not edx
mov edx, dword [rax + rdx*4]
mov r9, qword [0x140078d84]
lea rcx, [0x140068c80]
movsxd rax, edx
mov rdi, rcx
lea r14, [r9 + rax*2]
cmp rsi, rcx
jb 0x14000731b
mov rax, rsi
sub rax, rcx
sar rax, 1
cmp rax, 0x4000
jae 0x14000731b
mov rdi, rsi
mov qword [rsp + 0x30], r13
mov rsi, r13
movzx edx, word [r14]
mov r11d, 0x2000
test dx, dx
je 0x1400075a9
mov ebp, 2
lea rsi, [0x140068c80]
lea r15d, [rbp + 2]
mov rax, rdi
mov r10, r14
sub rax, rsi
and rax, 0xfffffffffffffffe
cmp rax, 0x4000
jge 0x14000759d
add r14, rbp
cmp dx, r15w
jae 0x140007570
movzx ecx, byte [r14]
movzx r12d, byte [r14 + 1]
mov r8d, ecx
movsx ebx, byte [r10 + 3]
lea r14, [r10 + 4]
and ebx, 0x7f
movsx eax, cl
and eax, 0x7f
shl ebx, 7
or ebx, eax
mov dword [rsp + 0x3c], ecx
bts ecx, 0xf
mov dword [rsp + 0x44], r12d
mov eax, r12d
mov dword [rsp + 0x38], ecx
bts eax, 0xf
mov dword [rsp + 0x40], eax
cmp dx, bp
jne 0x1400074f4
cmp dword [0x140078e24], r13d
cmovne rbp, r15
test r8b, r8b
jns 0x1400073fe
mov eax, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
and r8d, 0x3f
and eax, 0x40
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], eax
lea r8, [r9 + r8*2]
mov r9, rdi
call fcn.140007f4c
cmp word [rdi], r13w
jne 0x1400074cf
mov edx, r12d
mov rcx, rdi
call fcn.1400072a4
jmp 0x1400074c9
cmp r8d, 0x25
jne 0x140007415
mov edx, r11d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1400074c9
cmp r8d, 0x24
jne 0x14000742c
mov edx, r11d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1400074c9
mov esi, 1
mov rax, qword [0x140070d10]
sub rbp, rsi
mov ebx, dword [rsp + rbp*4 + 0x38]
and ebx, 0xffffffbf
mov r15d, ebx
and r15d, 0x8000
test rax, rax
je 0x14000746f
mov rcx, qword [0x140070d20]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, ebx
call qword [0x14000a5a0]
test eax, eax
je 0x1400074bc
mov ecx, 4
call fcn.140007e50
mov rcx, qword [0x140070d20]
mov r8d, r15d
movzx edx, bl
call qword [0x14000a5a0]
mov r15, rax
test rax, rax
je 0x1400074af
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jne 0x1400074bc
mov word [rdi], r13w
test rbp, rbp
jne 0x140007431
lea rsi, [0x140068c80]
mov r15d, 4
cmp word [rdi], r13w
je 0x1400074e5
cmp r12d, 0x1a
jne 0x1400074e5
lea rdx, str.MicrosoftInternet_ExplorerQuick_Launch
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rdi
call fcn.140008370
mov ebp, 2
jmp 0x140007559
cmp dx, 3
jne 0x140007543
mov rcx, rdi
cmp ebx, 0x1d
jne 0x140007518
mov r8, qword [0x140070d20]
lea rdx, [0x14000aaa8]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140007559
lea rax, [section..ndata]
mov edx, ebx
shl rdx, 0xe
mov r8d, r11d
add rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [rbx - 0x15]
cmp eax, 7
jae 0x140007559
mov rcx, rdi
call fcn.140008370
jmp 0x140007559
mov eax, 1
cmp dx, ax
jne 0x140007559
not ebx
mov rcx, rdi
mov edx, ebx
call fcn.1400072a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r11d, 0x2000
add rcx, rcx
jmp 0x140007585
mov rcx, rbp
jne 0x140007582
movzx eax, word [r14]
lea r14, [r10 + 4]
mov word [rdi], ax
jmp 0x140007585
mov word [rdi], dx
movzx edx, word [r14]
add rdi, rcx
test dx, dx
je 0x14000759d
mov r9, qword [0x140078d84]
jmp 0x14000733e
mov rsi, qword [rsp + 0x30]
lea rcx, [0x140068c80]
mov word [rdi], r13w
test rsi, rsi
je 0x1400075c3
mov rdx, rcx
mov r8d, r11d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x1400075c6
mov rax, rcx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400098e0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret