Function at 0x140050b40
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 [0x14012e028]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
call sub.opera_elf.dll_IsBrowserProcess
movabs r15, 0xaaaaaaaaaaaaaaaa
test al, al
je 0x140050c82
lea rdi, [rsp + 0x92]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14009a5c0
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 0x140050c82
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.14008e440
lea rbx, [rsp + 0x58]
mov rcx, rdi
mov rdx, rbx
call fcn.140080b20
lea rdi, [rsp + 0x2a0]
mov qword [rdi + 0x40], r15
movaps xmm0, xmmword [0x1401148f0]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x140119f87]
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x70]
mov rcx, r14
mov r9d, 0x42c
call fcn.140072e20
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.140079920
cmp byte [rbx + 0x17], 0
jns 0x140050c4f
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rdi
call fcn.14005e6c0
cmp byte [rsp + 0x6f], 0
jns 0x140050c71
mov rcx, qword [rsp + 0x58]
call fcn.14009614c
cmp byte [rsp + 0x57], 0
jns 0x140050c82
mov rcx, qword [rsp + 0x40]
call fcn.14009614c
call sub.opera_elf.dll_SignalInitializeCrashReporting
call sub.opera_elf.dll_IsBrowserProcess
test al, al
je 0x140050c97
mov byte [0x14013ee38], 1
lea rcx, [0x1400e3e20]
call fcn.140096bec
mov dword [0x140140ce0], 1
mov byte [0x140140cdc], 1
xor ecx, ecx
xor edx, edx
call fcn.14008af60
mov rcx, qword [0x140140d68]
lea rdi, [rsp + 0x2a0]
mov qword [rdi + 0x10], r15
movaps xmm0, xmmword [0x1401148f0]
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.140081820
mov qword [rsp + 0x70], r15
mov rax, qword [fcn.14005f770]
lea rcx, [0x1400955b0]
cmp rax, rcx
jne 0x140050ebe
lea rbx, [rsp + 0x90]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
movabs rcx, 0x8637bd05af6
cmp rax, rcx
jg 0x140050ee2
imul rax, rax, 0xf4240
cqo
idiv qword [0x140140c98]
mov qword [rsp + 0x70], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
mov qword [rsp + 0xb0], 0
mov rbx, qword [0x140140d80]
movabs rax, 0xfffffffc00000000
and rax, rbx
cmp rax, qword [0x14013d548]
je 0x140050ed5
lea rax, [rsp + 0x90]
mov qword [rax + 0x28], rbx
mov qword [0x140140d80], rax
mov ecx, 0x28
call fcn.1400961cc
mov rbx, rax
movups xmmword [rax + 8], xmm6
movups xmmword [rax + 0x18], xmm6
lea rax, [0x140113d18]
mov qword [rbx], rax
mov r8, qword [rsp + 0x70]
mov rcx, rbx
mov rdx, rsi
call fcn.140050f10
mov esi, eax
test rbx, rbx
je 0x140050e02
lea rax, fcn.1400ca3d0
mov qword [rbx], rax
cmp byte [rbx + 0x27], 0
jns 0x140050dfa
mov rcx, qword [rbx + 0x10]
call fcn.14009614c
mov rcx, rbx
call fcn.14009614c
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 0x140050f09
test rdi, rdi
jne 0x140050e3a
test rax, rax
jne 0x140050f0c
cmp rax, 5
je 0x140050e59
cmp rax, 7
jne 0x140050e71
mov eax, dword [rdi]
xor eax, dword [str.utility]
mov ecx, dword [rdi + 3]
xor ecx, dword [0x140114cbc]
jmp 0x140050e6d
mov eax, dword [rdi]
xor eax, dword [str.ppapi]
mov cl, byte [rdi + 4]
xor cl, byte [0x140114cb2]
movzx ecx, cl
or ecx, eax
je 0x140050ece
lea rcx, [rsp + 0x90]
call fcn.140036510
cmp byte [rsp + 0x2b7], 0
jns 0x140050e95
mov rcx, qword [rsp + 0x2a0]
call fcn.14009614c
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.140098480
mov eax, esi
movaps xmm6, xmmword [rsp + 0x2f0]
add rsp, 0x300
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [rsp + 0x70]
call qword [case.0x1400e3c50.0]
jmp 0x140050d58
mov ecx, esi
call fcn.140054990
mov rcx, rbx
call fcn.14005d7d0
jmp 0x140050d98
mov rcx, qword [0x140140c98]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140050d53
int3
int3