Function at 0x4027b0
Capabilities:
Check os version
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x455070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3ac], 0
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x3c4], eax
cmp dword [ebp - 0x3c4], 0
jne 0x4027f6
jmp 0x402bc7
push str.RegGetValueW
mov eax, dword [ebp - 0x3c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3d0], eax
push str.RegDeleteKeyValueW
mov ecx, dword [ebp - 0x3c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3e4], eax
xor edx, edx
mov word [ebp - 0x28c], dx
push 0x206
push 0
lea eax, [ebp - 0x28a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_s
push 0x208
lea edx, [ebp - 0x28c]
push edx
call fcn.00401000
add esp, 0x10
lea eax, [ebp - 0x3ac]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x28c]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0
jne 0x402bad
push 0x4397f8
mov edx, dword [ebp - 0x3ac]
push edx
call fcn.004021c0
lea eax, [ebp - 0x3b0]
push eax
push 0xf003f
push 0
push 0x439810
mov ecx, dword [ebp - 0x3ac]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0
jne 0x402bad
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x294], 0x80
xor edx, edx
mov word [ebp - 0x84], dx
push 0x7e
push 0
lea eax, [ebp - 0x82]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x294]
push ecx
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x290]
push eax
push 2
push 0x439828
push 0x439838
mov ecx, dword [ebp - 0x3ac]
push ecx
call dword [ebp - 0x3d0]
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0
jne 0x402bad
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x402ab2
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x294], 0x80
mov eax, dword [ebp - 0x294]
push eax
push 0
lea ecx, [ebp - 0x84]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
lea edx, [ebp - 0x294]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x290]
push ecx
push 2
push 0x439850
push 0x439860
mov edx, dword [ebp - 0x3ac]
push edx
call dword [ebp - 0x3d0]
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0
jne 0x402a9f
lea eax, [ebp - 0x84]
mov dword [ebp - 0x3c0], eax
mov ecx, dword [ebp - 0x3c0]
add ecx, 2
mov dword [ebp - 0x3e8], ecx
mov edx, dword [ebp - 0x3c0]
mov ax, word [edx]
mov word [ebp - 0x3c6], ax
add dword [ebp - 0x3c0], 2
cmp word [ebp - 0x3c6], 0
jne 0x4029de
mov ecx, dword [ebp - 0x3c0]
sub ecx, dword [ebp - 0x3e8]
sar ecx, 1
mov dword [ebp - 0x3dc], ecx
mov edx, dword [ebp - 0x3dc]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x290]
push edx
push 0
push 0x439878
mov eax, dword [ebp - 0x3b0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3a8], 0
push 0x110
push 0
lea ecx, [ebp - 0x3a4]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [ebp - 0x3a8], 0x114
lea edx, [ebp - 0x3a8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x3a4], 6
jb 0x402a9d
push 0x439888
push str.UserChoice
mov eax, dword [ebp - 0x3ac]
push eax
call dword [ebp - 0x3e4]
jmp 0x402aad
push str.::Asso__RegisterElexViewer_vbackup_faild
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 4
jmp 0x402bad
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x3bc], ecx
mov edx, dword [ebp - 0x3bc]
add edx, 2
mov dword [ebp - 0x3ec], edx
mov eax, dword [ebp - 0x3bc]
mov cx, word [eax]
mov word [ebp - 0x3ca], cx
add dword [ebp - 0x3bc], 2
cmp word [ebp - 0x3ca], 0
jne 0x402acd
mov edx, dword [ebp - 0x3bc]
sub edx, dword [ebp - 0x3ec]
sar edx, 1
mov dword [ebp - 0x3d4], edx
mov eax, dword [ebp - 0x3d4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x290]
push eax
push 0
push str.vbackup
mov ecx, dword [ebp - 0x3b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x3b4], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3b8], edx
mov eax, dword [ebp - 0x3b8]
add eax, 2
mov dword [ebp - 0x3e0], eax
mov ecx, dword [ebp - 0x3b8]
mov dx, word [ecx]
mov word [ebp - 0x3c8], dx
add dword [ebp - 0x3b8], 2
cmp word [ebp - 0x3c8], 0
jne 0x402b4d
mov eax, dword [ebp - 0x3b8]
sub eax, dword [ebp - 0x3e0]
sar eax, 1
mov dword [ebp - 0x3d8], eax
mov ecx, dword [ebp - 0x3d8]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
push str.Progid
mov ecx, dword [ebp - 0x3b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x3b4], eax
mov edx, dword [ebp - 0x3b0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x3ac]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004314a6
mov esp, ebp
pop ebp
ret