Function at 0x42c3b0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c08b
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x544], ebx
mov dword [ebp - 0x548], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x53c]
mov dword [ebp - 0x534], 0
mov dword [ebp - 0x530], 0
mov dword [ebp - 0x53c], 0
call fcn.0042b720
push 0x80
mov dword [ebp - 0x538], eax
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00481280
add esp, 0xc
mov dword [ebp - 0x540], 0x494
xor edi, edi
push esi
push ecx
call fcn.0045fcc0
add esp, 4
mov ecx, 0x4b823c
cmp esi, 1
push eax
mov eax, str._s_d
cmovl eax, ecx
push eax
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.0045c9d0
add esp, 0x14
cmp ebx, 0xfe
jbe 0x42c47f
xor eax, eax
jmp 0x42c65c
lea eax, [ebp - 0x530]
mov dword [ebp - 0x550], eax
lea edx, [ebp - 0x550]
lea eax, [ebp - 0x534]
lea ecx, [ebp - 0x55c]
mov dword [ebp - 0x54c], eax
call fcn.0042c060
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x53c]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop dword [eax + eax]
push 0x20
push esi
push dword [ebp - 0x538]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x534]
push eax
call ebx
test eax, eax
je 0x42c528
lea eax, [ebp - 0x530]
push eax
push 1
push dword [ebp - 0x534]
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
mov eax, dword [ebp - 0x530]
test eax, eax
jne 0x42c599
test edi, edi
jne 0x42c625
push 0x30
push esi
push dword [ebp - 0x538]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x534]
push eax
call ebx
mov edi, 1
jmp 0x42c4c0
push 0x28
push esi
push dword [ebp - 0x538]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x534]
push eax
call ebx
lea eax, [ebp - 0x530]
push eax
push 0x8000001
push 0xa400
push dword [ebp - 0x534]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
cmp dword [ebp - 0x530], 0
je 0x42c500
lea ecx, [ebp - 0x94]
call fcn.0042ba60
test eax, eax
jne 0x42c4f2
test edi, edi
jne 0x42c4f2
push dword [ebp - 0x530]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x530], edi
jmp 0x42c508
lea ecx, [ebp - 0x540]
push ecx
lea ecx, [ebp - 0x52c]
push ecx
push 0
push 7
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x42c625
push dword [ebp - 0x530]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call ebx
mov ecx, dword [ebp - 0x544]
mov eax, ecx
shr eax, 8
push ecx
push dword [ebp - 0x548]
mov byte [ebp - 0x197], al
lea eax, [ebp - 0x196]
push eax
mov dword [ebp - 0x530], 0
mov byte [ebp - 0x198], cl
call fcn.0047f730
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
push 1
push 0
push dword [ebp - 0x540]
lea eax, [ebp - 0x52c]
push eax
push dword [ebp - 0x534]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov esi, eax
jmp 0x42c62d
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor esi, esi
cmp byte [ebp - 0x554], 0
je 0x42c65a
mov eax, dword [ebp - 0x55c]
mov eax, dword [eax]
test eax, eax
je 0x42c645
push eax
call ebx
mov eax, dword [ebp - 0x558]
mov eax, dword [eax]
test eax, eax
je 0x42c65a
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 - 0x14]
xor ecx, ebp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret