Function at 0x10116740
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
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
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esp
push 0xf0000000
push 0x18
push 0x101a6ad8
push 0x101a6ad8
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x101167bb
push 0x24
push 0x4367c46
push 6
call fcn.101571f7
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10116820
mov dword [ebp - 0x20], esp
push 0
push 0x18
push 0x101a6ad8
push 0x101a6ad8
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10116809
push 0x7d
push 0x4367c46
push 6
call fcn.101571f7
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10116820
mov eax, 0x101a6c00
jmp 0x10116e2a
cmp dword [ebp + 0x10], 0x800d
je 0x1011683e
cmp dword [ebp + 0x10], 0x800e
je 0x1011683e
xor eax, eax
jmp 0x10116843
mov eax, 1
test eax, eax
je 0x10116857
mov dword [ebp - 8], 0x80
jmp 0x1011685e
mov dword [ebp - 8], 0x40
push OleUIBusyA
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x10116873
mov eax, 0x101a6c00
push eax
push 1
mov ebx, 0x194
call fcn.10158c30
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x24], eax
jle 0x1011696e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10115f34
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x101168ba
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x101a6c00
xor ecx, ecx
test eax, eax
je 0x101168cc
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x101168dd
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x101168f4
dec eax
test ecx, ecx
je 0x101168f4
call fcn.10007aa4
add esp, 0xc
test eax, eax
jne 0x1011693a
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10116930
push 0x26b
push 0x4367c46
push 6
call fcn.101571f7
add esp, 0xc
mov eax, 0x101a6c00
jmp 0x10116e2a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10116954
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10157203
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10116965
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
jmp 0x1011699f
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x1011698a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10157203
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1011699b
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x101169b2
mov eax, 0x101a6c00
push eax
push 1
mov ebx, 0x194
call fcn.10158c30
add esp, 0x10
mov dword [ebp - 0x20], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 0x20]
fstp qword [ebp - 0x30]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.1000121c
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.10158c40
add esp, 0x10
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.1000e6a4
add esp, 8
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10116a28
push ebx
call fcn.1015720f
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10116a3c
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.10158c40
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10116a73
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.10158c40
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10116aaa
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10116c5e
mov ebx, dword [ebp - 0x14]
call fcn.10002354
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10116aef
push 0x401
push 0x4367c46
push 4
call fcn.101571f7
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10116b0c
push 0x401
push 0x4367c46
push 1
call fcn.101571f7
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.10002354
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10116b38
push 0x421
push 0x4367c46
push 4
call fcn.101571f7
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10116b55
push 0x421
push 0x4367c46
push 1
call fcn.101571f7
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x80000301
push 0
push 0x36
mov ebx, dword [ebp - 0x24]
mov al, byte [ebx]
and eax, 0xff
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xcc
call fcn.1015cb20
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
mov byte [ebx], al
mov ebx, dword [ebp - 0x18]
call fcn.10002354
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10116bb6
push 0x44c
push 0x4367c46
push 4
call fcn.101571f7
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10116bd3
push 0x44c
push 0x4367c46
push 1
call fcn.101571f7
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.10002354
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10116bff
push 0x46c
push 0x4367c46
push 4
call fcn.101571f7
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10116c1c
push 0x46c
push 0x4367c46
push 1
call fcn.101571f7
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x80000301
push 0
push 0x5c
mov ebx, dword [ebp - 0x24]
mov al, byte [ebx]
and eax, 0xff
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xcc
call fcn.1015cb20
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
mov byte [ebx], al
pop eax
pop ebx
pop ecx
jmp 0x10116aba
add esp, 0xc
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.1000e6a4
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10116c8d
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10115f34
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10116cb7
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x101a6c00
xor ecx, ecx
test eax, eax
je 0x10116cc9
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x10116cda
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x10116cf1
dec eax
test ecx, ecx
je 0x10116cf1
call fcn.10007aa4
add esp, 0xc
test eax, eax
jne 0x10116d37
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10116d2d
push 0x56a
push 0x4367c46
push 6
call fcn.101571f7
add esp, 0xc
mov eax, 0x101a6c00
jmp 0x10116e2a
push dword [ebp - 0xc]
push dword [ebp - 0x18]
mov ecx, 2
call fcn.1000e6a4
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10116d61
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10115f34
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10116d8b
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x101a6c00
xor ecx, ecx
test eax, eax
je 0x10116d9d
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x10116dae
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x10116dc5
dec eax
test ecx, ecx
je 0x10116dc5
call fcn.10007aa4
add esp, 0xc
test eax, eax
jne 0x10116e0b
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10116e01
push 0x676
push 0x4367c46
push 6
call fcn.101571f7
add esp, 0xc
mov eax, 0x101a6c00
jmp 0x10116e2a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10116e25
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10157203
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10116e2a
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10116e3b
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10116e4b
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10116e5b
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10116e6b
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc