Function at 0x401000
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov eax, dword [0x44a0d8]
xor eax, ebp
mov dword [esp + 0x198], eax
lea esi, [esp + 0x80]
push 0x118
push 0
push esi
call fcn.0041dd00
add esp, 0xc
mov dword [esi - 4], 0x11c
lea esi, [esp + 0x7c]
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x40106e
mov eax, dword [esp + 0x80]
cmp eax, 7
jae 0x40106e
cmp eax, 6
jne 0x4011e8
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4011e8
xor edi, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
push 0xa
push 0x7d1
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x40118b
mov esi, eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4011d6
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
test eax, eax
je 0x401220
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
xorps xmm0, xmm0
lea eax, [esp + 0x60]
movaps xmmword [eax], xmm0
lea eax, [esp + 0x54]
lea edi, [esp + 0x7c]
mov ecx, edi
xor edx, edx
push eax
push ebx
push esi
call fcn.0040185c
add esp, 0xc
lea ecx, [esp + 0x60]
mov edx, edi
call fcn.00401d14
mov ecx, edi
call fcn.004016a2
lea eax, [esp + 0x60]
cmp dword [eax], 0
jne 0x40116c
lea edi, [esp + 0x7c]
mov dword [edi], 0x120
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
lea ecx, [esp + 0x54]
mov edx, edi
call fcn.004016d4
cmp byte [edi + 0x13], 0
jns 0x401137
push dword [esp + 0x84]
call fcn.004192e8
add esp, 4
lea edi, [esp + 0x7c]
xor edx, edx
inc edx
mov ecx, edi
lea eax, [esp + 0x54]
push eax
push ebx
push esi
call fcn.0040185c
add esp, 0xc
lea esi, [esp + 0x60]
mov ecx, esi
mov edx, edi
call fcn.00401d14
mov ecx, edi
call fcn.004016a2
cmp dword [esi], 0
je 0x40158c
lea ecx, [esp + 0x40]
lea edx, [esp + 0x60]
call fcn.00401d68
lea ecx, [esp + 0x60]
call fcn.004016a2
mov edi, dword [esp + 0x40]
jmp 0x401266
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x7c]
mov dword [esi], 0x109
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
lea ecx, [esp + 0x54]
mov edx, esi
call fcn.004016d4
cmp byte [esi + 0x13], 0
jns 0x4011c7
push dword [esp + 0x84]
call fcn.004192e8
add esp, 4
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
xor edi, edi
jmp 0x401266
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x7c]
mov dword [esi], 0x10f
jmp 0x401230
mov dword [esp + 0x7c], 8
mov dword [esp + 0x80], 0x4000
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor eax, eax
push eax
push str.Opera_installer_62.0.3331.18.0
push str.This_Opera_installer_works_only_on_Windows_7_or_higher._r_nVisit_____www.opera.com_____to_download_compatible_version.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, 3
jmp 0x401574
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x7c]
mov dword [esi], 0x115
mov dword [esi + 4], eax
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
lea ecx, [esp + 0x54]
mov edx, esi
call fcn.004016d4
cmp byte [esi + 0x13], 0
jns 0x40125e
push dword [esp + 0x84]
call fcn.004192e8
add esp, 4
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
push 0x43c2e8
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x40127f
call eax
mov esi, eax
jmp 0x40152c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x7c]
mov dword [esi], 0xb2
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esp + 0x54]
mov edx, esi
call fcn.004016d4
cmp byte [esi + 0x13], 0
jns 0x4012bd
push dword [esp + 0x84]
call fcn.004192e8
add esp, 4
push 0x70
call fcn.004192b8
add esp, 4
mov esi, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 0x80000038
mov dword [esp + 0x38], 0x30
push 0x60
push str.Fatal_error_upon_loading_installer_executable:_r_n
push eax
call fcn.0041d200
add esp, 0xc
mov word [esi + 0x60], 0
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
cmp ebx, eax
je 0x4014ec
add ebx, 8
mov eax, 0xa
push eax
mov edi, 0xb
push edi
lea esi, [esp + 0x84]
push esi
push dword [ebx - 8]
call fcn.00427a50
add esp, 0x10
mov eax, 0xa
push eax
push edi
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x18], ebx
push dword [ebx - 4]
call fcn.00427a50
add esp, 0x10
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push esi
call fcn.0042ae94
add esp, 4
cmp eax, 0x7ffffff0
jae 0x4015d1
mov ebx, eax
cmp eax, 5
jae 0x40137b
mov byte [esp + 0x1b], bl
test ebx, ebx
lea esi, [esp + 0x10]
jne 0x4013a7
jmp 0x4013bd
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x4015da
lea eax, [edi + edi]
push eax
call fcn.004192b8
add esp, 4
mov esi, eax
mov dword [esp + 0x10], eax
or edi, 0x80000000
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov eax, ebx
add eax, ebx
push eax
lea eax, [esp + 0x80]
push eax
push esi
call fcn.0041d200
add esp, 0xc
mov word [esi + ebx*2], 0
lea ecx, [esp + 0x10]
push 0x43c1ac
call fcn.00417f72
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
xor ebx, ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x60]
push eax
call fcn.00417f72
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
movzx eax, byte [esp + 0x33]
test al, al
cmovs eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x28]
cmovns edx, ecx
lea ecx, [esp + 0x34]
push eax
push edx
call fcn.00417db2
cmp byte [esp + 0x33], bl
jns 0x40144d
push dword [esp + 0x28]
call fcn.004192e8
add esp, 4
cmp byte [esp + 0x27], 0
mov ebx, dword [esp + 0xc]
jns 0x401464
push dword [esp + 0x1c]
call fcn.004192e8
add esp, 4
lea esi, [ebx - 8]
cmp byte [esp + 0x1b], 0
jns 0x40147a
push dword [esp + 0x10]
call fcn.004192e8
add esp, 4
movzx eax, byte [esi + 0x13]
test al, al
jns 0x401485
mov eax, dword [ebx + 4]
test eax, eax
je 0x4014ce
push ebx
push 0x43c1ac
lea edi, [esp + 0x30]
push edi
call 0x4015df
add esp, 0xc
movzx eax, byte [esp + 0x33]
test al, al
mov edx, edi
jns 0x4014af
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push eax
push edx
call fcn.00417db2
xor eax, eax
cmp byte [esp + 0x33], al
jns 0x4014ce
push dword [esp + 0x28]
call fcn.004192e8
add esp, 4
lea ecx, [esp + 0x34]
push 0x43c1b0
call fcn.00417f72
add ebx, 0x14
add esi, 0x14
cmp esi, dword [esp + 8]
jne 0x40130a
lea esi, [esp + 0x34]
mov ecx, esi
push str._r_n_r_nWhen_reporting_this_error__click_on_this_text_and_press_CtrlC_to_copy_it.
call fcn.00417f72
xor ebx, ebx
cmp byte [esi + 0xb], bl
jns 0x401507
mov esi, dword [esp + 0x34]
push ebx
push str.Opera_installer_62.0.3331.18.0
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [esp + 0x3f], bl
jns 0x401527
push dword [esp + 0x34]
call fcn.004192e8
add esp, 4
mov esi, 2
lea ecx, [esp + 0x40]
call fcn.004016a2
mov edi, dword [esp + 0x54]
test edi, edi
je 0x401574
mov eax, dword [esp + 0x58]
cmp eax, edi
je 0x401565
lea ebx, [eax - 0x14]
cmp byte [eax - 1], 0
jns 0x401559
push dword [eax - 0xc]
call fcn.004192e8
add esp, 4
cmp edi, ebx
mov eax, ebx
jne 0x401545
mov eax, dword [esp + 0x54]
jmp 0x401567
mov eax, edi
mov dword [esp + 0x58], edi
push eax
call fcn.004192e8
add esp, 4
mov ecx, dword [esp + 0x198]
xor ecx, ebp
call fcn.00419315
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x7c]
mov dword [esi], 0x124
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esp + 0x54]
mov edx, esi
call fcn.004016d4
cmp byte [esi + 0x13], 0
jns 0x4015c4
push dword [esp + 0x84]
call fcn.004192e8
add esp, 4
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
jmp 0x401179
lea ecx, [esp + 0x10]
call fcn.004175c8
call fcn.00429a0e
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
push dword [ebp + 0xc]
call fcn.0042ae94
add esp, 4
mov ebx, eax
movzx eax, byte [esi + 0xb]
test al, al
mov dword [ebp - 0x10], eax
jns 0x401613
mov eax, dword [esi + 4]
lea esi, [eax + ebx]
cmp esi, 0x7ffffff0
jae 0x401694
cmp esi, 4
mov dword [ebp - 0x14], eax
ja 0x401630
mov esi, dword [ebp + 8]
mov byte [esi + 0xb], bl
mov edi, esi
jmp 0x401659
add esi, 8
and esi, 0xfffffff8
js 0x40169c
lea eax, [esi + esi]
push eax
call fcn.004192b8
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
or esi, 0x80000000
mov dword [eax + 8], esi
mov esi, eax
mov dword [eax + 4], ebx
test ebx, ebx
je 0x40166e
mov eax, ebx
add eax, ebx
push eax
push dword [ebp + 0xc]
push edi
call fcn.0041d200
add esp, 0xc
cmp byte [ebp - 0x10], 0
mov word [edi + ebx*2], 0
mov eax, dword [ebp + 0x10]
jns 0x40167f
mov eax, dword [eax]
mov ecx, esi
push dword [ebp - 0x14]
push eax
call fcn.00417db2
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.004175c8
call fcn.00429a0e
int3