Function at 0x1400283b0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rbp + 0x200], rax
cmp qword [sym.firefox.exe_g_shared_section], 0
mov r12, r9
mov rax, qword [rbp + 0x298]
mov rdi, r8
mov r14, qword [rbp + 0x2a0]
mov rbx, rdx
mov r13, qword [rbp + 0x280]
mov r15, rcx
mov rsi, qword [rbp + 0x2b0]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x2a8]
mov qword [rsp + 0x60], rax
lea rax, [0x140037168]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], r14
jne 0x14002843a
xor ecx, ecx
jmp 0x140028468
mov rcx, qword [0x140042fb0]
test rcx, rcx
jne 0x140028468
and dword [0x140042c60], ecx
lea rcx, [0x140042c58]
mov qword [0x140042fb0], rcx
mov qword [0x140042c58], rax
mov byte [0x140042c64], 1
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp byte [rax + 4], 0
je 0x1400284c6
mov rcx, qword [rsp + 0x50]
mov r9, r13
mov rax, qword [rsp + 0x60]
mov r8, r12
mov qword [rsp + 0x48], rsi
mov rdx, rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rcx
mov ecx, dword [rbp + 0x290]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rbp + 0x288]
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call r15
xor r14d, r14d
test eax, eax
je 0x1400284c9
mov eax, 1
jmp 0x140028625
xor r14d, r14d
mov rdx, rbx
lea rcx, [0x140038290]
call fcn.140011814
cmp qword [sym.firefox.exe_g_shared_section], r14
jne 0x1400284e6
mov rcx, r14
jmp 0x14002851c
mov rcx, qword [0x140042fb0]
test rcx, rcx
jne 0x14002851c
lea rax, [0x140037168]
mov dword [0x140042c60], r14d
lea rcx, [0x140042c58]
mov qword [0x140042c58], rax
mov qword [0x140042fb0], rcx
mov byte [0x140042c64], 1
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp dword [rax], 1
jle 0x140028623
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 1
mov rcx, rsi
mov edi, eax
lea r15d, [r8 + 0x17]
mov edx, r15d
call fcn.14002cf18
test al, al
je 0x14002861b
call fcn.14002ce70
test al, al
je 0x14002861b
mov rbx, qword [0x140042f70]
test rbx, rbx
je 0x14002861b
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x80], rbx
dec eax
lea r8d, [r15 + 0x40]
cmp eax, 0x102
cmova rcx, r14
xor edx, edx
mov qword [rsp + 0x50], rcx
mov rcx, qword [rbx + 0x10]
add rcx, rbx
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x70]
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x58]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x80]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140027c58
test eax, eax
jne 0x14002861b
mov ebx, dword [rbp - 0x68]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x140028623
mov rdx, qword [rsp + 0x58]
lea rcx, [0x140038290]
call fcn.1400116e0
jmp 0x1400284bc
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140005a70
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret