Function at 0x1400234b0
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 [0x14003a010]
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, [0x140031e98]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], r14
jne 0x14002353a
xor ecx, ecx
jmp 0x140023568
mov rcx, qword [0x14003cf00]
test rcx, rcx
jne 0x140023568
and dword [0x14003cbc8], ecx
lea rcx, [0x14003cbc0]
mov qword [0x14003cf00], rcx
mov qword [0x14003cbc0], rax
mov byte [0x14003cbcc], 1
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp byte [rax + 4], 0
je 0x1400235c6
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 0x1400235c9
mov eax, 1
jmp 0x140023725
xor r14d, r14d
mov rdx, rbx
lea rcx, [0x140032ea8]
call fcn.14000c914
cmp qword [sym.firefox.exe_g_shared_section], r14
jne 0x1400235e6
mov rcx, r14
jmp 0x14002361c
mov rcx, qword [0x14003cf00]
test rcx, rcx
jne 0x14002361c
lea rax, [0x140031e98]
mov dword [0x14003cbc8], r14d
lea rcx, [0x14003cbc0]
mov qword [0x14003cbc0], rax
mov qword [0x14003cf00], rcx
mov byte [0x14003cbcc], 1
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp dword [rax], 1
jle 0x140023723
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.140028018
test al, al
je 0x14002371b
call fcn.140027f70
test al, al
je 0x14002371b
mov rbx, qword [0x14003cec0]
test rbx, rbx
je 0x14002371b
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.140022d58
test eax, eax
jne 0x14002371b
mov ebx, dword [rbp - 0x68]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x140023723
mov rdx, qword [rsp + 0x58]
lea rcx, [0x140032ea8]
call fcn.14000c7e0
jmp 0x1400235bc
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400057b0
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret