Function at 0x413f9e
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
je 0x413ff9
cmp dword [ebp + 0xc], 1
je 0x413ff9
cmp dword [ebp + 0xc], 2
je 0x413ff9
cmp dword [ebp + 0xc], 3
je 0x413ff9
mov eax, 1
jmp 0x413ffe
mov eax, 0
test eax, eax
je 0x414010
mov eax, 0
jmp 0x41436e
cmp dword [ebp + 0xc], 0
jne 0x414050
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x414036
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042c743
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x414047
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4141b4
cmp dword [ebp + 0xc], 1
jne 0x414082
push dword [ebp + 8]
call fcn.00414396
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x414079
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4141b4
cmp dword [ebp + 0xc], 2
jne 0x414191
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00416523
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x414101
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x414111
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x414121
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x414131
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x414141
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x414151
push ebx
call fcn.0042c749
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x414165
mov eax, 0
jmp 0x41436e
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.004163de
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x414188
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4141b4
push dword [ebp + 8]
call fcn.00416f02
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4141b0
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x4503f8
xor ecx, ecx
test eax, eax
je 0x4141c2
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 4]
xor ebx, ebx
test eax, eax
je 0x4141d3
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x4141ea
dec eax
test ecx, ecx
je 0x4141ea
call fcn.0040b3bc
add esp, 0xc
test eax, eax
jne 0x4141ff
mov eax, 0
jmp 0x41436e
mov dword [ebp - 0x18], esp
push 0
push 0x18
push 0x45035b
push 0x45035b
lea eax, [ebp - 0x10]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x414240
push 0x356
push 0x401149d
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4142a5
mov dword [ebp - 0x18], esp
push 8
push 0x18
push 0x45035b
push 0x45035b
lea eax, [ebp - 0x10]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x41428e
push 0x3af
push 0x401149d
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4142a5
mov eax, 0
jmp 0x41436e
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4142b8
mov eax, 0x4503f8
push eax
push 1
mov ebx, 0x194
call fcn.0042e070
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4142ec
add eax, 8
push eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x414316
push 0x46e
push 0x401149d
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41435e
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x414354
push 0x4a3
push 0x401149d
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, 0
jmp 0x41436e
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0041a63a
jmp 0x41436e
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41437f
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41438f
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc