Function at 0x1079762
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0x118
mov eax, 0x10c1213
call fcn.01077dad
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x30]
cmp ecx, ebx
je 0x1079785
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], ebx
je 0x10797c6
push ebx
push SysReAllocString
push dword [ebp + 8]
call fcn.0102ebba
test eax, eax
jge 0x10797c6
push 0x80070057
push 0x1014840
push 0x17e
push 0x10147b8
lea ecx, [ebp - 0x60]
call fcn.0102f190
push 0x10c2bec
lea eax, [ebp - 0x60]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp + 0x10], ebx
je 0x1079809
push ebx
push SysReAllocString
push dword [ebp + 0x10]
call fcn.0102ebba
test eax, eax
jge 0x1079809
push 0x80070057
push 0x1014718
push 0x17f
push 0x10147b8
lea ecx, [ebp - 0x98]
call fcn.0102f190
push 0x10c2bec
lea eax, [ebp - 0x98]
jmp 0x10797c0
cmp dword [ebp + 0x1c], ebx
jne 0x107983a
push 0x80070057
push 0x1014b40
push 0x181
push 0x10147b8
lea ecx, [ebp - 0x108]
call fcn.0102f190
push 0x10c2bec
lea eax, [ebp - 0x108]
jmp 0x10797c0
push ebx
mov edi, dword [ebp + 0x24]
mov eax, edi
and eax, 0xfffffff7
push eax
call fcn.0107b2bd
push ebx
push dword [ebp + 0x28]
call fcn.0107b39f
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 0x1079963
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 0x10798fe
call fcn.01091f1e
mov dword [ebp - 0x18], eax
cmp byte [ebp + 0x2c], bl
je 0x10798fe
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 0x10799bd
call fcn.01091f1e
cmp eax, 0x800704c7
je 0x10798d3
cmp eax, 0x4c7
je 0x10798d3
cmp eax, 0x8010006e
je 0x10798d3
mov eax, dword [ebp - 0x18]
push eax
push 0x1014b1c
push 0x1a4
push 0x10147b8
lea ecx, [ebp - 0xd0]
call fcn.0102f190
push 0x10c2bec
lea eax, [ebp - 0xd0]
jmp 0x10797c0
lea ecx, [ebp - 0x14]
call fcn.01078d82
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 0x10799bd
call fcn.01091f1e
cmp eax, 0x800704c7
je 0x107993e
cmp eax, 0x4c7
je 0x107993e
cmp eax, 0x8010006e
je 0x107993e
mov eax, dword [ebp - 0x18]
push eax
push 0x1014b08
push 0x1b8
push 0x10147b8
lea ecx, [ebp - 0x7c]
call fcn.0102f190
push 0x10c2bec
lea eax, [ebp - 0x7c]
jmp 0x10797c0
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 0x10799ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01078671
push eax
push 0x1014ac0
push 0x1bf
push 0x10147b8
lea ecx, [ebp - 0xb4]
call fcn.0102f190
push 0x10c2bec
lea eax, [ebp - 0xb4]
jmp 0x10797c0
push esi
lea ecx, [ebp - 0x14]
call fcn.01078e03
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x10799ce
mov eax, dword [ecx]
call dword [eax + 0x28]
jmp 0x10799d0
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 0x1079a38
call fcn.01091f1e
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], ebx
je 0x1079a0b
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 0x1014b08
push 0x1d8
push 0x10147b8
lea ecx, [ebp - 0xec]
call fcn.0102f190
push 0x10c2bec
lea eax, [ebp - 0xec]
jmp 0x10797c0
push 0x24
call fcn.0107796d
pop ecx
mov ecx, eax
mov dword [ebp + 0x2c], ecx
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x1079a61
push 1
push 1
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.0107e5aa
jmp 0x1079a63
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x1079a9d
push 0x8007000e
push 0x10142c4
push 0x1dd
push 0x10147b8
lea ecx, [ebp - 0x124]
call fcn.0102f190
push 0x10c2bec
lea eax, [ebp - 0x124]
jmp 0x10797c0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.01078d82
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.01077e61
ret 0x2c