Function at 0x401380
Capabilities:
Check os version
Delete file
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 [0x450014]
xor eax, ebp
mov dword [esp + 0x198], eax
lea esi, [esp + 0x7c]
push 0x118
push 0
push esi
call fcn.0040f850
add esp, 0xc
mov dword [esi - 4], 0x11c
lea esi, [esp + 0x78]
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4013e2
cmp dword [esp + 0x7c], 6
ja 0x4013e2
jne 0x40151b
cmp dword [esp + 0x80], 0
je 0x40151b
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
push 0xa
push 0x7d1
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x4014bc
mov edi, eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401509
mov esi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
test eax, eax
je 0x401550
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
lea esi, [esp + 0x48]
lea ecx, [esp + 0x78]
xor edx, edx
push esi
mov dword [esp + 0x10], eax
push eax
push edi
call fcn.00402130
add esp, 0xc
mov eax, dword [esp + 0x60]
test eax, eax
je 0x401471
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea esi, [esp + 0x64]
mov eax, dword [esp + 0x78]
mov dword [esi - 4], eax
mov dword [esp + 0x78], 0
cmp byte [esi + 0xb], 0
movzx eax, byte [esp + 0x87]
lea ebx, [esp + 0x7c]
js 0x4015ad
test al, al
jns 0x40159d
mov ecx, esi
push dword [esp + 0x80]
push dword [esp + 0x80]
call fcn.00409790
jmp 0x4015c7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x78]
mov dword [esi], 0x119
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
lea ecx, [esp + 0x48]
mov edx, esi
call fcn.00401f90
cmp byte [esi + 0x13], 0
jns 0x4014f8
push dword [esp + 0x80]
call fcn.0040bcd2
add esp, 4
pxor xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
xor edi, edi
jmp 0x401899
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x78]
mov dword [esi], 0x11f
jmp 0x401560
mov dword [esp + 0x78], 8
mov dword [esp + 0x7c], 0x4000
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor eax, eax
push eax
push str.Opera_installer_80.0.4170.72.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 0x401d2e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x78]
mov dword [esi], 0x125
mov dword [esi + 4], eax
xor edi, edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
lea ecx, [esp + 0x48]
mov edx, esi
call fcn.00401f90
cmp byte [esi + 0x13], 0
jns 0x40158e
push dword [esp + 0x80]
call fcn.0040bcd2
add esp, 4
pxor xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
jmp 0x401899
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
movq xmm0, qword [ebx]
movq qword [esi], xmm0
jmp 0x4015c7
mov edx, ebx
test al, al
jns 0x4015be
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov ecx, esi
push eax
push edx
call fcn.00409680
cmp byte [esp + 0x87], 0
js 0x4015e2
mov word [esp + 0x7c], 0
mov byte [esp + 0x87], 0
jmp 0x4015f6
mov eax, dword [esp + 0x7c]
mov word [eax], 0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x78]
test eax, eax
je 0x401605
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [esp + 0x78], 0
movzx eax, byte [esp + 0x87]
mov ecx, eax
test al, al
jns 0x401622
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x401664
test al, al
jns 0x40162e
mov ebx, dword [esp + 0x7c]
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esp + 0x87], 0
js 0x401649
mov byte [esp + 0x87], 0
jmp 0x401674
mov eax, dword [esp + 0x7c]
mov word [eax], 0
mov dword [esp + 0x80], 0
mov al, byte [esp + 0x87]
test al, al
jns 0x401674
push dword [esp + 0x7c]
call fcn.0040bcd2
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x4017f6
lea ebx, [esp + 0x78]
mov dword [ebx], 0x130
pxor xmm0, xmm0
movdqu xmmword [ebx + 4], xmm0
lea ecx, [esp + 0x48]
mov edx, ebx
call fcn.00401f90
cmp byte [ebx + 0x13], 0
jns 0x4016b3
push dword [esp + 0x80]
call fcn.0040bcd2
add esp, 4
lea ecx, [esp + 0x78]
xor edx, edx
inc edx
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x10]
push edi
call fcn.00402130
add esp, 0xc
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4016db
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea edi, [esp + 0x7c]
mov eax, dword [edi - 4]
mov dword [esp + 0x60], eax
mov dword [edi - 4], 0
cmp byte [esp + 0x6f], 0
movzx eax, byte [edi + 0xb]
js 0x401723
test al, al
jns 0x401713
mov ecx, esi
push dword [esp + 0x80]
push dword [esp + 0x80]
call fcn.00409790
jmp 0x40173d
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movq xmm0, qword [edi]
movq qword [esi], xmm0
jmp 0x40173d
mov edx, edi
test al, al
jns 0x401734
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov ecx, esi
push eax
push edx
call fcn.00409680
cmp byte [esp + 0x87], 0
js 0x401758
mov word [esp + 0x7c], 0
mov byte [esp + 0x87], 0
jmp 0x40176c
mov eax, dword [esp + 0x7c]
mov word [eax], 0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x78]
test eax, eax
je 0x40177b
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [esp + 0x78], 0
movzx eax, byte [esp + 0x87]
mov ecx, eax
test al, al
jns 0x401798
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x4017da
test al, al
jns 0x4017a4
mov edi, dword [esp + 0x7c]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esp + 0x87], 0
js 0x4017bf
mov byte [esp + 0x87], 0
jmp 0x4017ea
mov eax, dword [esp + 0x7c]
mov word [eax], 0
mov dword [esp + 0x80], 0
mov al, byte [esp + 0x87]
test al, al
jns 0x4017ea
push dword [esp + 0x7c]
call fcn.0040bcd2
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x401d46
lea ecx, [esp + 0x34]
mov dword [ecx - 4], eax
cmp byte [esp + 0x6f], 0
js 0x401814
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
movq xmm0, qword [esi]
movq qword [ecx], xmm0
jmp 0x40182c
push dword [esp + 0x68]
push dword [esp + 0x68]
call fcn.0040b440
cmp byte [esp + 0x6f], 0
js 0x401d9b
mov word [esp + 0x64], 0
mov byte [esp + 0x6f], 0
mov dword [esp + 0x60], 0
movzx eax, byte [esp + 0x6f]
mov ecx, eax
test al, al
jns 0x40184f
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x401885
test al, al
jns 0x40185b
mov esi, dword [esp + 0x64]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esp + 0x6f], 0
js 0x401870
mov byte [esp + 0x6f], 0
jmp 0x401895
mov eax, dword [esp + 0x64]
mov word [eax], 0
mov dword [esp + 0x68], 0
mov al, byte [esp + 0x6f]
test al, al
jns 0x401895
push dword [esp + 0x64]
call fcn.0040bcd2
add esp, 4
mov edi, dword [esp + 0x30]
push 0x44a4ba
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4018b2
call eax
mov esi, eax
jmp 0x401c7d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esp + 0x78]
mov dword [esi], 0xb2
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
lea ecx, [esp + 0x48]
mov edx, esi
call fcn.00401f90
cmp byte [esi + 0x13], 0
jns 0x4018f0
push dword [esp + 0x80]
call fcn.0040bcd2
add esp, 4
push 0x70
call fcn.0040bca2
add esp, 4
mov edi, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0x80000038
mov dword [esp + 0x28], 0x30
push 0x60
push str.Fatal_error_upon_loading_installer_executable:_r_n
push eax
call fcn.0040ed50
add esp, 0xc
mov word [edi + 0x60], 0
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x401c3b
add esi, 8
xor eax, eax
dec eax
lea ebx, [esp + 0x24]
mov dword [esp + 0x72], eax
mov dword [esp + 0x6e], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
push 0xa
push 0xb
lea edi, [esp + 0x68]
push edi
push dword [esi - 8]
call fcn.00419a9d
add esp, 0x10
mov ecx, ebx
push str.In_line
call fcn.00409820
push edi
call fcn.0041ce38
add esp, 4
cmp eax, 0x7ffffff0
jae 0x401db1
mov ebx, eax
cmp eax, 5
mov dword [esp + 0xc], esi
jae 0x4019ba
mov byte [esp + 0x5f], bl
cmp ebx, 3
jne 0x401c2a
movzx eax, word [esp + 0x64]
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], eax
lea edi, [esp + 0x54]
jmp 0x4019f7
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.0040bca2
add esp, 4
mov edi, eax
mov dword [esp + 0x54], eax
or esi, 0x80000000
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x58], ebx
mov eax, ebx
add eax, ebx
push eax
lea eax, [esp + 0x64]
push eax
push edi
call fcn.0040ed50
add esp, 0xc
mov word [edi + ebx*2], 0
lea ecx, [esp + 0x54]
push 0x44a37e
call fcn.00409820
mov ecx, dword [eax + 8]
mov dword [esp + 0x80], ecx
movq xmm0, qword [eax]
movq qword [esp + 0x78], xmm0
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
movzx eax, byte [esp + 0x83]
test al, al
cmovs eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
lea ebx, [esp + 0x78]
cmovns edx, ebx
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.0040b5e0
cmp byte [esp + 0x83], 0
jns 0x401a64
push dword [esp + 0x78]
call fcn.0040bcd2
add esp, 4
add esi, 0xfffffff8
cmp byte [esp + 0x5f], 0
jns 0x401a7a
push dword [esp + 0x54]
call fcn.0040bcd2
add esp, 4
xor ebx, ebx
dec ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], esi
mov esi, dword [esi + 4]
mov eax, 0x100
push eax
push 0xff
lea edi, [esp + 0x80]
push edi
call fcn.0040f850
add esp, 0xc
xor eax, eax
push eax
mov ecx, 0x100
push ecx
push edi
push 0x409
push esi
push eax
push 0x1200
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
test eax, eax
jne 0x401ae8
lea edi, [esp + 0x18]
mov ecx, edi
push str._Error_cannot_be_retrieved_
call fcn.0042ea60
mov esi, dword [esp + 0xc]
lea ebx, [esp + 0x24]
jmp 0x401b73
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
lea ebx, [esp + 0x54]
mov ecx, ebx
push edi
call fcn.0042ea60
movzx ecx, byte [esp + 0x5f]
test cl, cl
mov eax, dword [esp + 0x58]
mov edx, ecx
cmovs edx, eax
cmp edx, 2
mov esi, dword [esp + 0xc]
lea edi, [esp + 0x18]
jb 0x401b36
add edx, 0xfffffffe
mov ecx, edi
lea eax, [esp + 0x60]
push eax
push edx
push 0
push ebx
call fcn.00409520
lea ebx, [esp + 0x24]
jmp 0x401b60
test cl, cl
lea ebx, [esp + 0x24]
js 0x401b54
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
movq xmm0, qword [esp + 0x54]
movq qword [esp + 0x18], xmm0
jmp 0x401b60
mov ecx, edi
push eax
push dword [esp + 0x58]
call fcn.0040ac60
cmp byte [esp + 0x5f], 0
jns 0x401b73
push dword [esp + 0x54]
call fcn.0040bcd2
add esp, 4
movzx eax, byte [esp + 0x23]
test al, al
jns 0x401b84
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add eax, edi
mov ecx, ebx
push eax
push edi
call fcn.00401dc0
mov edi, dword [esp + 0x14]
movzx eax, byte [edi + 0x13]
test al, al
jns 0x401b9e
mov eax, dword [esi + 4]
test eax, eax
jne 0x401bd8
mov ecx, ebx
push 0x44a382
call fcn.00409820
cmp byte [esp + 0x23], 0
jns 0x401bc1
push dword [esp + 0x18]
call fcn.0040bcd2
add esp, 4
add esi, 0x14
add edi, 0x14
cmp edi, dword [esp + 0x10]
mov eax, 0xffffffff
jne 0x401944
jmp 0x401c3b
push esi
push 0x44a37e
lea eax, [esp + 0x80]
push eax
call fcn.0042e990
add esp, 0xc
movzx eax, byte [esp + 0x83]
lea edx, [esp + 0x78]
test al, al
jns 0x401c06
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov ecx, ebx
push eax
push edx
call fcn.0040b5e0
cmp byte [esp + 0x83], 0
jns 0x401ba2
push dword [esp + 0x78]
call fcn.0040bcd2
add esp, 4
jmp 0x401ba2
lea edi, [esp + 0x54]
test ebx, ebx
je 0x4019f7
jmp 0x4019e4
lea esi, [esp + 0x24]
mov ecx, esi
push 0x44a388
call fcn.00409820
cmp byte [esi + 0xb], 0
jns 0x401c55
mov esi, dword [esp + 0x24]
xor eax, eax
push eax
push str.Opera_installer_80.0.4170.72.0
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [esp + 0x2f], 0
jns 0x401c78
push dword [esp + 0x24]
call fcn.0040bcd2
add esp, 4
mov esi, 2
mov eax, dword [esp + 0x30]
test eax, eax
je 0x401c8c
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [esp + 0x30], 0
movzx eax, byte [esp + 0x3f]
mov ecx, eax
test al, al
jns 0x401ca3
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x401cdf
test al, al
jns 0x401cb1
mov eax, dword [esp + 0x34]
jmp 0x401cb5
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esp + 0x3f], 0
js 0x401cca
mov byte [esp + 0x3f], 0
jmp 0x401cef
mov eax, dword [esp + 0x34]
mov word [eax], 0
mov dword [esp + 0x38], 0
mov al, byte [esp + 0x3f]
test al, al
jns 0x401cef
push dword [esp + 0x34]
call fcn.0040bcd2
add esp, 4
mov edi, dword [esp + 0x48]
test edi, edi
je 0x401d2e
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x401d1f
lea ebx, [eax - 0x14]
cmp byte [eax - 1], 0
jns 0x401d13
push dword [eax - 0xc]
call fcn.0040bcd2
add esp, 4
mov eax, ebx
cmp ebx, edi
jne 0x401cff
mov eax, dword [esp + 0x48]
jmp 0x401d21
mov eax, edi
mov dword [esp + 0x4c], edi
push eax
call fcn.0040bcd2
add esp, 4
mov ecx, dword [esp + 0x198]
xor ecx, ebp
call fcn.0040c1d8
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esp + 0x78]
mov dword [edi], 0x134
pxor xmm0, xmm0
movdqu xmmword [edi + 4], xmm0
lea ecx, [esp + 0x48]
mov edx, edi
call fcn.00401f90
cmp byte [edi + 0x13], 0
jns 0x401d79
push dword [esp + 0x80]
call fcn.0040bcd2
add esp, 4
pxor xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x401838
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x401838
mov eax, dword [esp + 0x64]
mov word [eax], 0
mov dword [esp + 0x68], 0
jmp 0x401838
lea ecx, [esp + 0x54]
call fcn.0043fe20
int3