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, 0x1d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [esp + 0x1c8], eax
lea esi, [esp + 0x94]
push 0x118
push 0
push esi
call fcn.00404d90
add esp, 0xc
mov dword [esi - 4], 0x11c
lea esi, [esp + 0x90]
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x401071
mov eax, dword [esp + 0x94]
cmp eax, 7
jae 0x401071
cmp eax, 6
jne 0x401218
mov eax, dword [esp + 0x98]
test eax, eax
je 0x401218
mov ebx, 7
xor edi, edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
push 0xa
push 0x7d1
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x4011e6
mov esi, eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401202
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esp], eax
test eax, eax
je 0x401253
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
xor edx, edx
lea ebx, [esp + 0x1ac]
mov dword [ebx], edx
mov ecx, 7
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x14], edx
mov word [ebx + 4], 0
lea esi, [esp + 8]
lea edi, [esp + 0x90]
mov ecx, edi
xor edx, edx
push esi
mov dword [esp + 8], eax
push eax
push dword [esp + 8]
call fcn.004018c0
add esp, 0xc
mov ecx, ebx
mov edx, edi
call fcn.00401dfa
mov ecx, edi
call fcn.0040166e
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
jne 0x401197
lea edi, [esp + 0x98]
mov dword [edi - 8], 0x120
mov dword [edi - 4], ebx
mov dword [edi + 0x10], ebx
mov eax, 7
mov dword [edi + 0x14], eax
mov word [edi], 0
lea edx, [esp + 0x90]
lea esi, [esp + 8]
mov ecx, esi
call fcn.004016a6
mov ecx, edi
call fcn.00402238
lea edi, [esp + 0x90]
xor edx, edx
inc edx
mov ecx, edi
push esi
push dword [esp + 8]
push dword [esp + 8]
call fcn.004018c0
add esp, 0xc
lea esi, [esp + 0x1ac]
mov ecx, esi
mov edx, edi
call fcn.00401dfa
mov ecx, edi
call fcn.0040166e
mov eax, dword [esi]
test eax, eax
je 0x40160a
lea esi, [esp + 0x1b0]
lea ecx, [esp + 0x74]
mov dword [ecx - 4], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
push esi
call fcn.00402984
cmp dword [esi + 0x14], 7
jbe 0x4011be
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x1c0], ebx
mov word [esi], 0
mov dword [esp + 0x1ac], ebx
lea ecx, [esp + 0x1ac]
call fcn.0040166e
mov edi, dword [esp + 0x70]
jmp 0x4012b3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x98]
mov dword [esi - 8], 0x109
mov dword [esi - 4], eax
mov dword [esi + 0x14], ebx
jmp 0x401274
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x98]
mov dword [esi - 8], 0x10f
jmp 0x401267
mov dword [esp + 0x90], 8
mov dword [esp + 0x94], 0x4000
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor eax, eax
push eax
push str.Opera_installer_60.0.3255.170.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 edi, 3
jmp 0x4015f2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x98]
mov dword [esi - 8], 0x115
mov dword [esi - 4], eax
mov ebx, 7
mov dword [esi + 0x14], ebx
xor edi, edi
mov dword [esi + 0x10], edi
mov word [esi], di
lea ecx, [esp + 8]
lea edx, [esp + 0x90]
call fcn.004016a6
mov ecx, esi
call fcn.00402238
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], edi
mov word [esp + 0x74], di
push 0x413312
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4012d0
call eax
mov edi, eax
mov esi, dword [esp + 8]
jmp 0x401560
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x98]
mov dword [esi - 8], 0xb2
mov dword [esi - 4], eax
mov eax, 7
mov dword [esi + 0x14], eax
xor ebx, ebx
mov dword [esi + 0x10], ebx
mov word [esi], bx
lea ecx, [esp + 8]
lea edi, [esp + 0x90]
mov edx, edi
call fcn.004016a6
mov ecx, esi
call fcn.00402238
mov eax, 7
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], ebx
mov word [edi], bx
lea ecx, [esp + 0x90]
push 0x30
push str.Fatal_error_upon_loading_installer_executable:_r_n
call fcn.004020a6
lea ecx, [esp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 4], eax
mov dword [esp], ecx
cmp eax, ecx
je 0x401518
mov ebx, dword [esp + 4]
mov esi, 0xa
push esi
mov edi, 0xb
push edi
lea eax, [esp + 0x62]
push eax
push dword [ebx]
call fcn.00407635
add esp, 0x10
push esi
push edi
lea eax, [esp + 0x4c]
push eax
push dword [ebx + 4]
call fcn.00407635
add esp, 0x10
mov eax, 7
mov dword [esp + 0x28], eax
xor esi, esi
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
lea eax, [esp + 0x5a]
push eax
call fcn.004079d7
add esp, 4
lea edi, [esp + 0x14]
mov ecx, edi
push eax
lea eax, [esp + 0x5e]
push eax
call fcn.004020a6
mov ecx, edi
push 1
push 0x4131ae
call fcn.00402a34
mov edi, eax
mov eax, 0x18
push eax
push edi
lea eax, [esp + 0x34]
push eax
call fcn.00404290
add esp, 0xc
mov dword [edi + 0x10], esi
mov eax, 7
mov dword [edi + 0x14], eax
mov word [edi], si
lea edi, [esp + 0x44]
push edi
call fcn.004079d7
add esp, 4
lea ecx, [esp + 0x2c]
push eax
push edi
call fcn.00402a34
mov edi, eax
mov eax, 0x18
push eax
push edi
lea eax, [esp + 0x1b4]
push eax
call fcn.00404290
add esp, 0xc
mov dword [edi + 0x10], esi
mov ecx, 7
mov dword [edi + 0x14], ecx
mov word [edi], si
lea edi, [esp + 0x1ac]
mov eax, dword [esp + 0x1bc]
cmp dword [esp + 0x1c0], ecx
mov edx, edi
jbe 0x40143d
mov edx, dword [esp + 0x1ac]
lea esi, [esp + 0x90]
mov ecx, esi
push eax
push edx
call fcn.00402a34
mov ecx, edi
call fcn.00402238
lea ecx, [esp + 0x2c]
call fcn.00402238
lea ecx, [esp + 0x14]
call fcn.00402238
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4014fe
mov ecx, 7
mov dword [esp + 0x1c0], ecx
mov dword [esp + 0x1bc], 0
mov word [esp + 0x1ac], 0
inc eax
mov ecx, edi
push eax
call fcn.00402760
mov ecx, edi
xor eax, eax
inc eax
push eax
push 0x4131ae
call fcn.00402a34
mov eax, dword [ebx + 0x18]
mov ecx, 7
cmp dword [ebx + 0x1c], ecx
jbe 0x4014bd
mov edx, dword [ebx + 8]
jmp 0x4014c0
lea edx, [ebx + 8]
mov ecx, edi
push eax
push edx
call fcn.00402a34
mov eax, dword [esp + 0x1bc]
mov ecx, 7
cmp dword [esp + 0x1c0], ecx
mov edx, edi
jbe 0x4014e7
mov edx, dword [esp + 0x1ac]
lea esi, [esp + 0x90]
mov ecx, esi
push eax
push edx
call fcn.00402a34
mov ecx, edi
call fcn.00402238
mov ecx, esi
push 2
push 0x4131b2
call fcn.00402a34
add ebx, 0x20
cmp dword [esp], ebx
jne 0x40134d
lea esi, [esp + 0x90]
mov ecx, esi
push 0x4e
push 0x4131b8
call fcn.00402a34
cmp dword [esp + 0xa4], 7
mov eax, esi
jbe 0x401540
mov eax, dword [esp + 0x90]
xor ecx, ecx
push ecx
push str.Opera_installer_60.0.3255.170.0
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, esi
call fcn.00402238
mov edi, 2
mov esi, dword [esp + 4]
lea ecx, [esp + 0x70]
call fcn.0040166e
test esi, esi
je 0x4015f2
mov dword [esp], edi
mov eax, esi
mov ebx, dword [esp + 0xc]
cmp esi, ebx
je 0x401594
mov eax, esi
sub ebx, esi
lea edi, [esi + 8]
mov ecx, edi
call fcn.00402238
add edi, 0x20
add ebx, 0xffffffe0
jne 0x401585
mov eax, dword [esp + 0x10]
sub eax, esi
mov ecx, eax
sar ecx, 5
cmp ecx, 0x7ffffff
ja 0x401669
mov edx, esi
cmp eax, 0x1000
mov eax, esi
jb 0x4015d8
test dl, 0x1f
jne 0x401669
mov eax, dword [edx - 4]
cmp eax, edx
jae 0x401669
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x401669
push eax
call fcn.00402c5c
add esp, 4
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov edi, dword [esp]
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.00402c61
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x98]
mov dword [esi - 8], 0x124
xor edi, edi
mov dword [esi - 4], edi
mov dword [esi + 0x10], edi
mov ebx, 7
mov dword [esi + 0x14], ebx
mov word [esi], di
lea ecx, [esp + 8]
lea edx, [esp + 0x90]
call fcn.004016a6
mov ecx, esi
call fcn.00402238
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], edi
mov word [esp + 0x74], di
jmp 0x4011d1
call fcn.00407436