Function at 0x100054d1
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 0x100aa45a
push 0x100aa45a
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1000554c
push 0x24
push 0x4028eb3
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x100055b1
mov dword [ebp - 0x20], esp
push 0
push 0x18
push 0x100aa45a
push 0x100aa45a
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1000559a
push 0x7d
push 0x4028eb3
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x100055b1
mov eax, 0x100aa368
jmp 0x10005bbb
cmp dword [ebp + 0x10], 0x800d
je 0x100055cf
cmp dword [ebp + 0x10], 0x800e
je 0x100055cf
xor eax, eax
jmp 0x100055d4
mov eax, 1
test eax, eax
je 0x100055e8
mov dword [ebp - 8], 0x80
jmp 0x100055ef
mov dword [ebp - 8], 0x40
push OleUIBusyA
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x10005604
mov eax, 0x100aa368
push eax
push 1
mov ebx, 0x194
call fcn.1007eb30
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x24], eax
jle 0x100056ff
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10005c03
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1000564b
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x100aa368
xor ecx, ecx
test eax, eax
je 0x1000565d
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x1000566e
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x10005685
dec eax
test ecx, ecx
je 0x10005685
call fcn.10004182
add esp, 0xc
test eax, eax
jne 0x100056cb
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 0x100056c1
push 0x26b
push 0x4028eb3
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, 0x100aa368
jmp 0x10005bbb
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100056e5
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1007e295
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 0x100056f6
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
jmp 0x10005730
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x1000571b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1007e295
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 0x1000572c
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10005743
mov eax, 0x100aa368
push eax
push 1
mov ebx, 0x194
call fcn.1007eb30
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.1000210c
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.1007e9c0
add esp, 0x10
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.1000547a
add esp, 8
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x100057b9
push ebx
call fcn.1007e29b
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100057cd
push ebx
call fcn.1007e29b
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.1007e9c0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10005804
push ebx
call fcn.1007e29b
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.1007e9c0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000583b
push ebx
call fcn.1007e29b
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 0x100059ef
mov ebx, dword [ebp - 0x14]
call fcn.10002133
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10005880
push 0x401
push 0x4028eb3
push 4
call fcn.1007e2a1
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000589d
push 0x401
push 0x4028eb3
push 1
call fcn.1007e2a1
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.10002133
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x100058c9
push 0x421
push 0x4028eb3
push 4
call fcn.1007e2a1
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100058e6
push 0x421
push 0x4028eb3
push 1
call fcn.1007e2a1
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.1007f1b0
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
mov byte [ebx], al
mov ebx, dword [ebp - 0x18]
call fcn.10002133
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10005947
push 0x44c
push 0x4028eb3
push 4
call fcn.1007e2a1
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005964
push 0x44c
push 0x4028eb3
push 1
call fcn.1007e2a1
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.10002133
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10005990
push 0x46c
push 0x4028eb3
push 4
call fcn.1007e2a1
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100059ad
push 0x46c
push 0x4028eb3
push 1
call fcn.1007e2a1
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.1007f1b0
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
mov byte [ebx], al
pop eax
pop ebx
pop ecx
jmp 0x1000584b
add esp, 0xc
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.1000547a
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10005a1e
push ebx
call fcn.1007e29b
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.10005c03
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10005a48
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x100aa368
xor ecx, ecx
test eax, eax
je 0x10005a5a
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x10005a6b
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x10005a82
dec eax
test ecx, ecx
je 0x10005a82
call fcn.10004182
add esp, 0xc
test eax, eax
jne 0x10005ac8
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 0x10005abe
push 0x56a
push 0x4028eb3
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, 0x100aa368
jmp 0x10005bbb
push dword [ebp - 0xc]
push dword [ebp - 0x18]
mov ecx, 2
call fcn.1000547a
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10005af2
push ebx
call fcn.1007e29b
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.10005c03
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10005b1c
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x100aa368
xor ecx, ecx
test eax, eax
je 0x10005b2e
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x10005b3f
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x10005b56
dec eax
test ecx, ecx
je 0x10005b56
call fcn.10004182
add esp, 0xc
test eax, eax
jne 0x10005b9c
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 0x10005b92
push 0x676
push 0x4028eb3
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, 0x100aa368
jmp 0x10005bbb
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10005bb6
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1007e295
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10005bbb
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10005bcc
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10005bdc
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10005bec
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10005bfc
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc