Function at 0x106a0da
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0x118
mov eax, 0x10a7cb3
call fcn.01068401
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x30]
cmp ecx, ebx
je 0x106a0fd
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], ebx
je 0x106a13e
push ebx
push 0x7fffffff
push dword [ebp + 8]
call fcn.01029dbc
test eax, eax
jge 0x106a13e
push 0x80070057
push 0x1011ae0
push 0x16b
push 0x1011a58
lea ecx, [ebp - 0x60]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x60]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp + 0x10], ebx
je 0x106a181
push ebx
push 0x7fffffff
push dword [ebp + 0x10]
call fcn.01029dbc
test eax, eax
jge 0x106a181
push 0x80070057
push 0x10119b8
push 0x16c
push 0x1011a58
lea ecx, [ebp - 0x98]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x98]
jmp 0x106a138
cmp dword [ebp + 0x1c], ebx
jne 0x106a1b2
push 0x80070057
push 0x1011d88
push 0x16e
push 0x1011a58
lea ecx, [ebp - 0x108]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x108]
jmp 0x106a138
push ebx
mov edi, dword [ebp + 0x24]
mov eax, edi
and eax, 0xfffffff7
push eax
call fcn.0106b89d
push ebx
push dword [ebp + 0x28]
call fcn.0106b977
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
jne 0x106a2db
mov eax, edi
or eax, 0x40
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
cmp eax, ebx
jne 0x106a276
call fcn.010a4804
mov dword [ebp - 0x18], eax
cmp byte [ebp + 0x2c], bl
je 0x106a276
mov eax, edi
or eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call esi
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x106a335
call fcn.010a4804
cmp eax, 0x800704c7
je 0x106a24b
cmp eax, 0x4c7
je 0x106a24b
cmp eax, 0x8010006e
je 0x106a24b
mov eax, dword [ebp - 0x18]
push eax
push 0x1011d64
push 0x191
push 0x1011a58
lea ecx, [ebp - 0xd0]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0xd0]
jmp 0x106a138
lea ecx, [ebp - 0x14]
call fcn.010699b8
mov dword [ebp - 0x14], ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call esi
cmp eax, ebx
jne 0x106a335
call fcn.010a4804
cmp eax, 0x800704c7
je 0x106a2b6
cmp eax, 0x4c7
je 0x106a2b6
cmp eax, 0x8010006e
je 0x106a2b6
mov eax, dword [ebp - 0x18]
push eax
push 0x1011d50
push 0x1a5
push 0x1011a58
lea ecx, [ebp - 0x7c]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x7c]
jmp 0x106a138
mov eax, dword [ecx]
call dword [eax + 0x38]
mov esi, eax
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptContextAddRef]
test eax, eax
jne 0x106a326
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010692df
push eax
push 0x1011d08
push 0x1ac
push 0x1011a58
lea ecx, [ebp - 0xb4]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0xb4]
jmp 0x106a138
push esi
lea ecx, [ebp - 0x14]
call fcn.01069a39
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x106a346
mov eax, dword [ecx]
call dword [eax + 0x28]
jmp 0x106a348
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x28]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp eax, ebx
jne 0x106a3b0
call fcn.010a4804
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], ebx
je 0x106a383
or edi, 0x10
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call esi
push dword [ebp - 0x18]
push 0x1011d50
push 0x1c5
push 0x1011a58
lea ecx, [ebp - 0xec]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0xec]
jmp 0x106a138
push 0x24
call fcn.01067fb8
pop ecx
mov ecx, eax
mov dword [ebp + 0x2c], ecx
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x106a3d9
push 1
push 1
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.0106e833
jmp 0x106a3db
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x106a415
push 0x8007000e
push 0x1011700
push 0x1ca
push 0x1011a58
lea ecx, [ebp - 0x124]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x124]
jmp 0x106a138
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.010699b8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.010684b5
ret 0x2c