Function at 0x538850
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 0x834e83
push 0x834e83
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x5388cb
push 0x24
push 0x4396e32
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x538930
mov dword [ebp - 0x20], esp
push 0
push 0x18
push 0x834e83
push 0x834e83
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x538919
push 0x7d
push 0x4396e32
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x538930
mov eax, 0x834e87
jmp 0x538f3a
cmp dword [ebp + 0x10], 0x800d
je 0x53894e
cmp dword [ebp + 0x10], 0x800e
je 0x53894e
xor eax, eax
jmp 0x538953
mov eax, 1
test eax, eax
je 0x538967
mov dword [ebp - 8], 0x80
jmp 0x53896e
mov dword [ebp - 8], 0x40
push VariantClear
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x538983
mov eax, 0x834e87
push eax
push 1
mov ebx, 0x194
call fcn.00578ea0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x24], eax
jle 0x538a7e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.00538044
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5389ca
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x834e87
xor ecx, ecx
test eax, eax
je 0x5389dc
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x5389ed
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x538a04
dec eax
test ecx, ecx
je 0x538a04
call fcn.0045afb4
add esp, 0xc
test eax, eax
jne 0x538a4a
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 0x538a40
push 0x26b
push 0x4396e32
push 6
call fcn.005769b1
add esp, 0xc
mov eax, 0x834e87
jmp 0x538f3a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x538a64
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005769bd
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 0x538a75
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
jmp 0x538aaf
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x538a9a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005769bd
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 0x538aab
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x538ac2
mov eax, 0x834e87
push eax
push 1
mov ebx, 0x194
call fcn.00578ea0
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.00459f50
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.00578e70
add esp, 0x10
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.004b92c0
add esp, 8
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x538b38
push ebx
call fcn.005769c9
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x538b4c
push ebx
call fcn.005769c9
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.00578e70
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x538b83
push ebx
call fcn.005769c9
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.00578e70
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x538bba
push ebx
call fcn.005769c9
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 0x538d6e
mov ebx, dword [ebp - 0x14]
call fcn.00461968
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x538bff
push 0x401
push 0x4396e32
push 4
call fcn.005769b1
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x538c1c
push 0x401
push 0x4396e32
push 1
call fcn.005769b1
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.00461968
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x538c48
push 0x421
push 0x4396e32
push 4
call fcn.005769b1
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x538c65
push 0x421
push 0x4396e32
push 1
call fcn.005769b1
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.00579160
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
mov byte [ebx], al
mov ebx, dword [ebp - 0x18]
call fcn.00461968
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x538cc6
push 0x44c
push 0x4396e32
push 4
call fcn.005769b1
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x538ce3
push 0x44c
push 0x4396e32
push 1
call fcn.005769b1
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.00461968
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x538d0f
push 0x46c
push 0x4396e32
push 4
call fcn.005769b1
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x538d2c
push 0x46c
push 0x4396e32
push 1
call fcn.005769b1
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.00579160
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
mov byte [ebx], al
pop eax
pop ebx
pop ecx
jmp 0x538bca
add esp, 0xc
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.004b92c0
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x538d9d
push ebx
call fcn.005769c9
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.00538044
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x538dc7
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x834e87
xor ecx, ecx
test eax, eax
je 0x538dd9
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x538dea
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x538e01
dec eax
test ecx, ecx
je 0x538e01
call fcn.0045afb4
add esp, 0xc
test eax, eax
jne 0x538e47
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 0x538e3d
push 0x56a
push 0x4396e32
push 6
call fcn.005769b1
add esp, 0xc
mov eax, 0x834e87
jmp 0x538f3a
push dword [ebp - 0xc]
push dword [ebp - 0x18]
mov ecx, 2
call fcn.004b92c0
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x538e71
push ebx
call fcn.005769c9
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.00538044
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x538e9b
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x834e87
xor ecx, ecx
test eax, eax
je 0x538ead
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x538ebe
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x538ed5
dec eax
test ecx, ecx
je 0x538ed5
call fcn.0045afb4
add esp, 0xc
test eax, eax
jne 0x538f1b
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 0x538f11
push 0x676
push 0x4396e32
push 6
call fcn.005769b1
add esp, 0xc
mov eax, 0x834e87
jmp 0x538f3a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x538f35
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x538f3a
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x538f4b
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x538f5b
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x538f6b
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x538f7b
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc