Function at 0x45fa80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d39e6
mov eax, dword fs:[0]
push eax
sub esp, 0x3ec
mov eax, dword [0x50e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3d4], edi
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x3bc]
push 0x110
push 0
push eax
mov dword [ebp - 0x3c0], 0x114
call fcn.004a2d80
add esp, 0xc
lea eax, [ebp - 0x3c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45ff2e
cmp dword [ebp - 0x3bc], 6
jb 0x45ff2e
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
call fcn.00460c10
mov eax, dword [ebx]
add esp, 4
mov dword [ebx + 4], eax
mov eax, dword [edi]
test eax, eax
je 0x45ff2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegOpenKeyExW
push eax
call esi
push str.RegEnumKeyExW
push dword [edi]
mov dword [ebp - 0x3d0], eax
call esi
mov ecx, dword [ebp - 0x3d4]
mov edi, eax
push str.RegCloseKey
push dword [ecx]
call esi
mov esi, dword [ebp - 0x3d0]
mov dword [ebp - 0x3d8], eax
test esi, esi
je 0x45ff2e
test edi, edi
je 0x45ff2e
test eax, eax
je 0x45ff2e
xorps xmm0, xmm0
movlpd qword [ebp - 0x220], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call fcn.00460550
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00402750
mov byte [ebp - 4], 3
lea eax, [ebp - 0x240]
push 0x4e9548
push 0x804
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem
push str._s0x_08x_s
push eax
call fcn.004129d0
mov dword [ebp - 0x228], 0
add esp, 0x14
mov dword [ebp - 0x228], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x228]
push 0x20019
call fcn.0046aec0
mov dword [ebp - 0x3cc], eax
lea ecx, [ebp - 0x240]
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], 0
push eax
push 0x20019
push 0
call fcn.00405b00
push eax
push dword [ebp - 0x3cc]
call esi
test eax, eax
jne 0x45fe98
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004a2d80
add esp, 0xc
mov dword [ebp - 0x224], 0x104
lea eax, [ebp - 0x224]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 0x3c4]
call edi
test eax, eax
jne 0x45fccf
nop
lea ecx, [ebp - 0x218]
call fcn.00412230
mov dword [ebp - 0x3c8], eax
lea eax, [ebp - 0x3c8]
push dword [ebp - 0x3c8]
push eax
push ecx
lea eax, [ebp - 0x3e0]
push eax
lea ecx, [ebp - 0x220]
call fcn.00460ca0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x104
push eax
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push dword [ebp - 0x3c4]
call edi
test eax, eax
je 0x45fc70
push dword [ebp - 0x3c4]
call dword [ebp - 0x3d8]
mov eax, dword [ebp - 0x220]
mov esi, dword [eax]
cmp esi, eax
je 0x45fe98
nop dword [eax + eax]
push dword [esi + 0x10]
lea eax, [ebp - 0x240]
push 0x4e9548
push 0x804
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem
push str._s0x_08x_s_08d
push eax
call fcn.004129d0
add esp, 0x18
lea eax, [ebp - 0x3c4]
lea ecx, [ebp - 0x240]
push eax
push 0x20019
push 0
call fcn.00405b00
push eax
push dword [ebp - 0x3cc]
call dword [ebp - 0x3d0]
test eax, eax
jne 0x45fe47
lea ecx, [ebp - 0x2a8]
call fcn.0045db30
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3f8]
push str.CLSID
mov dword [ebp - 0x274], 0x804
call fcn.00402700
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2a8]
mov ecx, dword [ebp - 0x3d4]
push eax
lea eax, [ebp - 0x3f8]
push eax
push dword [ebp - 0x3c4]
call fcn.00460000
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3f8]
call fcn.00402290
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x45fe1d
push eax
push 0x68
call fcn.004018d0
mov ecx, dword [ebp - 0x2a8]
mov edi, eax
add esp, 8
mov dword [ebp - 0x3c8], edi
lea eax, [ebp - 0x2a4]
mov dword [edi], ecx
lea ecx, [edi + 4]
push eax
call fcn.00402770
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28c]
push eax
lea ecx, [edi + 0x1c]
call fcn.00402770
mov byte [ebp - 4], 0xb
lea ecx, [edi + 0x38]
mov eax, dword [ebp - 0x274]
mov dword [edi + 0x34], eax
lea eax, [ebp - 0x270]
push eax
call fcn.00402770
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x258]
push eax
lea ecx, [edi + 0x50]
call fcn.00402770
mov byte [ebp - 4], 7
add dword [ebx + 4], 0x68
jmp 0x45fe2c
lea ecx, [ebp - 0x2a8]
push ecx
push eax
mov ecx, ebx
call fcn.004606f0
push dword [ebp - 0x3c4]
call dword [ebp - 0x3d8]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2a8]
call fcn.0045dbb0
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x45fe74
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x45fe70
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x45fe70
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x45fe60
mov esi, eax
jmp 0x45fe8c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x45fe8c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x45fe80
cmp esi, dword [ebp - 0x220]
jne 0x45fcf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x228]
call fcn.0046b060
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00402290
mov dword [ebp - 4], 0xf
mov eax, dword [ebp - 0x220]
mov ebx, eax
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x45fef9
push dword [esi + 8]
lea ecx, [ebp - 0x220]
call fcn.004605f0
mov esi, dword [esi]
push 0x14
push edi
call fcn.004a12e5
add esp, 8
mov edi, esi
cmp byte [esi + 0xd], 0
je 0x45fed0
mov eax, dword [ebp - 0x220]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x220]
mov dword [eax], ebx
mov eax, dword [ebp - 0x220]
mov dword [eax + 8], ebx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0xffffffff
push 0x14
push dword [ebp - 0x220]
call fcn.004a12e5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a100a
mov esp, ebp
pop ebp
ret 8