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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x188
mov eax, dword [0x454040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x120]
push 0x110
push 0
push edi
call fcn.0040e4b0
add esp, 0xc
mov dword [edi - 0xc], 0x11c
sub esp, 0x10
movdqa xmm0, xmmword [0x44def0]
movdqu xmmword [esp], xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
call ebx
mov esi, 3
xor ecx, ecx
inc ecx
push esi
push ecx
push edx
push eax
call ebx
push esi
push 0x20
push edx
push eax
call ebx
mov dword [edi - 8], 6
xor ecx, ecx
inc ecx
mov dword [edi - 4], ecx
mov word [edi + 0x108], 0
lea esi, [ebp - 0x12c]
push edx
push eax
push 0x23
push esi
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4016a1
xor eax, eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
lea ecx, [ebp - 0x16c]
pcmpeqd xmm0, xmm0
movdqu xmmword [ecx - 4], xmm0
push 0xa
push 0x7d1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x401584
mov edi, eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401576
mov esi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x401562
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
pxor xmm0, xmm0
movdqu xmmword [ebp - 0x144], xmm0
lea esi, [ebp - 0x160]
lea ecx, [ebp - 0x12c]
xor edx, edx
push esi
mov dword [ebp - 0x190], eax
push eax
push ebx
call fcn.00402300
add esp, 0xc
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x401383
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [ebp - 0x140]
lea esi, [ebp - 0x128]
mov eax, dword [esi - 4]
mov dword [edi - 4], eax
mov dword [esi - 4], 0
cmp byte [edi + 0xb], 0
movzx eax, byte [esi + 0xb]
js 0x401e15
test al, al
jns 0x4013f2
mov ecx, edi
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call fcn.00407960
cmp byte [ebp - 0x11d], 0
jns 0x401400
mov eax, dword [ebp - 0x128]
mov word [eax], 0
mov dword [ebp - 0x124], 0
jmp 0x401410
cmp dword [ebp - 0x124], 0
je 0x401464
mov esi, dword [ebp - 0x128]
jmp 0x401436
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
movq xmm0, qword [esi]
movq qword [edi], xmm0
mov word [ebp - 0x128], 0
mov byte [ebp - 0x11d], 0
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x401421
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x12c], 0
cmp byte [ebp - 0x11d], 0
js 0x4013e1
je 0x401472
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x11d], 0
jns 0x401472
mov eax, dword [ebp - 0x128]
mov word [eax], 0
mov dword [ebp - 0x124], 0
cmp byte [ebp - 0x11d], 0
jns 0x401472
push dword [ebp - 0x128]
call fcn.0040aa80
add esp, 4
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x401818
mov dword [ebp - 0x170], eax
cmp byte [ebp - 0x135], 0
js 0x401524
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x16c]
mov dword [ecx + 8], eax
movq xmm0, qword [edi]
movq qword [ecx], xmm0
mov word [ebp - 0x140], 0
mov byte [ebp - 0x135], 0
mov dword [ebp - 0x144], 0
cmp byte [ebp - 0x135], 0
js 0x401513
je 0x401508
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x135], 0
jns 0x401508
mov eax, dword [ebp - 0x140]
mov word [eax], 0
mov dword [ebp - 0x13c], 0
cmp byte [ebp - 0x135], 0
jns 0x401508
push dword [ebp - 0x140]
call fcn.0040aa80
add esp, 4
mov eax, dword [ebp - 0x170]
jmp 0x4015d2
cmp dword [ebp - 0x13c], 0
je 0x4014fa
mov edi, dword [ebp - 0x140]
jmp 0x4014cc
lea ecx, [ebp - 0x16c]
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
call fcn.0040a4c0
cmp byte [ebp - 0x135], 0
jns 0x4014a7
mov eax, dword [ebp - 0x140]
mov word [eax], 0
mov dword [ebp - 0x13c], 0
jmp 0x4014b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x12c]
mov dword [esi], 0x11c
jmp 0x401590
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0x116
jmp 0x401590
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0x110
mov dword [esi + 4], eax
pxor xmm0, xmm0
movq qword [esi + 8], xmm0
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x160]
mov edx, esi
call fcn.00402120
cmp byte [esi + 0x13], 0
jns 0x4015c4
push dword [ebp - 0x124]
call fcn.0040aa80
add esp, 4
pxor xmm0, xmm0
movdqu xmmword [ebp - 0x170], xmm0
xor eax, eax
push 0x44e452
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401757
mov ecx, eax
call dword [0x450a98]
call ecx
mov esi, eax
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x401603
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x170], 0
cmp byte [ebp - 0x161], 0
js 0x401672
lea eax, [ebp - 0x16c]
je 0x40165a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x161], 0
jns 0x40165a
mov eax, dword [ebp - 0x16c]
mov word [eax], 0
mov dword [ebp - 0x168], 0
cmp byte [ebp - 0x161], 0
jns 0x40165a
push dword [ebp - 0x16c]
call fcn.0040aa80
add esp, 4
mov edi, dword [ebp - 0x160]
test edi, edi
je 0x4016e0
mov eax, dword [ebp - 0x15c]
cmp eax, edi
je 0x4016d7
mov ebx, eax
jmp 0x401694
cmp dword [ebp - 0x168], 0
je 0x40164c
mov eax, dword [ebp - 0x16c]
jmp 0x40161e
push dword [eax - 0xc]
call fcn.0040aa80
add esp, 4
mov eax, ebx
cmp ebx, edi
je 0x4016d7
add ebx, 0xffffffec
je 0x4016f7
cmp byte [eax - 1], 0
jns 0x40168e
jmp 0x401683
mov dword [ebp - 0x12c], 8
mov dword [ebp - 0x128], 0x4000
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor eax, eax
push eax
push 0x44de88
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 0x4016e0
push edi
call fcn.0040aa80
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b285
mov eax, esi
add esp, 0x188
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x44e227
push 0x44e1a3
call fcn.00445400
lea esi, [ebp - 0x17c]
mov ecx, esi
push 0x4e
push 0x44e078
call fcn.0040a5a0
cmp byte [esi + 0xb], 0
jns 0x401726
mov esi, dword [ebp - 0x17c]
xor eax, eax
push eax
push 0x44de88
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebp - 0x171], 0
jns 0x40174d
push dword [ebp - 0x17c]
call fcn.0040aa80
add esp, 4
mov esi, 2
jmp 0x4015f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x12c]
mov dword [esi], 0xa9
mov dword [esi + 4], eax
pxor xmm0, xmm0
movq qword [esi + 8], xmm0
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x160]
mov edx, esi
call fcn.00402120
cmp byte [esi + 0x13], 0
jns 0x40179d
push dword [ebp - 0x124]
call fcn.0040aa80
add esp, 4
push 0x68
call fcn.0040aa50
add esp, 4
mov esi, eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x174], 0x80000034
mov dword [ebp - 0x178], 0x30
add eax, 0x60
mov ecx, str.Fatal_error_upon_loading_installer_executable:_r_n
cmp esi, ecx
seta dl
cmp eax, ecx
setbe al
or al, dl
je 0x401e5a
push 0x60
push str.Fatal_error_upon_loading_installer_executable:_r_n
push esi
call fcn.0040df30
add esp, 0xc
mov word [esi + 0x60], 0
mov esi, dword [ebp - 0x160]
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x194], eax
cmp esi, eax
je 0x401706
add esi, 8
xor eax, eax
dec eax
jmp 0x401b15
lea esi, [ebp - 0x12c]
mov dword [esi], 0x127
pxor xmm0, xmm0
movdqu xmmword [esi + 4], xmm0
lea ecx, [ebp - 0x160]
mov edx, esi
call fcn.00402120
cmp byte [esi + 0x13], 0
jns 0x40184e
push dword [ebp - 0x124]
call fcn.0040aa80
add esp, 4
lea ecx, [ebp - 0x12c]
xor edx, edx
inc edx
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x190]
push ebx
call fcn.00402300
add esp, 0xc
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x40187e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esi, [ebp - 0x128]
mov eax, dword [esi - 4]
mov dword [ebp - 0x144], eax
mov dword [esi - 4], 0
cmp byte [ebp - 0x135], 0
movzx eax, byte [esi + 0xb]
js 0x401e35
test al, al
jns 0x4018ed
mov ecx, edi
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call fcn.00407960
cmp byte [ebp - 0x11d], 0
jns 0x4018fb
mov eax, dword [ebp - 0x128]
mov word [eax], 0
mov dword [ebp - 0x124], 0
jmp 0x40190b
cmp dword [ebp - 0x124], 0
je 0x40195f
mov esi, dword [ebp - 0x128]
jmp 0x401931
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
movq xmm0, qword [esi]
movq qword [edi], xmm0
mov word [ebp - 0x128], 0
mov byte [ebp - 0x11d], 0
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x40191c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x12c], 0
cmp byte [ebp - 0x11d], 0
js 0x4018dc
je 0x40196d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x11d], 0
jns 0x40196d
mov eax, dword [ebp - 0x128]
mov word [eax], 0
mov dword [ebp - 0x124], 0
cmp byte [ebp - 0x11d], 0
jns 0x40196d
push dword [ebp - 0x128]
call fcn.0040aa80
add esp, 4
mov eax, dword [ebp - 0x144]
test eax, eax
jne 0x401480
lea esi, [ebp - 0x12c]
mov dword [esi], 0x12b
pxor xmm0, xmm0
movdqu xmmword [esi + 4], xmm0
lea ecx, [ebp - 0x160]
mov edx, esi
call fcn.00402120
cmp byte [esi + 0x13], 0
jns 0x4019b1
push dword [ebp - 0x124]
call fcn.0040aa80
add esp, 4
pxor xmm0, xmm0
movdqu xmmword [ebp - 0x170], xmm0
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x4014b7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4014b7
push 0x20
call fcn.0040aa50
add esp, 4
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x180], 0x80000020
mov dword [ebp - 0x184], 0x1b
lea ecx, [eax + 0x1b]
mov esi, str._Error_cannot_be_retrieved_
cmp eax, esi
seta dl
cmp ecx, esi
setbe cl
or cl, dl
je 0x401e6f
movups xmm0, xmmword [0x44e4ea]
movups xmmword [eax + 0xb], xmm0
movdqu xmm0, xmmword [str._Error_cannot_be_retrieved_]
movdqu xmmword [eax], xmm0
mov byte [eax + 0x1b], 0
mov cl, 0x80
mov edx, 0x1b
mov edi, dword [ebp - 0x18c]
test cl, cl
lea esi, [ebp - 0x188]
cmovns eax, esi
movzx esi, cl
cmovs esi, edx
add esi, eax
lea ecx, [ebp - 0x17c]
push esi
push eax
call fcn.00401e90
movsx eax, byte [edi + 0x13]
test eax, eax
js 0x401a7e
mov esi, dword [ebp - 0x190]
jmp 0x401a87
mov byte [ebp - 0x149], bl
lea eax, [ebp - 0x154]
jmp 0x401ba8
mov esi, dword [ebp - 0x190]
mov eax, dword [esi + 4]
test eax, eax
je 0x401ad5
push esi
push 0x44e06e
push ebx
call fcn.00401ff0
add esp, 0xc
movsx eax, byte [ebp - 0x121]
test eax, eax
jns 0x401ab1
mov eax, dword [ebp - 0x128]
mov ebx, dword [ebp - 0x12c]
lea ecx, [ebp - 0x17c]
push eax
push ebx
call fcn.0040a5a0
cmp byte [ebp - 0x121], 0
jns 0x401ad5
push dword [ebp - 0x12c]
call fcn.0040aa80
add esp, 4
lea ecx, [ebp - 0x17c]
push 2
push 0x44e072
call fcn.0040a5a0
cmp byte [ebp - 0x17d], 0
jns 0x401afe
push dword [ebp - 0x188]
call fcn.0040aa80
add esp, 4
add esi, 0x14
add edi, 0x14
cmp edi, dword [ebp - 0x194]
mov eax, 0xffffffff
je 0x401706
mov dword [ebp - 0x132], eax
mov dword [ebp - 0x136], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x144], xmm0
push 0xa
push 0xb
lea edi, [ebp - 0x144]
push edi
push dword [esi - 8]
call fcn.0041ae1b
add esp, 0x10
lea ecx, [ebp - 0x17c]
push 8
push str.In_line
call fcn.0040a5a0
push edi
call fcn.0041ebc3
add esp, 4
cmp eax, 0x7ffffff8
jae 0x401e64
mov ebx, eax
cmp eax, 4
jbe 0x401a6d
mov edi, esi
mov esi, ebx
or esi, 3
inc esi
js 0x401e55
lea eax, [esi + esi]
push eax
call fcn.0040aa50
add esp, 4
mov dword [ebp - 0x154], eax
or esi, 0x80000000
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x150], ebx
mov esi, edi
lea edi, [eax + ebx*2]
lea edx, [ebp - 0x144]
cmp eax, edx
seta cl
cmp edi, edx
setbe dl
or dl, cl
je 0x401e5a
test ebx, ebx
je 0x401bda
add ebx, ebx
push ebx
lea ecx, [ebp - 0x144]
push ecx
push eax
call fcn.0040df30
add esp, 0xc
mov word [edi], 0
lea ecx, [ebp - 0x154]
push 1
push 0x44e06e
call fcn.0040a5a0
mov ecx, dword [eax + 8]
mov dword [ebp - 0x124], ecx
movq xmm0, qword [eax]
movq qword [ebp - 0x12c], xmm0
pxor xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
movsx eax, byte [ebp - 0x121]
test eax, eax
cmovs eax, dword [ebp - 0x128]
mov edx, dword [ebp - 0x12c]
lea ebx, [ebp - 0x12c]
cmovns edx, ebx
lea ecx, [ebp - 0x17c]
push eax
push edx
call fcn.0040a5a0
cmp byte [ebp - 0x121], 0
jns 0x401c58
push dword [ebp - 0x12c]
call fcn.0040aa80
add esp, 4
cmp byte [ebp - 0x149], 0
jns 0x401c6f
push dword [ebp - 0x154]
call fcn.0040aa80
add esp, 4
mov dword [ebp - 0x190], esi
lea eax, [esi - 8]
xor edi, edi
dec edi
mov dword [ebp - 0x188], edi
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x18c], eax
mov esi, dword [eax + 4]
mov eax, 0x100
push eax
push 0xff
push ebx
call fcn.0040e4b0
add esp, 0xc
xor eax, eax
push eax
mov ecx, 0x100
push ecx
push ebx
push 0x409
push esi
push eax
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x4019d7
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x14c], edi
push ebx
call fcn.0041e460
add esp, 4
cmp eax, 0x7ffffff8
jae 0x401e79
mov ebx, eax
cmp eax, 0xa
jbe 0x401d90
mov esi, ebx
or esi, 7
inc esi
push esi
call fcn.0040aa50
add esp, 4
mov dword [ebp - 0x154], eax
or esi, 0x80000000
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x150], ebx
lea esi, [eax + ebx]
lea edx, [ebp - 0x12c]
cmp eax, edx
seta cl
cmp esi, edx
setbe dl
or dl, cl
je 0x401e6f
test ebx, ebx
je 0x401d56
push ebx
lea ecx, [ebp - 0x12c]
push ecx
push eax
call fcn.0040df30
add esp, 0xc
mov byte [esi], 0
movsx ecx, byte [ebp - 0x149]
test ecx, ecx
mov eax, dword [ebp - 0x150]
mov edx, ecx
cmovs edx, eax
cmp edx, 2
jae 0x401d9e
test cl, cl
lea ebx, [ebp - 0x12c]
jns 0x401df7
lea ecx, [ebp - 0x188]
push eax
push dword [ebp - 0x154]
call fcn.00409af0
jmp 0x401dc3
mov byte [ebp - 0x149], bl
lea eax, [ebp - 0x154]
jmp 0x401d26
add edx, 0xfffffffe
lea ecx, [ebp - 0x188]
lea eax, [ebp - 0x145]
push eax
push edx
push 0
lea eax, [ebp - 0x154]
push eax
call fcn.00409e40
lea ebx, [ebp - 0x12c]
mov edi, dword [ebp - 0x18c]
cmp byte [ebp - 0x149], 0
jns 0x401de0
push dword [ebp - 0x154]
call fcn.0040aa80
add esp, 4
mov cl, byte [ebp - 0x17d]
mov eax, dword [ebp - 0x188]
mov edx, dword [ebp - 0x184]
jmp 0x401a3d
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x180], eax
movq xmm0, qword [ebp - 0x154]
movq qword [ebp - 0x188], xmm0
jmp 0x401dc3
mov edx, esi
test al, al
jns 0x401e27
mov eax, dword [ebp - 0x124]
mov edx, dword [ebp - 0x128]
mov ecx, edi
push eax
push edx
call fcn.00407890
jmp 0x4013c1
mov edx, esi
test al, al
jns 0x401e47
mov eax, dword [ebp - 0x124]
mov edx, dword [ebp - 0x128]
mov ecx, edi
push eax
push edx
call fcn.00407890
jmp 0x4018bc
call fcn.00430d70
push 0x44e2ba
jmp 0x4016fc
lea ecx, [ebp - 0x154]
call fcn.00430d80
push 0x44e4fb
jmp 0x4016fc
lea ecx, [ebp - 0x154]
call fcn.00430d80
int3