Function at 0x42ed40
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x4db06c]
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 dword [ebp - 0x534], edx
mov dword [ebp - 0x53c], ecx
mov eax, dword [0x4e042c]
mov dword [ebp - 0x530], 0
mov dword [ebp - 0x52c], 0
cmp eax, 5
jne 0x42edab
cmp dword [0x4e0430], 2
jne 0x42edab
lea ebx, [eax - 4]
mov esi, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
jmp 0x42edc0
cmp eax, 6
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov ecx, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
mov ebx, 0x18
cmovb esi, ecx
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0048b570
add esp, 0xc
mov dword [ebp - 0x538], 0x494
lea ecx, [ebp - 0x90]
xor edi, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e7e0
add esp, 8
cmp dword [ebp - 0x534], 0xfe
jbe 0x42ee09
xor eax, eax
jmp 0x42efc3
lea eax, [ebp - 0x52c]
mov byte [ebp - 0x540], 1
lea ecx, [ebp - 0x530]
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x544], ecx
mov dword [ebp - 4], 0
nop
push 0x20
push ebx
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x530]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x42ee96
lea eax, [ebp - 0x52c]
push eax
push 1
push dword [ebp - 0x530]
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
mov eax, dword [ebp - 0x52c]
test eax, eax
jne 0x42ef07
test edi, edi
jne 0x42ef9f
push 0x30
push ebx
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x530]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, 1
jmp 0x42ee30
push 0x28
push ebx
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x530]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x52c]
push eax
push 0x8000001
push 0xa400
push dword [ebp - 0x530]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
mov eax, dword [ebp - 0x52c]
test eax, eax
je 0x42ee6f
lea ecx, [ebp - 0x90]
call fcn.0042e310
test eax, eax
jne 0x42ee61
test edi, edi
jne 0x42ee61
push dword [ebp - 0x52c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x52c], edi
jmp 0x42ee77
lea ecx, [ebp - 0x538]
push ecx
lea ecx, [ebp - 0x528]
push ecx
push 0
push 7
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x42ef99
push dword [ebp - 0x52c]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call ebx
mov ecx, dword [ebp - 0x534]
mov eax, ecx
shr eax, 8
push ecx
push dword [ebp - 0x53c]
mov byte [ebp - 0x193], al
lea eax, [ebp - 0x192]
push eax
mov dword [ebp - 0x52c], 0
mov byte [ebp - 0x194], cl
call fcn.00489a20
add esp, 0xc
lea eax, [ebp - 0x52c]
push eax
push 1
push 0
push dword [ebp - 0x538]
lea eax, [ebp - 0x528]
push eax
push dword [ebp - 0x530]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov esi, eax
mov eax, dword [ebp - 0x52c]
jmp 0x42efa7
mov eax, dword [ebp - 0x52c]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor esi, esi
test eax, eax
je 0x42efae
push eax
call ebx
mov eax, dword [ebp - 0x530]
test eax, eax
je 0x42efc1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
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.00487555
mov esp, ebp
pop ebp
ret