Function at 0x140006f90
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rsi, [rsp + 0x28]
mov qword [rsi], 0
lea rcx, [0x140053020]
mov edx, 0x5100
xor r8d, r8d
mov r9, rsi
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rsi, qword [rsi]
test eax, eax
js 0x14000726c
movabs r12, 0x7ffffffffffff800
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r14, rax
lea rax, [r12 + 0x7fe]
cmp r14, rax
ja 0x140007291
cmp r14, 7
jbe 0x140007296
mov rax, r14
or rax, 7
cmp rax, 0xb
mov r13d, 0xa
cmovae r13, rax
movabs rax, 0x7ffffffffffffffe
cmp r13, rax
cmovae r13, rax
lea rcx, [r13*2]
cmp r13, 0x7ff
jae 0x1400072c0
add rcx, 2
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r13
lea r8, [r14 + r14]
mov rcx, r15
mov rdx, rsi
call sub.ntdll.dll_memcpy
lea rax, [r15 + r14*2]
mov word [rax], 0
xor eax, eax
mov qword [rsp + 0x20], rax
lea r14, [rsp + 0x30]
mov qword [r14 + 0x10], rax
xorps xmm0, xmm0
movaps xmmword [r14], xmm0
mov qword [r14 + 0x18], 7
mov rdx, qword [rbx + 0x38]
mov rcx, r14
call fcn.1400066d0
mov r15, qword [rbx + 0x38]
cmp qword [rbx + 0x40], 8
jb 0x1400070cc
mov rbx, qword [rbx + 0x28]
jmp 0x1400070d0
add rbx, 0x28
test r15, r15
je 0x140007129
add r15, r15
xor r13d, r13d
mov rbp, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
movzx ecx, word [rbx + r13]
call rbp
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
cmp rcx, rdx
jae 0x14000725b
lea r8, [rcx + 1]
mov qword [rsp + 0x40], r8
mov r8, r14
cmp rdx, 8
jb 0x140007113
mov r8, qword [rsp + 0x30]
mov word [r8 + rcx*2], ax
mov word [r8 + rcx*2 + 2], 0
add r13, 2
cmp r15, r13
jne 0x1400070e2
cmp qword [rsp + 0x48], 8
jb 0x140007138
mov rcx, qword [rsp + 0x30]
jmp 0x14000713d
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
call fcn.140001210
test al, al
je 0x1400072ec
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
sub rdx, rax
cmp rdx, 0x1b
jae 0x14000730d
lea r8, str.MozillaFirefox_blocklist_
lea rcx, [rsp + 0x50]
mov edx, 0x1b
mov r9d, 0x1b
call fcn.140016eb0
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8, rdx
sub r8, rcx
cmp r8, rax
jae 0x140007323
lea rcx, [rsp + 0x50]
mov rdx, rax
mov r8, rbx
mov r9, rax
call fcn.140016eb0
mov byte [rdi + 0x20], 0
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], 0
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x14000720f
mov rcx, qword [rsp + 0x30]
inc rax
test rax, r12
jne 0x140007340
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000721f
call qword [sym.imp.mozglue.dll_free]
mov rax, qword [rsp + 0x68]
cmp rax, 8
jae 0x14000735d
test rsi, rsi
je 0x14000723c
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002ba50
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x30]
mov edx, eax
call fcn.14001bd10
jmp 0x140007120
mov ebp, eax
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [rdi + 0x20], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rdi], rax
mov dword [rdi + 8], 0x255
mov dword [rdi + 0xc], ebp
jmp 0x14000723c
call fcn.140034030
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
lea r8, [r14 + r14]
mov rdx, rsi
call sub.ntdll.dll_memcpy
lea rax, [rsp + r14*2]
add rax, 0x50
jmp 0x14000708b
lea rax, [r12 + 0x7ec]
cmp r13, rax
jae 0x1400073f5
add rcx, 0x29
call qword [sym.imp.mozglue.dll_moz_xmalloc]
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x140007069
mov byte [rdi + 0x20], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rdi], rax
movabs rax, 0x8007000d00000262
mov qword [rdi + 8], rax
jmp 0x1400071ed
lea rdx, [rax + 0x1b]
mov qword [rsp + 0x60], rdx
cmp rcx, 8
jb 0x140007389
mov rcx, qword [rsp + 0x50]
jmp 0x14000738e
lea r14, [rcx + rax]
mov qword [rsp + 0x60], r14
cmp rdx, 8
jb 0x1400073cc
mov r15, qword [rsp + 0x50]
jmp 0x1400073d1
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400073ef
mov rcx, rax
jmp 0x140007209
mov rcx, qword [rsp + 0x50]
inc rax
test rax, r12
je 0x14000737e
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400073ef
mov rcx, rax
call qword [sym.imp.mozglue.dll_free]
jmp 0x14000722e
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [0x1400598da]
movups xmmword [rcx + rax*2 + 0x20], xmm0
movups xmm0, xmmword [0x1400598ca]
movups xmmword [rcx + rax*2 + 0x10], xmm0
movups xmm0, xmmword [str.MozillaFirefox_blocklist_]
movups xmmword [rcx + rax*2], xmm0
movabs rdx, 0x2d007400730069
mov qword [rcx + rax*2 + 0x2e], rdx
mov word [rcx + rax*2 + 0x36], 0
jmp 0x140007185
lea r15, [rsp + 0x50]
lea rcx, [r15 + rcx*2]
add rax, rax
mov rdx, rbx
mov r8, rax
call sub.ntdll.dll_memmove
mov word [r15 + r14*2], 0
jmp 0x1400071bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.140034050
int3