Function at 0x45b2f0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad920
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0
cmp dword [edi], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
je 0x45b35b
push 0x6256a0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x16
push eax
call fcn.00586852
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 8
jae 0x45b379
push 0x6256a0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x16
push eax
call fcn.00586852
mov eax, dword [eax]
mov ecx, edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00450d90
mov eax, dword [eax]
test eax, eax
je 0x45b394
mov eax, dword [eax - 0xc]
jmp 0x45b396
xor eax, eax
test eax, eax
mov eax, dword [ebp - 0x28]
sete bl
test eax, eax
je 0x45b3cd
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45b3c6
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45b3bd
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45b3b4
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x28], 0
test bl, bl
je 0x45b407
lea ecx, [ebp - 0x3c]
call fcn.0045cfb0
mov ebx, 0x5ef390
mov ecx, ebx
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov eax, ebx
test ecx, ecx
cmovne eax, ecx
lea ecx, [edi + 4]
push eax
call fcn.00433400
lea ecx, [ebp - 0x3c]
mov dword [edi], 0
call fcn.004331d0
jmp 0x45b40c
mov ebx, 0x5ef390
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00448170
mov edx, eax
mov ecx, edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00450d90
mov ecx, dword [edx]
mov edx, ebx
mov esi, dword [edi + 0x14]
test ecx, ecx
mov eax, dword [eax]
cmovne edx, ecx
test eax, eax
mov ecx, ebx
cmovne ecx, eax
or esi, 8
push esi
push dword [edi + 0xc]
lea eax, [ebp - 0x18]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
mov eax, dword [ebp - 0x2c]
sete byte [ebp - 0x11]
test eax, eax
je 0x45b489
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45b482
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45b479
jmp 0x45b470
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45b470
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x45b4b4
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45b4b4
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45b4ab
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45b4a2
push edx
call fcn.00582cf0
add esp, 4
cmp byte [ebp - 0x11], 0
je 0x45b57d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
je 0x45b4e0
push 0x6256a0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x1f
push eax
call fcn.00586852
lea ecx, [ebp - 0x48]
call fcn.0045cfb0
mov ecx, ebx
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov eax, ebx
test ecx, ecx
cmovne eax, ecx
lea ecx, [edi + 4]
push eax
call fcn.00433400
lea ecx, [ebp - 0x48]
mov dword [edi], 0
call fcn.004331d0
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.00448170
mov edx, eax
mov ecx, edi
lea eax, [ebp - 0x4c]
push eax
call fcn.00450d90
mov ecx, dword [edx]
mov edx, ebx
mov esi, dword [edi + 0x14]
test ecx, ecx
mov eax, dword [eax]
cmovne edx, ecx
test eax, eax
mov ecx, ebx
cmovne ecx, eax
or esi, 8
push esi
push dword [edi + 0xc]
lea eax, [ebp - 0x18]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
lea ecx, [ebp - 0x4c]
sete bl
call fcn.004331d0
lea ecx, [ebp - 0x50]
call fcn.004331d0
test bl, bl
je 0x45b57d
push 0x6256a0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x1f
push eax
call fcn.00586852
cmp dword [edi + 0x10], 1
mov ecx, 0xa400
mov ebx, dword [ebp + 8]
mov eax, 0x2400
mov esi, dword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmove eax, ecx
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push dword [ebx + 4]
push dword [ebx]
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x45b607
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090005
jne 0x45b68d
cmp dword [edi + 0x10], 1
mov eax, dword [ebp - 0x20]
mov dword [edi], 0
jne 0x45b5e3
mov dword [edi + 0x10], 2
mov dword [eax + 4], 0x2400
jmp 0x45b5f1
mov dword [edi + 0x10], 1
mov dword [eax + 4], 0xa400
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push dword [ebx + 4]
push dword [ebx]
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x45b678
mov esi, dword [ebp + 0x14]
mov ebx, 1
mov dword [ebp - 0x24], ebx
test esi, esi
je 0x45b637
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00448170
push 0x600bdc
mov ecx, eax
mov dword [ebp - 0x30], ebx
call fcn.004339c0
mov byte [ebp + 0xb], bl
test eax, eax
je 0x45b63b
mov byte [ebp + 0xb], 0
test byte [ebp - 0x30], 1
je 0x45b649
lea ecx, [ebp - 0x58]
call fcn.004331d0
cmp byte [ebp + 0xb], 0
je 0x45b6c0
push 0
push dword [esi + 4]
push 0x1a
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x45b6c0
push 0x6256a0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x2a
push eax
call fcn.00586852
push 0x6256a0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x20
push eax
call fcn.00586852
push 0x6256a0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x20
push eax
call fcn.00586852
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp - 0x70]
call fcn.0045c650
mov eax, 0x45b6ba
ret
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45b6ce
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45b738
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
jne 0x45b738
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
call fcn.00448170
mov edx, eax
mov ecx, edi
lea eax, [ebp - 0x68]
push eax
call fcn.00450d90
mov ecx, dword [edx]
mov edx, 0x5ef390
mov esi, dword [edi + 0x14]
test ecx, ecx
mov eax, dword [eax]
cmovne edx, ecx
test eax, eax
mov ecx, 0x5ef390
cmovne ecx, eax
or esi, 0x10
push esi
push dword [edi + 0xc]
lea eax, [ebp - 0x18]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea ecx, [ebp - 0x68]
call fcn.004331d0
lea ecx, [ebp - 0x6c]
call fcn.004331d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10