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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcf98
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x168
mov eax, dword [0x50b0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x20], eax
mov edi, dword [ebx + 8]
lea edx, [ebp - 0x174]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x178], 0
push ecx
mov ecx, dword [eax]
mov dword [ebp - 0x174], 0
call fcn.0046b7a0
add esp, 4
test eax, eax
je 0x46c229
cmp dword [ebp - 0x174], 0
je 0x46c55f
inc dword [esi]
jmp 0x46c55f
inc dword [esi]
lea eax, [ebp - 0x16c]
inc dword [edi]
push 0x118
push 0
push eax
call fcn.004a8730
add esp, 0xc
mov dword [ebp - 0x170], 0x11c
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x16c], 0xa
je 0x46c557
call fcn.0047b1f0
test eax, eax
jne 0x46c557
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov edx, edi
mov dword [ebp - 0x1c], eax
call fcn.00464750
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov edx, dword [edi]
xorps xmm0, xmm0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
call fcn.0046abb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
mov edx, dword [edi]
call fcn.0046ac50
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
push ecx
lea eax, [ebp - 0x1c]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.0045b640
push fcn.004084a0
push 2
push 4
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.004a650e
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x174], eax
cmp esi, eax
je 0x46c461
mov edx, dword [esi]
push str.ProgId
push dword [ebp - 0x1c]
call fcn.00463be0
mov eax, dword [0x52092c]
test al, 1
jne 0x46c38b
or eax, 1
mov dword [0x52092c], eax
push 0x118
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.004a8730
add esp, 0xc
mov dword [ebp - 0x170], 0x11c
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46c35d
lea ecx, [ebp - 0x170]
push ecx
call eax
mov eax, dword [ebp - 0x16c]
cmp eax, 7
jae 0x46c37f
cmp eax, 6
jb 0x46c376
cmp dword [ebp - 0x168], 2
jae 0x46c37f
xor eax, eax
mov dword [0x520930], eax
jmp 0x46c390
mov eax, 1
mov dword [0x520930], eax
jmp 0x46c390
mov eax, dword [0x520930]
test eax, eax
je 0x46c452
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x4c], ax
push edi
mov edx, 0x4ee148
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.004656b0
add esp, 4
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [eax]
call fcn.0046d050
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c3fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x38], 7
lea eax, [ebp - 0x4c]
mov edx, dword [esi]
cmova eax, dword [ebp - 0x4c]
push str.Hash
push eax
call fcn.00463be0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
cmp ecx, 7
jbe 0x46c452
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46c448
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c587
push ecx
push edx
call fcn.004a6653
add esp, 8
add esi, 4
cmp esi, dword [ebp - 0x174]
jne 0x46c2f1
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov esi, dword [edi]
mov byte [ebp - 4], 9
mov dword [ebp - 0x174], 0
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x46c57d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
push str.nWithProg
push esi
add eax, 0x10
mov dword [ebp - 0x178], 1
push str.tVersionExplorerFile
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x174]
push str.SoftwareMicrosoftWindowsCurren_sExts._sOpe_sids
push eax
call fcn.004248c0
mov esi, dword [ebp - 0x174]
push esi
push ecx
lea ecx, [ebp - 0x28]
call fcn.00463a30
or edi, 0xffffffff
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46c50c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x15]
push 0
push eax
push 0
push 0
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x46c52e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x34]
call fcn.0045ba10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46c55f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46c55f
mov ecx, dword [ebp - 0x20]
call fcn.0046b910
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a69a0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00409e30
call fcn.004abd0f
int3