Function at 0x140001660
Capabilities:
Check os version
Delete file
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
movaps xmmword [rsp + 0x240], xmm7
movaps xmmword [rsp + 0x230], xmm6
mov rax, qword [0x140068028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rsi, [rsp + 0x10c]
mov r8d, 0x110
mov rcx, rsi
xor edx, edx
call fcn.140012640
mov dword [rsi - 0xc], 0x11c
mov rdi, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rdi
movabs rcx, 0x100000006
mov qword [rsi - 8], rcx
mov word [rsi + 0x108], 0
lea rcx, [rsp + 0x100]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14000182d
xorps xmm7, xmm7
movaps xmmword [rsp + 0xa0], xmm7
mov qword [rsp + 0xb0], 0
lea rsi, [rsp + 0x88]
movaps xmm6, xmmword [0x14005c820]
movaps xmmword [rsi + 8], xmm6
movaps xmmword [rsi - 8], xmm6
mov edx, 0x7d1
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14000186b
mov rdi, rax
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400018ca
mov r14, rax
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1400018e0
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
lea rdi, [rsp + 0x108]
xor eax, eax
mov qword [rdi - 8], rax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8d, ebx
mov r9, r14
call fcn.140002b50
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x1400017e4
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r15, [rsp + 0xc8]
mov rax, qword [r15 - 8]
mov qword [rsp + 0x100], rax
mov qword [r15 - 8], 0
mov rcx, rdi
mov rdx, r15
call fcn.1400038f0
cmp byte [r15 + 0x17], 0
js 0x14000193f
mov word [rsp + 0xc8], 0
mov byte [rsp + 0xdf], 0
jmp 0x140001958
movabs rax, 0x400000000008
lea rcx, [rsp + 0x100]
mov qword [rcx], rax
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea rdx, str.This_Opera_installer_works_only_on_Windows_7_or_higher._r_nVisit_____www.opera.com_____to_download_compatible_version.
lea r8, str.Opera_installer_97.0.4719.63.0
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.USER32.dll_MessageBoxW]
mov edi, 3
jmp 0x140001e00
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x100]
mov dword [rdi], 0x110
mov dword [rdi + 4], eax
movups xmmword [rdi + 8], xmm7
mov qword [rdi + 0x18], 0
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.140002940
cmp byte [rdi + 0x1f], 0
jns 0x1400018b1
mov rcx, qword [rsp + 0x108]
call fcn.14000f340
xor ecx, ecx
mov qword [rsp + 0x80], rcx
mov qword [rsi + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140001d19
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x100]
mov dword [rdi], 0x116
jmp 0x1400018f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x100]
mov dword [rdi], 0x11c
mov dword [rdi + 4], eax
xorps xmm7, xmm7
movups xmmword [rdi + 8], xmm7
mov qword [rdi + 0x18], 0
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.140002940
cmp byte [rdi + 0x1f], 0
jns 0x140001929
mov rcx, qword [rsp + 0x108]
call fcn.14000f340
xor ecx, ecx
mov qword [rsp + 0x80], rcx
mov qword [rsi + 0x10], rcx
movups xmmword [rsi], xmm7
jmp 0x140001d19
mov rax, qword [rsp + 0xc8]
mov word [rax], 0
mov qword [rsp + 0xd0], 0
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x14000196b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0xc0], 0
cmp byte [rsp + 0xdf], 0
js 0x140001985
jne 0x140001998
jmp 0x1400019db
cmp qword [rsp + 0xd0], 0
je 0x1400019ce
mov r15, qword [rsp + 0xc8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0xdf], 0
jns 0x1400019db
mov rax, qword [rsp + 0xc8]
mov word [rax], 0
mov qword [rsp + 0xd0], 0
cmp byte [rsp + 0xdf], 0
jns 0x1400019db
mov rcx, qword [rsp + 0xc8]
call fcn.14000f340
mov rax, qword [rsp + 0x100]
test rax, rax
jne 0x140001b54
lea r12, [rsp + 0xc0]
mov qword [r12], 0x127
xorps xmm0, xmm0
movups xmmword [r12 + 8], xmm0
mov qword [r12 + 0x18], 0
lea r15, [rsp + 0xa0]
mov rcx, r15
mov rdx, r12
call fcn.140002940
cmp byte [r12 + 0x1f], 0
jns 0x140001a36
mov rcx, qword [rsp + 0xc8]
call fcn.14000f340
mov qword [rsp + 0x20], r15
lea rcx, [rsp + 0xc0]
mov edx, 1
mov r8d, ebx
mov r9, r14
call fcn.140002b50
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x140001a66
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rbx, [rsp + 0xc8]
mov rax, qword [rbx - 8]
mov qword [rsp + 0x100], rax
mov qword [rbx - 8], 0
mov rcx, rdi
mov rdx, rbx
call fcn.1400038f0
cmp byte [rbx + 0x17], 0
js 0x140001aa7
mov word [rsp + 0xc8], 0
mov byte [rsp + 0xdf], 0
jmp 0x140001ac0
mov rax, qword [rsp + 0xc8]
mov word [rax], 0
mov qword [rsp + 0xd0], 0
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140001ad3
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0xc0], 0
cmp byte [rsp + 0xdf], 0
js 0x140001aed
jne 0x140001b00
jmp 0x140001b43
cmp qword [rsp + 0xd0], 0
je 0x140001b36
mov rbx, qword [rsp + 0xc8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0xdf], 0
jns 0x140001b43
mov rax, qword [rsp + 0xc8]
mov word [rax], 0
mov qword [rsp + 0xd0], 0
cmp byte [rsp + 0xdf], 0
jns 0x140001b43
mov rcx, qword [rsp + 0xc8]
call fcn.14000f340
mov rax, qword [rsp + 0x100]
test rax, rax
je 0x140001c3c
mov qword [rsp + 0x80], rax
cmp byte [rsp + 0x11f], 0
js 0x140001b8b
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
mov word [rsp + 0x108], 0
mov byte [rsp + 0x11f], 0
jmp 0x140001ca1
mov rbx, qword [rsp + 0x108]
mov r14, qword [rsp + 0x110]
cmp r14, 0xa
ja 0x140001bae
mov byte [rsp + 0x9f], r14b
mov rcx, rsi
jmp 0x140001c02
mov r12, rsi
movabs rsi, 0x7fffffffffffffef
cmp r14, rsi
ja 0x1400024b6
mov r15, r14
or r15, 7
inc r15
js 0x1400024bb
lea rcx, [r15 + r15]
call fcn.14000f304
mov rcx, rax
mov qword [rsp + 0x88], rax
add rsi, 0x11
or rsi, r15
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x90], r14
mov rsi, r12
cmp rcx, rbx
ja 0x140001c18
lea rax, [rcx + r14*2]
add rax, 2
cmp rax, rbx
ja 0x14000248a
inc r14
add r14, r14
mov rdx, rbx
mov r8, r14
call fcn.140011f90
mov word [rbx], 0
mov qword [rsp + 0x110], 0
jmp 0x140001ca1
lea rbx, [rsp + 0xc0]
mov qword [rbx], 0x12b
xorps xmm7, xmm7
movups xmmword [rbx + 8], xmm7
mov qword [rbx + 0x18], 0
lea rcx, [rsp + 0xa0]
mov rdx, rbx
call fcn.140002940
cmp byte [rbx + 0x1f], 0
jns 0x140001c7d
mov rcx, qword [rsp + 0xc8]
call fcn.14000f340
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsi + 0x10], rax
movups xmmword [rsi], xmm7
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x140001ca1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x100], 0
cmp byte [rsp + 0x11f], 0
js 0x140001cbb
jne 0x140001cce
jmp 0x140001d11
cmp qword [rsp + 0x110], 0
je 0x140001d04
mov rdi, qword [rsp + 0x108]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0x11f], 0
jns 0x140001d11
mov rax, qword [rsp + 0x108]
mov word [rax], 0
mov qword [rsp + 0x110], 0
cmp byte [rsp + 0x11f], 0
jns 0x140001d11
mov rcx, qword [rsp + 0x108]
call fcn.14000f340
mov rcx, qword [rsp + 0x80]
lea rdx, [0x14005ccd1]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001e36
call qword [0x140071008]
mov edi, eax
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140001d4a
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x80], 0
cmp byte [rsp + 0x9f], 0
js 0x140001d64
jne 0x140001d77
jmp 0x140001dba
cmp qword [rsp + 0x90], 0
je 0x140001dad
mov rsi, qword [rsp + 0x88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0x9f], 0
jns 0x140001dba
mov rax, qword [rsp + 0x88]
mov word [rax], 0
mov qword [rsp + 0x90], 0
cmp byte [rsp + 0x9f], 0
jns 0x140001dba
mov rcx, qword [rsp + 0x88]
call fcn.14000f340
mov rsi, qword [rsp + 0xa0]
test rsi, rsi
je 0x140001e00
mov rax, qword [rsp + 0xa8]
cmp rax, rsi
je 0x140001df8
mov rbx, rax
add rbx, 0xffffffffffffffe0
je 0x140002432
cmp byte [rax - 1], 0
jns 0x140001df0
mov rcx, qword [rax - 0x18]
call fcn.14000f340
mov rax, rbx
cmp rbx, rsi
jne 0x140001dd7
mov rcx, rsi
call fcn.14000f340
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14000ff00
mov eax, edi
movaps xmm6, xmmword [rsp + 0x230]
movaps xmm7, xmmword [rsp + 0x240]
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r13, [rsp + 0x100]
mov dword [r13], 0xa9
mov dword [r13 + 4], eax
xorps xmm0, xmm0
movups xmmword [r13 + 8], xmm0
mov qword [r13 + 0x18], 0
lea rcx, [rsp + 0xa0]
mov rdx, r13
call fcn.140002940
cmp byte [r13 + 0x1f], 0
jns 0x140001e84
mov rcx, qword [rsp + 0x108]
call fcn.14000f340
movabs rbp, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x60]
mov qword [rcx + 0x10], rbp
movaps xmmword [rcx], xmm6
lea rdx, str.Fatal_error_upon_loading_installer_executable:_r_n
call fcn.1400024d0
mov r14, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
cmp r14, rax
je 0x1400023d4
movabs r15, 0x7fffffffffffffef
add r14, 8
lea rdi, [rsp + 0xe0]
lea r12, str.In_line
lea rbx, [rsp + 0x60]
xorps xmm7, xmm7
mov qword [rsp + 0xee], rbp
movaps xmmword [rsp + 0xe0], xmm6
mov ecx, dword [r14 - 8]
mov r8d, 0xb
mov rdx, rdi
mov r9d, 0xa
call fcn.14002162c
mov r8d, 8
mov rcx, rbx
mov rdx, r12
call fcn.14000d7d0
lea rsi, [rsp + 0xc0]
mov rcx, rsi
mov rdx, rdi
call fcn.1400024d0
mov r8d, 1
mov rcx, rsi
lea rdx, [0x14005c994]
call fcn.14000d7d0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x110], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x100], xmm0
movups xmmword [rax], xmm7
mov qword [rax + 0x10], 0
movzx eax, byte [rsp + 0x117]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x100]
cmovns rdx, r13
mov rcx, rbx
call fcn.14000d7d0
cmp byte [rsp + 0x117], 0
jns 0x140001fb1
mov rcx, qword [rsp + 0x100]
call fcn.14000f340
lea rsi, [r14 - 8]
cmp byte [rsp + 0xd7], 0
jns 0x140001fcc
mov rcx, qword [rsp + 0xc0]
call fcn.14000f340
mov qword [rsp + 0x50], rbp
movaps xmmword [rsp + 0x40], xmm6
mov ebx, dword [rsi + 4]
mov r8d, 0x100
mov rcx, r13
mov dl, 0xaa
call fcn.140012640
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x100
mov ecx, 0x1200
xor edx, edx
mov r8d, ebx
mov r9d, 0x409
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140002080
mov ecx, 0x20
call fcn.14000f304
mov rdx, rax
mov qword [rsp + 0x40], rax
lea rax, [r15 + 0x31]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0x1b
lea rcx, str._Error_cannot_be_retrieved_
cmp rdx, rcx
lea rbx, [rsp + 0x60]
ja 0x14000205b
lea rax, [rdx + 0x1b]
cmp rax, rcx
ja 0x14000245e
movups xmm0, xmmword [0x14005cd4f]
movups xmmword [rdx + 0xb], xmm0
movups xmm0, xmmword [str._Error_cannot_be_retrieved_]
movups xmmword [rdx], xmm0
mov byte [rdx + 0x1b], 0
mov cl, 0x80
mov eax, 0x1b
jmp 0x14000230d
mov qword [rsp + 0xd0], rbp
movaps xmmword [rsp + 0xc0], xmm6
mov rcx, r13
call fcn.1400254a0
cmp rax, r15
ja 0x1400024b6
mov rbx, rax
cmp rax, 0x16
ja 0x1400020bb
mov byte [rsp + 0xd7], bl
lea r15, [rsp + 0xc0]
jmp 0x1400020f9
mov r12, rbx
or r12, 0xf
inc r12
mov rcx, r12
call fcn.14000f304
mov r15, rax
mov qword [rsp + 0xc0], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, r12
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xc8], rbx
mov rax, rbx
add rax, r15
cmp rax, r13
setbe al
cmp r15, r13
ja 0x140002112
test al, al
je 0x14000245e
mov rcx, r15
mov rdx, r13
mov r8, rbx
call fcn.140011f90
mov byte [r15 + rbx], 0
movzx edi, byte [rsp + 0xd7]
mov eax, edi
and eax, 0x7e
test dil, dil
mov rbx, qword [rsp + 0xc8]
cmovs rax, rbx
cmp rax, 2
jb 0x14000219c
mov r15d, edi
and r15d, 0x7f
test dil, dil
cmovs r15, rbx
mov r12, qword [rsp + 0xc0]
lea rbx, [rsp + 0xc0]
cmovs rbx, r12
lea rax, [r15 - 2]
cmp r15, rax
cmovae r15, rax
movabs rax, 0x7fffffffffffffef
cmp r15, rax
ja 0x1400024b6
cmp r15, 0x16
ja 0x1400021f2
mov byte [rsp + 0x57], r15b
lea rbp, [rsp + 0x40]
jmp 0x14000222f
test dil, dil
jns 0x1400021c1
mov r12, qword [rsp + 0xc0]
cmp rbx, 0x16
ja 0x140002278
mov byte [rsp + 0x57], bl
lea rcx, [rsp + 0x40]
jmp 0x1400022b6
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0x40], xmm0
movabs r15, 0x7fffffffffffffef
lea rdi, [rsp + 0xe0]
jmp 0x1400022f3
mov r13, r15
or r13, 0xf
inc r13
mov rcx, r13
call fcn.14000f304
mov rbp, rax
mov qword [rsp + 0x40], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, r13
lea r13, [rsp + 0x100]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
cmp rbp, rbx
ja 0x140002241
lea rax, [r15 + rbp]
cmp rax, rbx
ja 0x14000245e
mov rcx, rbp
mov rdx, rbx
mov r8, r15
call fcn.140011f90
mov byte [rbp + r15], 0
test dil, dil
movabs rbp, 0xaaaaaaaaaaaaaaaa
movabs r15, 0x7fffffffffffffef
lea rdi, [rsp + 0xe0]
js 0x1400022eb
jmp 0x1400022f3
movabs rdi, 0x7fffffffffffffef
cmp rbx, rdi
ja 0x1400024b6
mov r15, rbx
or r15, 0xf
inc r15
mov rcx, r15
call fcn.14000f304
mov rcx, rax
mov qword [rsp + 0x40], rax
lea rax, [rdi + 0x11]
or rax, r15
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
lea rdi, [rsp + 0xe0]
cmp rcx, r12
ja 0x1400022d3
lea rax, [rcx + rbx]
inc rax
cmp rax, r12
ja 0x14000245e
inc rbx
mov rdx, r12
mov r8, rbx
call fcn.140011f90
movabs r15, 0x7fffffffffffffef
mov rcx, r12
call fcn.14000f340
mov cl, byte [rsp + 0x57]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
lea r12, str.In_line
lea rbx, [rsp + 0x60]
mov r8d, ecx
and r8b, 0x7f
test cl, cl
lea rcx, [rsp + 0x40]
cmovns rdx, rcx
movzx r8d, r8b
cmovs r8, rax
add r8, rdx
mov rcx, rbx
call fcn.1400025e0
movzx eax, byte [rsi + 0x1f]
test al, al
jns 0x14000233e
mov rax, qword [r14 + 8]
test rax, rax
je 0x14000239b
mov rcx, r13
lea rdx, [0x14005c994]
mov r8, r14
call fcn.140002800
movzx r8d, byte [rsp + 0x117]
test r8b, r8b
jns 0x140002375
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x100]
jmp 0x14000237c
and r8d, 0x7f
mov rdx, r13
mov rcx, rbx
call fcn.14000d7d0
cmp byte [rsp + 0x117], 0
jns 0x14000239b
mov rcx, qword [rsp + 0x100]
call fcn.14000f340
mov r8d, 2
mov rcx, rbx
lea rdx, [0x14005c998]
call fcn.14000d7d0
cmp byte [rsp + 0x57], 0
jns 0x1400023c1
mov rcx, qword [rsp + 0x40]
call fcn.14000f340
add r14, 0x20
add rsi, 0x20
cmp rsi, qword [rsp + 0x38]
jne 0x140001ee9
lea rdx, str._r_n_r_nWhen_reporting_this_error__click_on_this_text_and_press_CtrlC_to_copy_it.
mov r8d, 0x4e
lea rsi, [rsp + 0x60]
mov rcx, rsi
call fcn.14000d7d0
cmp byte [rsp + 0x77], 0
jns 0x1400023fa
mov rsi, qword [rsp + 0x60]
lea r8, str.Opera_installer_97.0.4719.63.0
xor ecx, ecx
mov rdx, rsi
xor r9d, r9d
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [rsp + 0x77], 0
lea rsi, [rsp + 0x88]
jns 0x140002428
mov rcx, qword [rsp + 0x60]
call fcn.14000f340
mov edi, 2
jmp 0x140001d37
lea rax, [0x14005cae0]
mov qword [rsp + 0x20], rax
lea rcx, [0x14005cac1]
lea rdx, [0x14005ca77]
lea r9, [0x14005cb01]
mov r8d, 0x41
call fcn.14004fdb0
lea rax, [0x14005cb4b]
mov qword [rsp + 0x20], rax
lea rcx, [0x14005cac1]
lea rdx, [0x14005cb8e]
lea r9, [0x14005cb6e]
mov r8d, 0xee
call fcn.14004fdb0
lea rax, [0x14005cb4b]
mov qword [rsp + 0x20], rax
lea rcx, [0x14005cac1]
lea rdx, [0x14005cb8e]
lea r9, [0x14005cb6e]
mov r8d, 0x134
call fcn.14004fdb0
call fcn.140023ca8
call fcn.14003abe0
int3
jmp 0x140001660