Function at 0x1400516b0
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 [0x140135028]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
call sub.opera_elf.dll_IsBrowserProcess
movabs r15, 0xaaaaaaaaaaaaaaaa
test al, al
je 0x1400517f2
lea rdi, [rsp + 0x92]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14009f950
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 0x1400517f2
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.14008a9b0
lea rbx, [rsp + 0x58]
mov rcx, rdi
mov rdx, rbx
call fcn.140088ba0
lea rdi, [rsp + 0x2a0]
mov qword [rdi + 0x40], r15
movaps xmm0, xmmword [0x14011bbd0]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x14012230f]
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x70]
mov rcx, r14
mov r9d, 0x42c
call fcn.140078ed0
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.140081720
cmp byte [rbx + 0x17], 0
jns 0x1400517bf
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rdi
call fcn.14005f5c0
cmp byte [rsp + 0x6f], 0
jns 0x1400517e1
mov rcx, qword [rsp + 0x58]
call fcn.14009b57c
cmp byte [rsp + 0x57], 0
jns 0x1400517f2
mov rcx, qword [rsp + 0x40]
call fcn.14009b57c
call sub.opera_elf.dll_SignalInitializeCrashReporting
call sub.opera_elf.dll_IsBrowserProcess
test al, al
je 0x140051807
mov byte [0x140145d48], 1
lea rcx, [0x1400f3700]
call fcn.14009c214
mov dword [0x140148864], 1
mov byte [0x140148860], 1
xor ecx, ecx
xor edx, edx
call fcn.14008da20
mov rcx, qword [0x14014d7f0]
lea rdi, [rsp + 0x2a0]
mov qword [rdi + 0x10], r15
movaps xmm0, xmmword [0x14011bbd0]
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.140087630
mov qword [rsp + 0x70], r15
mov rax, qword [fcn.140060bd0]
lea rcx, [0x14009abc0]
cmp rax, rcx
jne 0x140051a2e
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 0x140051a52
imul rax, rax, 0xf4240
cqo
idiv qword [0x14014d718]
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 [0x14014d808]
movabs rax, 0xfffffffc00000000
and rax, rbx
cmp rax, qword [0x140135e48]
je 0x140051a45
lea rax, [rsp + 0x90]
mov qword [rax + 0x28], rbx
mov qword [0x14014d808], rax
mov ecx, 0x28
call fcn.14009b6c4
mov rbx, rax
movups xmmword [rax + 8], xmm6
movups xmmword [rax + 0x18], xmm6
lea rax, [0x14011afa0]
mov qword [rbx], rax
mov r8, qword [rsp + 0x70]
mov rcx, rbx
mov rdx, rsi
call fcn.140051a80
mov esi, eax
test rbx, rbx
je 0x140051972
lea rax, [0x14011af90]
mov qword [rbx], rax
cmp byte [rbx + 0x27], 0
jns 0x14005196a
mov rcx, qword [rbx + 0x10]
call fcn.14009b57c
mov rcx, rbx
call fcn.14009b57c
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 0x140051a79
test rdi, rdi
jne 0x1400519aa
test rax, rax
jne 0x140051a7c
cmp rax, 5
je 0x1400519c9
cmp rax, 7
jne 0x1400519e1
mov eax, dword [rdi]
xor eax, dword [str.utility]
mov ecx, dword [rdi + 3]
xor ecx, dword [0x14011bf76]
jmp 0x1400519dd
mov eax, dword [rdi]
xor eax, dword [str.ppapi]
mov cl, byte [rdi + 4]
xor cl, byte [0x14011bf6c]
movzx ecx, cl
or ecx, eax
je 0x140051a3e
lea rcx, [rsp + 0x90]
call fcn.140036a10
cmp byte [rsp + 0x2b7], 0
jns 0x140051a05
mov rcx, qword [rsp + 0x2a0]
call fcn.14009b57c
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.14009d810
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 [0x140159008]
jmp 0x1400518c8
mov ecx, esi
call fcn.140055ac0
mov rcx, rbx
call fcn.14005e790
jmp 0x140051908
mov rcx, qword [0x14014d718]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400518c3
int3
int3