Function at 0x140051b40
Capabilities:
Set current directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
movaps xmmword [rsp + 0x250], xmm6
mov qword [rsp + 0x38], r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov r14, qword [0x14013e590]
lea rax, str.type
lea r8, [rsp + 0x70]
mov qword [r8], rax
mov qword [r8 + 8], 4
lea r12, [rsp + 0x80]
mov rcx, r14
mov rdx, r12
call fcn.140082d50
lea r15, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x140051bbb
mov rcx, qword [r15]
call fcn.140096334
mov rax, qword [rsp + 0x90]
mov qword [r15 + 0x10], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [r15], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movzx ebp, byte [rsi + 0x27]
test bpl, bpl
jns 0x140051be8
mov rbp, qword [rsi + 0x18]
mov rcx, r14
call fcn.140055140
test rbp, rbp
je 0x140051bfa
cmp eax, 6
je 0x140051c10
call sub.opera_elf.dll_IsExtensionPointDisableSet
movzx edx, al
shl rdx, 0xc
lea rcx, [rsp + 0x60]
call fcn.14002fdb0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x220]
mov qword [rdx + 0x10], rax
movaps xmmword [rdx], xmm0
mov ecx, 3
call fcn.14002b210
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x210], rdi
movaps xmm6, xmmword [0x140114940]
movaps xmmword [rsp + 0x200], xmm6
call fcn.140055690
cmp byte [rax + 0x17], 0
js 0x140051ffe
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x210], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x200], xmm0
lea rax, [rsp + 0x200]
movzx ecx, byte [rax + 0x17]
mov edx, ecx
and edx, 0x7f
test cl, cl
mov rcx, qword [rax]
cmovns rcx, rax
mov qword [rsp + 0x1f0], rdi
cmovs rdx, qword [rax + 8]
movaps xmmword [rsp + 0x1e0], xmm6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
mov r8, r12
call fcn.140076870
movzx eax, byte [rsp + 0x97]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs r12, qword [rsp + 0x80]
lea r8, [rsp + 0x238]
mov qword [r8], r12
cmovs rcx, qword [rsp + 0x88]
mov qword [r8 + 8], rcx
lea rcx, [rsp + 0x220]
lea rdx, [rsp + 0x1c8]
call fcn.14007aa50
cmp byte [rsp + 0x97], 0
jns 0x140051d29
mov rcx, qword [rsp + 0x80]
call fcn.140096334
lea r13, str.opera_browser.dll
lea r8, [rsp + 0x238]
mov qword [r8], r13
mov qword [r8 + 8], 0x11
lea r12, [rsp + 0x1c8]
lea rdx, [rsp + 0x1e0]
mov rcx, r12
call fcn.14007aa50
cmp byte [r12 + 0x17], 0
jns 0x140051d70
mov rcx, qword [rsp + 0x1c8]
call fcn.140096334
lea r12, [rsp + 0x80]
mov dword [r12 + 0x24], 0
mov word [r12 + 0x28], 0
xorps xmm0, xmm0
movaps xmmword [r12], xmm0
movaps xmmword [r12 + 0x10], xmm0
lea rdx, [rsp + 0x1e0]
mov rcx, r12
mov r8d, 0x21
call fcn.14000d610
mov rdi, qword [r12]
mov rcx, r12
call fcn.140075ae0
cmp byte [r12 + 0x1f], 0
jns 0x140051dce
mov rcx, qword [rsp + 0x88]
call fcn.140096334
mov rax, qword [rsp + 0x80]
inc rax
cmp rax, 2
jae 0x140052105
inc rdi
cmp rdi, 2
jae 0x140051e16
lea r8, [rsp + 0x1c8]
mov qword [r8], r13
mov qword [r8 + 8], 0x11
lea rcx, [rsp + 0x220]
lea rdx, [rsp + 0x80]
call fcn.14007aa50
jmp 0x140051e2b
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x1e0]
call fcn.14008fc10
cmp byte [rsp + 0x1f7], 0
jns 0x140051e42
mov rcx, qword [rsp + 0x1e0]
call fcn.140096334
cmp byte [rsp + 0x217], 0
jns 0x140051e59
mov rcx, qword [rsp + 0x200]
call fcn.140096334
cmp byte [rsp + 0x237], 0
jns 0x140051e70
mov rcx, qword [rsp + 0x220]
call fcn.140096334
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x40], xmm0
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x140051e9a
mov rax, qword [rsp + 0x48]
jmp 0x140051e9d
and eax, 0x7f
test rax, rax
je 0x140052017
lea r13, [rsp + 0x40]
mov rcx, r13
mov rdx, r12
call fcn.14007cb40
cmp byte [rsp + 0x97], 0
jns 0x140051ec8
mov r12, qword [rsp + 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [rsp + 0x97], 0
jns 0x140051ee8
mov rcx, qword [rsp + 0x80]
call fcn.140096334
movabs r8, 0x7fffffffffffffff
mov rcx, r13
mov dl, 1
call fcn.14000d420
cmp byte [rsp + 0x57], 0
jns 0x140051f08
mov r13, qword [rsp + 0x40]
mov rcx, r13
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x14005206f
mov qword [rsi + 8], rax
test rbp, rbp
je 0x140051f3b
mov ecx, 0x27f
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov rax, qword [rsi]
mov rax, qword [rax + 8]
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
mov r8, r15
call qword [0x140150008]
mov rcx, qword [rsi + 8]
lea rdx, str.ChromeMain
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov r8, qword [rsp + 0x38]
call qword [0x140150008]
mov esi, eax
cmp byte [rsp + 0x57], 0
jns 0x140051f8d
mov rcx, qword [rsp + 0x40]
call fcn.140096334
mov rcx, qword [rsp + 0x68]
mov rax, qword [0x14012dfa0]
and rax, rcx
cmp rax, qword [0x14012df88]
jne 0x140051faa
call fcn.14006a8b0
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
mov rax, qword [0x14012dfa0]
and rax, rcx
cmp rax, qword [0x14012df88]
jne 0x140051fd0
call fcn.14006a8b0
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400985e0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x250]
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea rcx, [rsp + 0x200]
call fcn.14000a0c0
jmp 0x140051c7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str.....operadesktopchrome_importschrome_appmain_dll_loader_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8d, 0x6e
mov r9d, 2
call fcn.1400e1150
lea rcx, [rsp + 0x90]
lea rdx, str.Cannot_find_module
mov r8d, 0x13
call fcn.1400c8050
lea rdx, str.opera_browser.dll
mov rcx, rax
call fcn.1400c7ff0
jmp 0x1400520eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str.....operadesktopchrome_importschrome_appmain_dll_loader_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8d, 0x73
mov r9d, 2
call fcn.1400e1150
lea rcx, [rsp + 0x90]
lea rdx, str.Failed_to_load_Opera_DLL_from
mov r8d, 0x1e
call fcn.1400c8050
lea rcx, [rsp + 0x40]
movzx edx, byte [rcx + 0x17]
mov r8d, edx
and r8d, 0x7f
test dl, dl
mov r9, qword [rcx]
cmovns r9, rcx
lea rdx, [rsp + 0x220]
mov qword [rdx], r9
cmovs r8, qword [rcx + 8]
mov qword [rdx + 8], r8
mov rcx, rax
call fcn.140034170
mov rcx, rdi
call fcn.1400e11d0
mov qword [rsi + 8], 0
mov esi, 7
jmp 0x140051f7c
call fcn.140061fd0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
cmp qword [0x140142d48], 0
je 0x14005213e
mov rcx, qword [0x140142d48]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x30]
call qword [0x140150008]
jmp 0x140051de3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14011a090]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005217f
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140052174
call qword [0x140150008]
mov rcx, rax
xor edx, edx
jmp 0x140052178
xor ecx, ecx
mov dl, 1
call fcn.140021bd0
jmp 0x140052121
xor ecx, ecx
jmp 0x140052170