Function at 0x45ad10
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], esi
mov eax, dword [edi + 0x10]
cmp eax, 1
je 0x45ad3d
cmp eax, 2
je 0x45ad3d
mov dword [edi + 0x10], 1
mov dword [edi], esi
mov ecx, dword [ebp + 8]
call fcn.0044b8e0
mov dword [edi], esi
test eax, eax
je 0x45ad59
mov eax, dword [edi + 0x14]
and eax, 0x40
or eax, 0x20
mov dword [edi + 0x14], eax
jmp 0x45ad5d
and dword [edi + 0x14], 0x40
push ebx
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00448170
mov ebx, 0x5ef390
mov eax, dword [eax]
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45ada5
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45ada2
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45ad99
mov edi, edi
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45ad90
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x10], esi
test ebx, ebx
je 0x45afe6
mov dword [ebp - 8], 0x4000
test esi, esi
je 0x45ae58
mov eax, dword [esi - 8]
cmp eax, 0x4000
jge 0x45ae1e
push 0x4000
call fcn.00433d50
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x45adde
xor eax, eax
jmp 0x45ae69
mov ecx, dword [esi - 0xc]
lea ebx, [esi - 0xc]
push ecx
push esi
push eax
mov dword [ebp - 0x20], ecx
call fcn.00589690
add esp, 0xc
dec dword [ebx + 8]
jne 0x45ae13
mov ecx, dword [ebx + 4]
mov eax, ebx
add ecx, 0xd
je 0x45ae0a
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45ae01
push ebx
call fcn.00582cf0
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [eax - 0xc], ecx
jmp 0x45ae62
cmp dword [esi - 4], 1
jbe 0x45ae67
add eax, 0xd
push eax
mov dword [ebp - 0x20], eax
call fcn.00584bc0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45add7
push dword [ebp - 0x20]
lea ecx, [esi - 0xc]
push ecx
push ebx
call fcn.00589690
add esp, 0xc
dec dword [esi - 4]
mov dword [ebx + 8], 1
lea esi, [ebx + 0xc]
jmp 0x45ae64
push 0x4000
call fcn.00433d50
mov esi, eax
mov dword [ebp - 4], esi
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptEnumProvidersA]
test eax, eax
je 0x45afe6
test esi, esi
je 0x45aeb0
mov ecx, dword [ebp - 8]
test ecx, ecx
jns 0x45aea5
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ae97
sub ecx, edx
mov dword [esi - 0xc], ecx
jmp 0x45aeb0
mov eax, dword [esi - 8]
cmp ecx, eax
cmovle eax, ecx
mov dword [esi - 0xc], eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00448170
mov ebx, 0x5ef390
mov edx, ebx
mov ecx, ebx
mov eax, dword [eax]
test eax, eax
cmovne edx, eax
test esi, esi
mov eax, ebx
cmovne ecx, esi
test edx, edx
cmovne eax, edx
push eax
push ecx
call fcn.00582e5c
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x14]
sete bl
test eax, eax
je 0x45af19
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45af12
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45af09
nop
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45af00
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x14], 0
test bl, bl
jne 0x45af25
inc dword [ebp - 0xc]
jmp 0x45adad
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00448170
mov edx, 0x5ef390
mov ecx, edx
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
test esi, esi
mov eax, edx
cmovne eax, esi
test ecx, ecx
cmovne edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x45af70
test cl, cl
je 0x45af6c
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x45af70
add eax, 2
add edx, 2
test cl, cl
jne 0x45af50
xor eax, eax
jmp 0x45af75
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x18]
setne bl
test eax, eax
je 0x45afac
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45afa5
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45af9c
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45af93
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x18], 0
test bl, bl
je 0x45afd0
mov ecx, 0x5ef390
test esi, esi
mov eax, ecx
cmovne eax, esi
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [edi + 8]
call fcn.00433400
mov dword [edi], 0
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xc], eax
mov dword [edi], 0
mov edi, 1
jmp 0x45b17f
mov ecx, dword [ebp + 8]
call fcn.0044b8e0
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x45b043
mov eax, dword [edi + 0x14]
or eax, 0xf0000000
push eax
push 0xc
push 0x5feb74
push 0
lea eax, [ebp + 0xc]
push eax
call ebx
test eax, eax
je 0x45b043
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x5feb74
lea ecx, [edi + 8]
call fcn.00433400
mov dword [edi + 0xc], 0xc
mov dword [edi], 0
mov edi, 1
jmp 0x45b17f
mov eax, dword [edi + 0x14]
or eax, 0xf0000000
push eax
push 0x18
push 0x5fd7a4
push 0
lea eax, [ebp + 0xc]
push eax
call ebx
test eax, eax
je 0x45b08e
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x5fd7a4
lea ecx, [edi + 8]
call fcn.00433400
mov dword [edi + 0xc], 0x18
mov dword [edi], 0
mov edi, 1
jmp 0x45b17f
mov eax, dword [edi + 0x14]
or eax, 0xf0000000
push eax
push 0x18
push 0x5fd760
push 0
lea eax, [ebp + 0xc]
push eax
call ebx
test eax, eax
je 0x45b0d9
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x5fd760
lea ecx, [edi + 8]
call fcn.00433400
mov dword [edi + 0xc], 0x18
mov dword [edi], 0
mov edi, 1
jmp 0x45b17f
mov eax, dword [edi + 0x14]
or eax, 0xf0000000
push eax
push 1
push 0x5fd808
push 0
lea eax, [ebp + 0xc]
push eax
call ebx
test eax, eax
je 0x45b107
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x5fd808
jmp 0x45b161
mov eax, dword [edi + 0x14]
or eax, 0xf0000000
push eax
push 1
push 0x600b80
push 0
lea eax, [ebp + 0xc]
push eax
call ebx
test eax, eax
je 0x45b135
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x600b80
jmp 0x45b161
mov eax, dword [edi + 0x14]
or eax, 0xf0000000
push eax
push 1
push 0x5fd7dc
push 0
lea eax, [ebp + 0xc]
push eax
call ebx
test eax, eax
je 0x45b17d
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x5fd7dc
lea ecx, [edi + 8]
call fcn.00433400
mov dword [edi + 0xc], 1
mov dword [edi], 0
mov edi, 1
jmp 0x45b17f
xor edi, edi
pop ebx
test esi, esi
je 0x45b1a8
add esi, 0xfffffff4
dec dword [esi + 8]
jne 0x45b1a8
mov edx, dword [esi + 4]
mov ecx, esi
add edx, 0xd
je 0x45b19f
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edx
jne 0x45b196
push esi
call fcn.00582cf0
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8