Function at 0x5127a0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x3b4]
sub esp, 0x3b4
push 0xffffffffffffffff
push 0x58cfb4
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp + 0x3b0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp + 0x3c0]
lea eax, [ebp + 8]
push 0x110
push 0
push eax
mov dword [ebp + 4], 0x114
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x512c20
cmp dword [ebp + 8], 6
jb 0x512c20
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
call fcn.005151a0
mov eax, dword [ebx]
add esp, 4
mov dword [ebx + 4], eax
mov eax, dword [edi]
test eax, eax
je 0x512c20
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b9570
push eax
call esi
push str.RegEnumKeyExW
push dword [edi]
mov dword [ebp - 0x10], eax
call esi
mov ecx, dword [ebp - 0x14]
mov edi, eax
push 0x5b95a4
push dword [ecx]
call esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x512c20
test edi, edi
je 0x512c20
test eax, eax
je 0x512c20
xorps xmm0, xmm0
movlpd qword [ebp + 0x1a0], xmm0
mov dword [ebp + 0x1a0], 0
mov dword [ebp + 0x1a4], 0
call fcn.00514800
mov dword [ebp + 0x1a0], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ebp + 0x190], 0
mov dword [ebp + 0x194], 0
mov dword [ebp + 0x190], 0
mov dword [ebp + 0x194], 7
mov word [ebp + 0x180], ax
mov byte [ebp - 4], 3
lea eax, [ebp + 0x180]
push str.34745C63_B2F0_4784_8B67_5E12C8701A31
push 0x804
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem
push 0x5c5b94
push eax
call fcn.00446b70
mov dword [ebp + 0x198], 0
add esp, 0x14
mov dword [ebp + 0x198], 0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x198]
push 0x20019
call fcn.0045bbd0
cmp dword [ebp + 0x194], 8
lea edx, [ebp]
push edx
push 0x20019
lea ecx, [ebp + 0x180]
mov dword [ebp - 0x20], eax
cmovae ecx, dword [ebp + 0x180]
push 0
push ecx
push eax
mov dword [ebp], 0
call esi
test eax, eax
jne 0x512b8a
push 0x208
xor esi, esi
lea eax, [ebp + 0x1a8]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp + 0x19c], 0x104
lea eax, [ebp + 0x19c]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp + 0x1a8]
push eax
push esi
push dword [ebp]
call edi
test eax, eax
jne 0x5129f0
lea ecx, [ebp + 0x1a8]
call fcn.004460c0
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x1a0]
call fcn.00515890
push 0
push 0
push 0
push 0
lea eax, [ebp + 0x19c]
mov dword [ebp + 0x19c], 0x104
push eax
lea eax, [ebp + 0x1a8]
inc esi
push eax
push esi
push dword [ebp]
call edi
test eax, eax
je 0x5129a0
push dword [ebp]
call dword [ebp - 0x18]
mov eax, dword [ebp + 0x1a0]
mov esi, dword [eax]
cmp esi, eax
je 0x512b8a
nop word [eax + eax]
push dword [esi + 0x10]
lea eax, [ebp + 0x180]
push str.34745C63_B2F0_4784_8B67_5E12C8701A31
push 0x804
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem
push str._s0x_08x_s_08d
push eax
call fcn.00446b70
add esp, 0x18
lea ecx, [ebp]
cmp dword [ebp + 0x194], 8
lea eax, [ebp + 0x180]
cmovae eax, dword [ebp + 0x180]
push ecx
push 0x20019
push 0
push eax
push dword [ebp - 0x20]
call dword [ebp - 0x10]
test eax, eax
jne 0x512b42
lea ecx, [ebp + 0x118]
call fcn.00510310
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
push str.CLSID
mov dword [ebp + 0x14c], 0x804
call fcn.00404270
mov byte [ebp - 4], 8
lea eax, [ebp + 0x118]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp]
call fcn.00512d20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.004046e0
mov edi, dword [ebx + 4]
cmp dword [ebx + 8], edi
je 0x512b1e
mov eax, dword [ebp + 0x118]
lea ecx, [edi + 4]
mov dword [edi], eax
lea eax, [ebp + 0x11c]
push eax
mov dword [ebp - 0x1c], edi
call fcn.0040d690
mov byte [ebp - 4], 9
lea eax, [ebp + 0x134]
push eax
lea ecx, [edi + 0x1c]
call fcn.0040d690
mov byte [ebp - 4], 0xb
lea ecx, [edi + 0x38]
mov eax, dword [ebp + 0x14c]
mov dword [edi + 0x34], eax
lea eax, [ebp + 0x150]
push eax
call fcn.0040d690
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x168]
push eax
lea ecx, [edi + 0x50]
call fcn.0040d690
mov byte [ebp - 4], 7
add dword [ebx + 4], 0x68
jmp 0x512b2d
lea eax, [ebp + 0x118]
mov ecx, ebx
push eax
push edi
call fcn.00514ca0
push dword [ebp]
call dword [ebp - 0x18]
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x118]
call fcn.005103a0
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x512b68
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x512b64
cmp esi, dword [eax + 8]
jne 0x512b64
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x512b54
mov esi, eax
jmp 0x512b7e
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x512b7e
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x512b72
cmp esi, dword [ebp + 0x1a0]
jne 0x512a10
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x198]
call fcn.0045be20
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x180]
call fcn.004046e0
mov dword [ebp - 4], 0xf
mov eax, dword [ebp + 0x1a0]
mov ebx, eax
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x512beb
push dword [esi + 8]
lea ecx, [ebp + 0x1a0]
call fcn.00514880
mov esi, dword [esi]
push 0x14
push edi
call fcn.0054bf14
add esp, 8
mov edi, esi
cmp byte [esi + 0xd], 0
je 0x512bc2
mov eax, dword [ebp + 0x1a0]
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0x1a0]
mov dword [eax], ebx
mov eax, dword [ebp + 0x1a0]
mov dword [eax + 8], ebx
mov dword [ebp + 0x1a4], 0
mov dword [ebp - 4], 0xffffffff
push 0x14
push dword [ebp + 0x1a0]
call fcn.0054bf14
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 + 0x3b0]
xor ecx, ebp
call fcn.0054bed3
lea esp, [ebp + 0x3b4]
pop ebp
ret 8