Function at 0x140023120
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 - 0x228]
sub rsp, 0x328
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x2b8]
mov r15, rdx
mov r14, qword [rbp + 0x290]
lea rdx, [0x140031e98]
mov r13, qword [rbp + 0x2a8]
mov rsi, r9
mov r12, qword [rbp + 0x2b0]
mov rbx, r8
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov rax, qword [rbp + 0x2c0]
mov qword [rsp + 0x58], rax
xor eax, eax
cmp qword [sym.firefox.exe_g_shared_section], rax
jne 0x14002319c
mov ecx, eax
jmp 0x1400231ca
mov rcx, qword [0x14003cf00]
test rcx, rcx
jne 0x1400231ca
lea rcx, [0x14003cbc0]
mov qword [0x14003cbc0], rdx
mov qword [0x14003cf00], rcx
mov dword [0x14003cbc8], eax
mov byte [0x14003cbcc], 1
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp byte [rax + 4], 0
je 0x140023226
mov ecx, dword [rbp + 0x2a0]
mov r9, r14
mov rax, qword [rsp + 0x58]
mov r8, rsi
mov qword [rsp + 0x48], rax
mov rdx, rbx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ecx
mov ecx, dword [rbp + 0x298]
mov dword [rsp + 0x20], ecx
mov rcx, r15
call rdi
xor edi, edi
test eax, eax
je 0x140023228
mov eax, 1
jmp 0x140023327
xor edi, edi
mov rax, qword [0x14003a940]
test rax, rax
je 0x140023252
mov r9b, 1
mov dword [rsp + 0x20], 2
mov r8, r15
lea rdx, str.CreateProcessA
lea rcx, str.BLOCKED
call rax
cmp qword [sym.firefox.exe_g_shared_section], rdi
jne 0x140023260
mov rcx, rdi
jmp 0x140023295
mov rcx, qword [0x14003cf00]
test rcx, rcx
jne 0x140023295
lea rax, [0x140031e98]
mov dword [0x14003cbc8], edi
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 0x140023325
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x58]
mov edx, 0x18
mov dword [rsp + 0x50], eax
lea r8d, [rdx - 0x17]
call fcn.140028018
test al, al
je 0x14002331b
call fcn.140027f70
xor ecx, ecx
test al, al
je 0x14002331b
mov r13, qword [0x14003cec0]
test r13, r13
je 0x14002331b
mov edi, ecx
mov esi, ecx
mov r14d, ecx
test rbx, rbx
je 0x1400232fa
mov rcx, rbx
call fcn.140027a5c
xor ecx, ecx
mov rdi, rax
test rax, rax
je 0x14002331b
test r15, r15
je 0x14002334a
mov rcx, r15
call fcn.140027a5c
xor ecx, ecx
mov rsi, rax
test rax, rax
jne 0x14002334a
mov rcx, rdi
xor edx, edx
call fcn.1400275f0
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400057b0
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r12, r12
je 0x140023370
mov rcx, r12
call fcn.140027a5c
xor ecx, ecx
mov r14, rax
test rax, rax
jne 0x140023370
xor edx, edx
mov rcx, rdi
call fcn.1400275f0
mov rcx, rsi
jmp 0x140023314
test rdi, rdi
je 0x14002337b
mov rax, qword [rdi + 8]
jmp 0x14002337e
mov rax, rcx
mov qword [rsp + 0x70], rax
test rsi, rsi
je 0x14002338e
mov rax, qword [rsi + 8]
jmp 0x140023391
mov rax, rcx
mov qword [rsp + 0x78], rax
test r14, r14
je 0x1400233a1
mov rax, qword [r14 + 8]
jmp 0x1400233a4
mov rax, rcx
lea rdx, [rbp]
mov qword [rsp + 0x60], rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r12d, 0
mov qword [rbp - 0x70], r13
dec eax
lea rcx, [rbp]
cmp eax, 0x102
cmova rcx, r12
lea r8d, [r12 + 0x58]
mov qword [rsp + 0x68], rcx
xor edx, edx
mov rcx, qword [r13 + 0x10]
add rcx, r13
mov qword [rbp - 0x68], rcx
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x58]
lea r9, [rsp + 0x70]
mov qword [rbp - 0x78], rax
lea r8, [rsp + 0x78]
lea rax, [rbp - 0x60]
mov dword [rbp - 0x80], 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.140022f3c
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400275f0
xor edx, edx
mov rcx, rsi
call fcn.1400275f0
xor edx, edx
mov rcx, r14
call fcn.1400275f0
test ebx, ebx
jne 0x14002331b
mov ebx, dword [rbp - 0x58]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x140023325
mov rax, qword [0x14003a940]
test rax, rax
je 0x14002321c
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8, r15
lea rdx, str.CreateProcessA
lea rcx, str.Broker_ALLOWED
call rax
jmp 0x14002321c