Function at 0x1400261c0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rdi, [rsp + 0x38]
mov qword [rdi], 0
lea rcx, [0x140055020]
mov edx, 0x5100
xor r8d, r8d
mov r9, rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rdi, qword [rdi]
test eax, eax
js 0x140026455
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], 0
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r14, rax
lea rcx, [rsp + 0x60]
cmp rax, 7
jbe 0x14002647a
mov rdx, r14
mov r9, rdi
call fcn.140008b30
xor eax, eax
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x40]
mov qword [r14], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], 7
mov word [r14], 0
mov rdx, qword [rbx + 0x38]
mov rcx, r14
call fcn.1400265b0
mov r15, qword [rbx + 0x38]
cmp qword [rbx + 0x40], 8
jb 0x140026298
mov rbx, qword [rbx + 0x28]
jmp 0x14002629c
add rbx, 0x28
test r15, r15
je 0x1400262f6
add r15, r15
xor r12d, r12d
mov r13, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
movzx ecx, word [rbx + r12]
call r13
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
cmp rcx, rdx
jae 0x14002643e
lea r8, [rcx + 1]
mov qword [rsp + 0x50], r8
mov r8, r14
cmp rdx, 8
jb 0x1400262e0
mov r8, qword [rsp + 0x40]
mov word [r8 + rcx*2], ax
mov word [r8 + rcx*2 + 2], 0
add r12, 2
cmp r15, r12
jne 0x1400262ae
cmp qword [rsp + 0x58], 8
jb 0x140026305
mov rcx, qword [rsp + 0x40]
jmp 0x14002630a
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.140026740
test al, al
je 0x140026499
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rdx, rcx
sub rdx, rax
cmp rdx, 0x1b
jae 0x1400264ba
mov qword [rsp + 0x20], 0x1b
lea r9, [0x14005ba30]
lea rcx, [rsp + 0x60]
mov edx, 0x1b
call fcn.140008c50
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov r8, rdx
sub r8, rcx
cmp r8, rax
jae 0x1400264d0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
mov rdx, rax
mov r9, rbx
call fcn.140008c50
mov byte [rsi + 0x20], 0
movups xmm0, xmmword [rsp + 0x60]
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x1400263ea
mov rcx, qword [rsp + 0x40]
inc rax
movabs rdx, 0x7ffffffffffff800
test rax, rdx
jne 0x1400264ed
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400263fa
call qword [sym.imp.mozglue.dll_free]
mov rax, qword [rsp + 0x78]
cmp rax, 8
jae 0x14002650a
test rdi, rdi
je 0x140026417
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140030050
mov rax, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x40]
mov edx, 1
mov r9d, eax
call fcn.14000e950
jmp 0x1400262ed
mov ebp, eax
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [rsi + 0x20], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x255
mov dword [rsi + 0xc], ebp
jmp 0x140026417
mov qword [rcx + 0x10], r14
mov r8, r14
add r8, r14
mov rdx, rdi
call sub.ntdll.dll_memmove
mov word [rsp + r14*2 + 0x60], 0
jmp 0x14002625a
mov byte [rsi + 0x20], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007000d00000262
mov qword [rsi + 8], rax
jmp 0x1400263be
lea rdx, [rax + 0x1b]
mov qword [rsp + 0x70], rdx
cmp rcx, 8
jb 0x140026540
mov rcx, qword [rsp + 0x60]
jmp 0x140026545
lea r14, [rcx + rax]
mov qword [rsp + 0x70], r14
cmp rdx, 8
jb 0x140026583
mov r15, qword [rsp + 0x60]
jmp 0x140026588
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400265a6
mov rcx, rax
jmp 0x1400263e4
mov rcx, qword [rsp + 0x60]
inc rax
movabs rdx, 0x7ffffffffffff800
test rax, rdx
je 0x140026535
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400265a6
mov rcx, rax
call qword [sym.imp.mozglue.dll_free]
jmp 0x140026409
lea rcx, [rsp + 0x60]
movups xmm0, xmmword [0x14005ba50]
movups xmmword [rcx + rax*2 + 0x20], xmm0
movups xmm0, xmmword [0x14005ba40]
movups xmmword [rcx + rax*2 + 0x10], xmm0
movups xmm0, xmmword [0x14005ba30]
movups xmmword [rcx + rax*2], xmm0
movabs rdx, 0x2d007400730069
mov qword [rcx + rax*2 + 0x2e], rdx
mov word [rcx + rax*2 + 0x36], 0
jmp 0x140026355
lea r15, [rsp + 0x60]
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 0x140026390
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3