Function at 0x140028020
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 [0x140040010]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x2b8]
mov r15, rdx
mov r14, qword [rbp + 0x290]
lea rdx, [0x140037168]
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 0x14002809c
mov ecx, eax
jmp 0x1400280ca
mov rcx, qword [0x140042fb0]
test rcx, rcx
jne 0x1400280ca
lea rcx, [0x140042c58]
mov qword [0x140042c58], rdx
mov qword [0x140042fb0], rcx
mov dword [0x140042c60], eax
mov byte [0x140042c64], 1
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp byte [rax + 4], 0
je 0x140028126
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 0x140028128
mov eax, 1
jmp 0x140028227
xor edi, edi
mov rax, qword [0x140040990]
test rax, rax
je 0x140028152
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 0x140028160
mov rcx, rdi
jmp 0x140028195
mov rcx, qword [0x140042fb0]
test rcx, rcx
jne 0x140028195
lea rax, [0x140037168]
mov dword [0x140042c60], edi
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 0x140028225
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.14002cf18
test al, al
je 0x14002821b
call fcn.14002ce70
xor ecx, ecx
test al, al
je 0x14002821b
mov r13, qword [0x140042f70]
test r13, r13
je 0x14002821b
mov edi, ecx
mov esi, ecx
mov r14d, ecx
test rbx, rbx
je 0x1400281fa
mov rcx, rbx
call fcn.14002c95c
xor ecx, ecx
mov rdi, rax
test rax, rax
je 0x14002821b
test r15, r15
je 0x14002824a
mov rcx, r15
call fcn.14002c95c
xor ecx, ecx
mov rsi, rax
test rax, rax
jne 0x14002824a
mov rcx, rdi
xor edx, edx
call fcn.14002c4f0
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.140005a70
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r12, r12
je 0x140028270
mov rcx, r12
call fcn.14002c95c
xor ecx, ecx
mov r14, rax
test rax, rax
jne 0x140028270
xor edx, edx
mov rcx, rdi
call fcn.14002c4f0
mov rcx, rsi
jmp 0x140028214
test rdi, rdi
je 0x14002827b
mov rax, qword [rdi + 8]
jmp 0x14002827e
mov rax, rcx
mov qword [rsp + 0x70], rax
test rsi, rsi
je 0x14002828e
mov rax, qword [rsi + 8]
jmp 0x140028291
mov rax, rcx
mov qword [rsp + 0x78], rax
test r14, r14
je 0x1400282a1
mov rax, qword [r14 + 8]
jmp 0x1400282a4
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.140027e3c
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14002c4f0
xor edx, edx
mov rcx, rsi
call fcn.14002c4f0
xor edx, edx
mov rcx, r14
call fcn.14002c4f0
test ebx, ebx
jne 0x14002821b
mov ebx, dword [rbp - 0x58]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x140028225
mov rax, qword [0x140040990]
test rax, rax
je 0x14002811c
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8, r15
lea rdx, str.CreateProcessA
lea rcx, str.Broker_ALLOWED
call rax
jmp 0x14002811c