Function at 0x14000819b
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 rdi, rcx
movsxd rbx, edx
test edx, edx
jns 0x1400081c8
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, [0x14006d440]
add rbx, rbx
mov r13, rsi
add rbx, qword [rax + 0x24]
cmp rdi, rsi
jb 0x1400081f8
mov rax, rdi
sub rax, rsi
cmp rax, 0x7ffe
ja 0x1400081f8
mov rsi, rdi
xor edi, edi
mov cx, word [rbx]
test cx, cx
je 0x14000845a
mov rax, rsi
sub rax, r13
cmp rax, 0x3ffe
jg 0x14000845a
cmp cx, 3
ja 0x140008434
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 edx, al
mov r14d, eax
movzx ebp, ah
mov r8d, edx
shr r14w, 8
mov dword [rsp + 0x34], edx
or r8d, 0x8000
mov dword [rsp + 0x3c], ebp
mov dword [rsp + 0x30], r8d
mov r8d, r14d
or r8w, 0x8000
movzx r8d, r8w
mov dword [rsp + 0x38], r8d
cmp cx, 2
jne 0x1400083c7
mov r8, qword [0x14000d0b0]
mov ecx, 4
cmp dword [r8 + 4], 0
jne 0x14000829a
mov ecx, 2
test al, al
jns 0x1400082e2
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.14000772d
cmp word [rsi], 0
jne 0x14000830f
mov edx, ebp
mov rcx, rsi
call fcn.14000819b
jmp 0x14000830f
cmp edx, 0x25
jne 0x1400082f7
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x14000830f
cmp edx, 0x24
je 0x140008301
movsxd rbp, ecx
jmp 0x140008369
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ecx, ecx
jmp 0x1400082fc
mov rax, qword [0x14000d060]
mov r12d, dword [rsp + rbp*4 + 0x2c]
mov rax, qword [rax]
mov edx, r12d
mov r15d, r12d
and edx, 0xffffffbf
and r15d, 0x8000
test rax, rax
jne 0x14000836f
mov ecx, 4
call fcn.14000811c
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 0x1400083a8
mov word [rsi], 0
dec rbp
test ebp, ebp
jne 0x140008313
jmp 0x14000838a
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 0x140008337
cmp word [rsi], 0
je 0x14000840a
cmp r14w, 0x1a
jne 0x14000840a
lea rdx, str.MicrosoftInternet_ExplorerQuick_Launch
mov rcx, rsi
call sub.KERNEL32.dll_lstrcatW
jmp 0x14000840a
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 0x140008361
jmp 0x14000838a
cmp cx, 3
jne 0x140008414
cmp r12d, 0x1d
jne 0x1400083e7
mov rax, qword [0x14000d110]
mov rcx, rsi
mov rdx, qword [rax]
call fcn.1400077c1
jmp 0x140008421
movsxd rdx, r12d
lea rax, [section..ndata]
mov rcx, rsi
sub r12d, 0x15
shl rdx, 0xe
add rdx, rax
call fcn.140007881
cmp r12d, 6
ja 0x140008421
mov rcx, rsi
call fcn.14000790a
jmp 0x140008421
mov edx, r12d
mov rcx, rsi
not edx
call fcn.14000819b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
add rax, rax
add rax, rsi
jmp 0x140008452
lea rax, [rsi + 2]
cmp cx, 4
jne 0x14000844b
mov dx, word [rbx + 2]
add rbx, 4
mov word [rsi], dx
jmp 0x140008452
mov word [rsi], cx
add rbx, 2
mov rsi, rax
jmp 0x1400081f8
mov word [rsi], 0
test rdi, rdi
je 0x14000847f
mov rdx, r13
mov rcx, rdi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140007881
mov rax, r13
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret