Function at 0x14004f5f0
Capabilities:
Set current directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x308
movaps xmmword [rsp + 0x2f0], xmm6
mov rsi, rcx
mov rax, qword [0x14012f028]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
call sub.opera_elf.dll_IsBrowserProcess
test al, al
je 0x14004f722
lea rdi, [rsp + 0xd2]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400980c0
mov word [rdi - 2], 0
lea rdi, [rsp + 0xd0]
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x14004f722
mov eax, eax
lea rdx, [rsp + 0x30]
mov qword [rdx], rdi
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140083170
lea rdi, [rsp + 0x58]
mov rcx, rbx
mov rdx, rdi
call fcn.14007e080
movaps xmm0, xmmword [0x140114ca0]
lea rbx, [rsp + 0x90]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, [0x14011a6d7]
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x70]
mov rcx, r14
mov r9d, 0x437
call fcn.140072460
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140076ee0
cmp byte [rdi + 0x17], 0
jns 0x14004f6ef
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbx
call fcn.140058c10
cmp byte [rsp + 0x6f], 0
jns 0x14004f711
mov rcx, qword [rsp + 0x58]
call fcn.140093dd0
cmp byte [rsp + 0x57], 0
jns 0x14004f722
mov rcx, qword [rsp + 0x40]
call fcn.140093dd0
call sub.opera_elf.dll_SignalInitializeCrashReporting
call sub.opera_elf.dll_IsBrowserProcess
test al, al
je 0x14004f737
mov byte [0x14013fde8], 1
lea rcx, [0x1400ed6e0]
call fcn.14009482c
mov dword [0x1401425e4], 1
mov byte [0x1401425e0], 1
xor ecx, ecx
xor edx, edx
call fcn.140084360
mov rcx, qword [0x1401474c0]
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x90]
mov qword [rdi + 0x10], rbx
movaps xmm0, xmmword [0x140114ca0]
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.14007ad30
lea rcx, [rsp + 0x70]
mov qword [rcx], rbx
mov rax, qword [fcn.140085890]
call qword [0x140152008]
xorps xmm6, xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
mov qword [rsp + 0xf0], 0
mov rbx, qword [0x1401474d8]
movabs rax, 0xfffffffc00000000
and rax, rbx
cmp rax, qword [0x14012fdc8]
je 0x14004f918
lea rax, [rsp + 0xd0]
mov qword [rax + 0x28], rbx
mov qword [0x1401474d8], rax
mov ecx, 0x28
call fcn.140093d8c
mov rbx, rax
lea rax, fcn.1400c8e10
mov qword [rbx], rax
movups xmmword [rbx + 8], xmm6
movups xmmword [rbx + 0x18], xmm6
mov r8, qword [rsp + 0x70]
mov rcx, rbx
mov rdx, rsi
call fcn.14004f930
mov esi, eax
test rbx, rbx
jne 0x14004f8ff
movzx ecx, byte [rsp + 0xa7]
mov eax, ecx
and eax, 0x7f
test cl, cl
cmovs rax, qword [rsp + 0x98]
cmovs rdi, qword [rsp + 0x90]
test rax, rax
js 0x14004f925
test rdi, rdi
jne 0x14004f87d
test rax, rax
jne 0x14004f928
cmp rax, 5
je 0x14004f89c
cmp rax, 7
jne 0x14004f8b4
mov eax, dword [rdi]
xor eax, dword [str.utility]
mov ecx, dword [rdi + 3]
xor ecx, dword [0x140114ff1]
jmp 0x14004f8b0
mov eax, dword [rdi]
xor eax, dword [str.ppapi]
mov cl, byte [rdi + 4]
xor cl, byte [0x140114fe7]
movzx ecx, cl
or ecx, eax
je 0x14004f911
lea rcx, [rsp + 0xd0]
call fcn.140034b60
cmp byte [rsp + 0xa7], 0
jns 0x14004f8d8
mov rcx, qword [rsp + 0x90]
call fcn.140093dd0
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.140095f80
mov eax, esi
movaps xmm6, xmmword [rsp + 0x2f0]
add rsp, 0x308
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rbx
mov edx, 1
call fcn.1400c8e10
jmp 0x14004f845
mov ecx, esi
call fcn.1400518e0
mov rcx, rbx
call fcn.14005c7d0
jmp 0x14004f7f8
int3
int3