Function at 0x5459ec
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 8
call fcn.005769bd
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x834e87
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
cmp dword [ebp + 0xc], 0x8003
je 0x545a4c
cmp dword [ebp + 0xc], 0x8004
je 0x545a4c
xor eax, eax
jmp 0x545a51
mov eax, 1
test eax, eax
je 0x545a98
mov eax, 0x8652c7
push eax
push eax
mov ebx, eax
call fcn.00461968
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x545ced
cmp dword [ebp + 0xc], 0x8001
je 0x545ab6
cmp dword [ebp + 0xc], 0x8002
je 0x545ab6
xor eax, eax
jmp 0x545abb
mov eax, 1
test eax, eax
je 0x545b02
mov eax, 0x8652e7
push eax
push eax
mov ebx, eax
call fcn.00461968
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x545ced
cmp dword [ebp + 0xc], 0x800c
je 0x545b2d
cmp dword [ebp + 0xc], 0x800d
je 0x545b2d
cmp dword [ebp + 0xc], 0x800e
je 0x545b2d
xor eax, eax
jmp 0x545b32
mov eax, 1
test eax, eax
je 0x545b79
mov eax, 0x8652f7
push eax
push eax
mov ebx, eax
call fcn.00461968
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x545ced
cmp dword [ebp + 0xc], 0x6611
je 0x545bb1
cmp dword [ebp + 0xc], 0x660e
je 0x545bb1
cmp dword [ebp + 0xc], 0x660f
je 0x545bb1
cmp dword [ebp + 0xc], 0x6610
je 0x545bb1
xor eax, eax
jmp 0x545bb6
mov eax, 1
test eax, eax
je 0x545bfd
mov eax, 0x8652f7
push eax
push eax
mov ebx, eax
call fcn.00461968
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x545ced
cmp dword [ebp + 0xc], 0x6601
je 0x545c1b
cmp dword [ebp + 0xc], 0x6603
je 0x545c1b
xor eax, eax
jmp 0x545c20
mov eax, 1
test eax, eax
je 0x545c67
mov eax, 0x865303
push eax
push eax
mov ebx, eax
call fcn.00461968
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x545ced
cmp dword [ebp + 0xc], 0xa400
jne 0x545cb3
mov eax, 0x8652e7
push eax
push eax
mov ebx, eax
call fcn.00461968
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x545ced
mov eax, 0x8652e7
push eax
push eax
mov ebx, eax
call fcn.00461968
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov ebx, dword [ebp - 4]
call fcn.00461988
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x5460af
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x545e02
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00578be0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00578be0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
call fcn.00461968
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x545d81
push 0x623
push 0x4396e02
push 4
call fcn.005769b1
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x545d9e
push 0x623
push 0x4396e02
push 1
call fcn.005769b1
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push 0
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x545de2
push 0x623
push 0x4396e02
push 6
call fcn.005769b1
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x545df2
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x545e02
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x545f23
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00578be0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00578be0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
call fcn.00461968
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x545e77
push 0x6e6
push 0x4396e02
push 4
call fcn.005769b1
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x545e94
push 0x6e6
push 0x4396e02
push 1
call fcn.005769b1
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x80000301
push 0
push 0x40
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc8
call fcn.00578360
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x545f03
push 0x710
push 0x4396e02
push 6
call fcn.005769b1
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x545f13
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x545f23
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x545f40
cmp dword [ebp - 8], 0
je 0x545f40
mov eax, 1
jmp 0x545f45
mov eax, 0
test eax, eax
je 0x545fe9
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00578be0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00578be0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0xf0000000
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x545fc9
push 0x7dc
push 0x4396e02
push 6
call fcn.005769b1
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x545fd9
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x545fe9
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x546091
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00578be0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00578be0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0x20
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x546071
push 0x88f
push 0x4396e02
push 6
call fcn.005769b1
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x546081
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x546091
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x5460a7
mov eax, 1
jmp 0x5460bc
pop eax
pop ebx
pop ecx
jmp 0x545cfe
add esp, 0xc
mov eax, 0
jmp 0x5460bc
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8