Function at 0x140050ef0
Capabilities:
Set current directory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x300
movaps xmmword [rsp + 0x2f0], xmm6
mov rsi, rcx
mov rax, qword [0x140131028]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
call sub.opera_elf.dll_IsBrowserProcess
movabs r15, 0xaaaaaaaaaaaaaaaa
test al, al
je 0x140051032
lea rdi, [rsp + 0x92]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140098da0
mov word [rdi - 2], 0
lea rdi, [rsp + 0x90]
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x140051032
mov eax, eax
lea rdx, [rsp + 0x30]
mov qword [rdx], rdi
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140085e10
lea rbx, [rsp + 0x58]
mov rcx, rdi
mov rdx, rbx
call fcn.140084dd0
lea rdi, [rsp + 0x2a0]
mov qword [rdi + 0x40], r15
movaps xmm0, xmmword [0x140115d80]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x14011b78f]
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x70]
mov rcx, r14
mov r9d, 0x42c
call fcn.140078ba0
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.14007abd0
cmp byte [rbx + 0x17], 0
jns 0x140050fff
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rdi
call fcn.14005bd20
cmp byte [rsp + 0x6f], 0
jns 0x140051021
mov rcx, qword [rsp + 0x58]
call fcn.140094ae4
cmp byte [rsp + 0x57], 0
jns 0x140051032
mov rcx, qword [rsp + 0x40]
call fcn.140094ae4
call sub.opera_elf.dll_SignalInitializeCrashReporting
call sub.opera_elf.dll_IsBrowserProcess
test al, al
je 0x140051047
mov byte [0x140141d88], 1
lea rcx, [0x1400ee580]
call fcn.140095518
mov dword [0x140144564], 1
mov byte [0x140144560], 1
xor ecx, ecx
xor edx, edx
call fcn.140088210
mov rcx, qword [0x1401494f0]
lea rdi, [rsp + 0x2a0]
mov qword [rdi + 0x10], r15
movaps xmm0, xmmword [0x140115d80]
movaps xmmword [rdi], xmm0
lea rax, str.type
lea r8, [rsp + 0x20]
mov qword [r8], rax
mov qword [r8 + 8], 4
mov rdx, rdi
call fcn.14007cbf0
lea rcx, [rsp + 0x70]
mov qword [rcx], r15
mov rax, qword [fcn.14005e6e0]
call qword [0x140154008]
xorps xmm6, xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
mov qword [rsp + 0xb0], 0
mov rbx, qword [0x140149508]
movabs rax, 0xfffffffc00000000
and rax, rbx
cmp rax, qword [0x140131e48]
je 0x14005122b
lea rax, [rsp + 0x90]
mov qword [rax + 0x28], rbx
mov qword [0x140149508], rax
mov ecx, 0x28
call fcn.140094aec
mov rbx, rax
movups xmmword [rax + 8], xmm6
movups xmmword [rax + 0x18], xmm6
lea rax, [0x140115110]
mov qword [rbx], rax
mov r8, qword [rsp + 0x70]
mov rcx, rbx
mov rdx, rsi
call fcn.140051240
mov esi, eax
test rbx, rbx
je 0x140051168
lea rax, [0x140115100]
mov qword [rbx], rax
cmp byte [rbx + 0x27], 0
jns 0x140051160
mov rcx, qword [rbx + 0x10]
call fcn.140094ae4
mov rcx, rbx
call fcn.140094ae4
movzx ecx, byte [rsp + 0x2b7]
mov eax, ecx
and eax, 0x7f
test cl, cl
cmovs rax, qword [rsp + 0x2a8]
cmovs rdi, qword [rsp + 0x2a0]
test rax, rax
js 0x140051238
test rdi, rdi
jne 0x1400511a0
test rax, rax
jne 0x14005123b
cmp rax, 5
je 0x1400511bf
cmp rax, 7
jne 0x1400511d7
mov eax, dword [rdi]
xor eax, dword [str.utility]
mov ecx, dword [rdi + 3]
xor ecx, dword [0x1401160d1]
jmp 0x1400511d3
mov eax, dword [rdi]
xor eax, dword [str.ppapi]
mov cl, byte [rdi + 4]
xor cl, byte [0x1401160c7]
movzx ecx, cl
or ecx, eax
je 0x140051224
lea rcx, [rsp + 0x90]
call fcn.140036100
cmp byte [rsp + 0x2b7], 0
jns 0x1400511fb
mov rcx, qword [rsp + 0x2a0]
call fcn.140094ae4
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.140096c60
mov eax, esi
movaps xmm6, xmmword [rsp + 0x2f0]
add rsp, 0x300
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, esi
call fcn.1400531c0
mov rcx, rbx
call fcn.14005ae30
jmp 0x1400510fe
int3
int3