Function at 0x18001388c
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x310
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov dword [rsp + 0x34], esi
mov word [rsp + 0xf0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [r11 - 0x226]
call fcn.180086e90
lea r11, [rsp + 0xf0]
mov qword [rsp + 0x20], r11
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
jl 0x180013934
lea rdx, str.MozillaExtensionsec8030f7_c20a_464f_9b0e_13a3a9e97384_
lea rcx, [rsp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.websecurity_ati.org.xpi
lea rcx, [rsp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], rsi
mov word [rsp + 0x78], si
lea rcx, [rsp + 0xf0]
call fcn.180088f10
mov r8, rax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x70]
call fcn.18000a6c4
nop
lea rcx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x88]
lea rdx, [rcx + rax*2]
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.18000e2e4
lea rdx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.18000e2e4
mov ebp, reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rdi + 0x20], rbp
mov qword [rdi + 0x18], rsi
mov byte [rdi + 8], sil
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm1
mov r9b, byte [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.180011a00
mov dword [rsp + 0x34], 1
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xb0], rsi
mov byte [rsp + 0xa0], sil
lea rcx, [0x1800d8d50]
call fcn.180088f40
mov r8, rax
lea rdx, [0x1800d8d50]
lea rcx, [rsp + 0x98]
call fcn.18000abc4
nop
mov qword [rsp + 0xe0], rbp
mov qword [rsp + 0xd8], rsi
mov byte [rsp + 0xc8], sil
lea rcx, str._
call fcn.180088f40
mov r8, rax
lea rdx, str._
lea rcx, [rsp + 0xc0]
call fcn.18000abc4
nop
mov rbx, rsi
lea rdx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0x10
cmovae rdx, qword [rsp + 0xa0]
mov r9, qword [rsp + 0xb0]
mov r8, rbx
mov rcx, rdi
call fcn.18000e098
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180013ae9
or qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xc0]
mov r8, qword [rsp + 0xb0]
mov rdx, rax
mov rcx, rdi
call fcn.180010254
add rbx, qword [rsp + 0xd8]
jmp 0x180013a83
cmp qword [rsp + 0xe0], 0x10
jb 0x180013b01
mov rcx, qword [rsp + 0xc8]
call fcn.180086560
mov qword [rsp + 0xe0], rbp
mov qword [rsp + 0xd8], rsi
mov byte [rsp + 0xc8], sil
cmp qword [rsp + 0xb8], 0x10
jb 0x180013b31
mov rcx, qword [rsp + 0xa0]
call fcn.180086560
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xb0], rsi
mov byte [rsp + 0xa0], sil
cmp qword [rsp + 0x90], 8
jb 0x180013b5e
mov rcx, qword [rsp + 0x78]
call fcn.180086560
mov rax, rdi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.180086e60
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret