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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f0
mov eax, dword [0x455070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3ac], 0
mov dword [ebp - 0x3b4], 0
push 0x439524
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x3c8], eax
cmp dword [ebp - 0x3c8], 0
jne 0x402426
jmp 0x40279b
push 0x439540
mov eax, dword [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3e4], eax
push 0x439550
mov ecx, dword [ebp - 0x3c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3e8], eax
mov dword [ebp - 0x3f0], 0
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 0x439590
push 0x208
lea edx, [ebp - 0x28c]
push edx
call fcn.00401000
add esp, 0x10
push 0x439610
mov eax, dword [ebp - 0x3b4]
push eax
call fcn.004021c0
lea ecx, [ebp - 0x3ac]
push ecx
push 0xf003f
push 0
push 0x439628
mov edx, dword [ebp - 0x3b4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x3b0], eax
cmp dword [ebp - 0x3b0], 0
jne 0x402781
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x294], 0x80
xor eax, eax
mov word [ebp - 0x84], ax
push 0x7e
push 0
lea ecx, [ebp - 0x82]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
push str.RegUSElexViewer_xp__UserChoice_succeed
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 4
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x402686
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 0x439564
push 0x439690
mov edx, dword [ebp - 0x3b4]
push edx
call dword [ebp - 0x3e4]
mov dword [ebp - 0x3b0], eax
cmp dword [ebp - 0x3b0], 0
jne 0x402673
lea eax, [ebp - 0x84]
mov dword [ebp - 0x3c0], eax
mov ecx, dword [ebp - 0x3c0]
add ecx, 2
mov dword [ebp - 0x3d0], ecx
mov edx, dword [ebp - 0x3c0]
mov ax, word [edx]
mov word [ebp - 0x3ca], ax
add dword [ebp - 0x3c0], 2
cmp word [ebp - 0x3ca], 0
jne 0x4025b2
mov ecx, dword [ebp - 0x3c0]
sub ecx, dword [ebp - 0x3d0]
sar ecx, 1
mov dword [ebp - 0x3ec], ecx
mov edx, dword [ebp - 0x3ec]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x290]
push edx
push 0
push 0x4396a8
mov eax, dword [ebp - 0x3ac]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x3b0], 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 0x402671
push 0x4396b8
push 0x4396c8
mov eax, dword [ebp - 0x3b4]
push eax
call dword [ebp - 0x3e8]
jmp 0x402681
push 0x4396e0
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 4
jmp 0x402781
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x3b8], ecx
mov edx, dword [ebp - 0x3b8]
add edx, 2
mov dword [ebp - 0x3d8], edx
mov eax, dword [ebp - 0x3b8]
mov cx, word [eax]
mov word [ebp - 0x3c2], cx
add dword [ebp - 0x3b8], 2
cmp word [ebp - 0x3c2], 0
jne 0x4026a1
mov edx, dword [ebp - 0x3b8]
sub edx, dword [ebp - 0x3d8]
sar edx, 1
mov dword [ebp - 0x3dc], edx
mov eax, dword [ebp - 0x3dc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x290]
push eax
push 0
push 0x439734
mov ecx, dword [ebp - 0x3ac]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x3b0], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3bc], edx
mov eax, dword [ebp - 0x3bc]
add eax, 2
mov dword [ebp - 0x3e0], eax
mov ecx, dword [ebp - 0x3bc]
mov dx, word [ecx]
mov word [ebp - 0x3c4], dx
add dword [ebp - 0x3bc], 2
cmp word [ebp - 0x3c4], 0
jne 0x402721
mov eax, dword [ebp - 0x3bc]
sub eax, dword [ebp - 0x3e0]
sar eax, 1
mov dword [ebp - 0x3d4], eax
mov ecx, dword [ebp - 0x3d4]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
push 0x439744
mov ecx, dword [ebp - 0x3ac]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x3b0], eax
mov edx, dword [ebp - 0x3ac]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x3b4]
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