Function at 0x5006b0
Capabilities:
Check os version
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x7d88d4]
push ebx
push esi
cmp eax, 0xffffffff
jne 0x50092d
push 0x110
lea eax, [ebp - 0x114]
mov dword [0x7d88d4], 0xfffffc18
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.005c0be0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x500928
cmp dword [ebp - 0x108], 2
jne 0x500928
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x50086d
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x5007cf
mov dword [0x7d88d4], 1
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x11c]
push 0
push 0x18
push esi
push str.SEContainer
push eax
mov dword [ebp - 0x11c], 0
call ebx
test eax, eax
jne 0x500940
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x8009001a
jne 0x50079f
push 0x10
push 0x18
push esi
push str.SEContainer
lea eax, [ebp - 0x11c]
push eax
call ebx
test eax, eax
jne 0x50079f
call edi
push 8
push 0x18
push esi
push str.SEContainer
lea eax, [ebp - 0x11c]
push eax
call ebx
test eax, eax
jne 0x5007b8
call edi
mov eax, dword [ebp - 0x11c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x500850
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.005db678
add esp, 0xc
test eax, eax
jne 0x5007fd
mov dword [0x7d88d4], 3
jmp 0x500746
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.005db678
add esp, 0xc
test eax, eax
jne 0x500826
mov dword [0x7d88d4], 4
jmp 0x500746
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_3
call fcn.005db678
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov dword [0x7d88d4], eax
jmp 0x500746
cmp eax, 2
jne 0x500928
mov dword [0x7d88d4], 6
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x50074b
cmp eax, 6
jne 0x500914
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x5008b7
sub eax, 1
je 0x5008a3
sub eax, 1
jne 0x500928
mov dword [0x7d88d4], 0xb
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x50074b
mov dword [0x7d88d4], 0xa
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x50074b
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.005db678
add esp, 0xc
test eax, eax
jne 0x5008e5
mov dword [0x7d88d4], 8
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x50074b
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.005db678
add esp, 0xc
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
mov dword [0x7d88d4], eax
jmp 0x50074b
mov dword [0x7d88d4], 0x3e8
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x50074b
mov eax, dword [0x7d88d4]
cmp eax, 6
jl 0x500746
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x50074b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
xor ecx, ebp
pop esi
pop ebx
call fcn.005be209
mov esp, ebp
pop ebp
ret