Function at 0x45a140
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ad803
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x40], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
lea eax, [ecx + 4]
mov dword [esp + 0xc8], edi
push 0x600b68
mov ecx, eax
mov dword [esp + 0x6c], eax
call fcn.00438f50
test eax, eax
je 0x45a8a1
push dword [eax + 0x24]
call fcn.00585978
add esp, 4
cmp eax, 1
jne 0x45a8a1
lea ecx, [esp + 0x28]
call fcn.0045cfb0
mov edi, dword [ebp + 0xc]
mov ebx, 0x5ef390
mov ecx, ebx
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov eax, ebx
test ecx, ecx
cmovne eax, ecx
lea ecx, [edi + 4]
push eax
call fcn.00433400
mov eax, dword [esp + 0x28]
mov dword [edi], 0
test eax, eax
je 0x45a22a
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45a222
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45a219
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45a210
push edx
call fcn.00582cf0
add esp, 4
mov dword [esp + 0x28], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
dec eax
mov dword [edi], 0
cmp eax, 3
ja 0x45a2de
lea eax, [esp + 0x30]
mov dword [edi + 0x14], 0x20
push eax
mov ecx, edi
mov dword [edi + 0x10], 1
call fcn.00450d90
mov ecx, dword [edi + 0x14]
mov edx, ebx
mov esi, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
cmovne edx, eax
or ecx, 8
push ecx
push 0xc
push 0x5feb74
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x45a2be
dec dword [ecx - 4]
lea edx, [ecx - 0xc]
jne 0x45a2b6
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45a2a9
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45a2a0
push edx
call fcn.00582cf0
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x30], 0
test eax, eax
je 0x45a2e8
push 0x5feb74
lea ecx, [edi + 8]
call fcn.00433400
mov dword [edi + 0xc], 0xc
mov dword [edi], 0
jmp 0x45a2e8
mov esi, dword [ebp + 0x10]
mov dword [edi + 0x10], 2
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00448170
mov eax, dword [eax]
test eax, eax
je 0x45a2ff
mov eax, dword [eax - 0xc]
jmp 0x45a301
xor eax, eax
test eax, eax
mov eax, dword [esp + 0x20]
sete cl
mov byte [esp + 0x12], cl
test eax, eax
je 0x45a342
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45a33a
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45a32d
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45a324
push edx
call fcn.00582cf0
mov cl, byte [esp + 0x16]
add esp, 4
mov dword [esp + 0x20], 0
test cl, cl
je 0x45a500
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.00450d90
mov ecx, dword [edi + 0x14]
mov edx, ebx
mov eax, dword [eax]
test eax, eax
cmovne edx, eax
or ecx, 8
push ecx
push 0x18
push 0x5fd7a4
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x45a3b1
dec dword [ecx - 4]
lea edx, [ecx - 0xc]
jne 0x45a3a9
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45a39c
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45a393
push edx
call fcn.00582cf0
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x34], 0
test eax, eax
je 0x45a3ce
push 0x5fd7a4
lea ecx, [edi + 8]
call fcn.00433400
mov dword [edi + 0xc], 0x18
jmp 0x45a4fa
lea eax, [esp + 0x54]
mov ecx, edi
push eax
call fcn.00450d90
mov ecx, dword [edi + 0x14]
mov edx, ebx
mov eax, dword [eax]
test eax, eax
cmovne edx, eax
or ecx, 8
push ecx
push 0x18
push 0x5fd760
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.004331d0
test esi, esi
je 0x45a421
push 0x5fd760
lea ecx, [edi + 8]
call fcn.00433400
mov dword [edi + 0xc], 0x18
jmp 0x45a4fa
lea eax, [esp + 0x64]
mov ecx, edi
push eax
call fcn.00450d90
mov ecx, dword [edi + 0x14]
mov edx, ebx
mov eax, dword [eax]
test eax, eax
cmovne edx, eax
or ecx, 8
push ecx
push 1
push 0x5fd808
push edx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea ecx, [esp + 0x64]
mov esi, eax
call fcn.004331d0
test esi, esi
je 0x45a467
push 0x5fd808
jmp 0x45a4eb
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
call fcn.00450d90
mov ecx, dword [edi + 0x14]
mov edx, ebx
mov eax, dword [eax]
test eax, eax
cmovne edx, eax
or ecx, 8
push ecx
push 1
push 0x600b80
push edx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea ecx, [esp + 0x5c]
mov esi, eax
call fcn.004331d0
test esi, esi
je 0x45a4aa
push 0x600b80
jmp 0x45a4eb
lea eax, [esp + 0x60]
mov ecx, edi
push eax
call fcn.00450d90
mov ecx, dword [edi + 0x14]
mov edx, ebx
mov eax, dword [eax]
test eax, eax
cmovne edx, eax
or ecx, 8
push ecx
push 1
push 0x5fd7dc
push edx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea ecx, [esp + 0x60]
mov esi, eax
call fcn.004331d0
test esi, esi
je 0x45a514
push 0x5fd7dc
lea ecx, [edi + 8]
call fcn.00433400
mov dword [edi + 0xc], 1
mov dword [edi], 0
mov ecx, dword [esp + 0x68]
push 0x600b78
call fcn.00438f50
test eax, eax
jne 0x45a52b
jmp 0x45a536
push 0x6256a0
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0x1f
push eax
call fcn.00586852
push dword [eax + 0x24]
call fcn.00585978
add esp, 4
push dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
shl eax, 0x10
or eax, 1
push eax
push dword [edi + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x45a665
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x21
lea ecx, [esp + 0xa0]
call fcn.0045c450
push 0
mov byte [esp + 0xcc], 1
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [esp + 0x70]
mov ecx, edi
push eax
call fcn.00448170
mov edx, eax
mov ecx, edi
lea eax, [esp + 0x2c]
push eax
call fcn.00450d90
mov ecx, dword [edx]
mov edx, ebx
mov esi, dword [edi + 0x14]
test ecx, ecx
mov eax, dword [eax]
cmovne edx, ecx
test eax, eax
mov ecx, ebx
cmovne ecx, eax
or esi, 0x10
push esi
push dword [edi + 0xc]
push edx
push ecx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x45a5f2
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45a5ea
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45a5e1
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45a5d8
push edx
call fcn.00582cf0
add esp, 4
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x70]
test eax, eax
je 0x45a622
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45a622
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45a619
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45a610
push edx
call fcn.00582cf0
add esp, 4
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xa0]
test eax, eax
mov dword [esp + 0x7c], 0
cmovne ebx, eax
push ebx
call fcn.00433400
push 0x62566c
lea eax, [esp + 0x78]
push eax
call fcn.00586852
lea eax, [esp + 0x24]
push eax
push 0
push 0x10001
push dword [edi + 0x10]
push dword [esi]
call dword [sym.imp.CRYPT32.dll_CryptExportPublicKeyInfo]
test eax, eax
jne 0x45a75b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x22
lea ecx, [esp + 0x94]
call fcn.0045c450
mov eax, dword [ebp + 0x14]
mov byte [esp + 0xc8], 2
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00448170
mov edx, eax
mov ecx, edi
lea eax, [esp + 0x6c]
push eax
call fcn.00450d90
mov ecx, dword [edx]
mov edx, ebx
mov esi, dword [edi + 0x14]
test ecx, ecx
mov eax, dword [eax]
cmovne edx, ecx
test eax, eax
mov ecx, ebx
cmovne ecx, eax
or esi, 0x10
push esi
push dword [edi + 0xc]
push edx
push ecx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea ecx, [esp + 0x6c]
call fcn.004331d0
lea ecx, [esp + 0x1c]
call fcn.004331d0
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x88]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x94]
test eax, eax
mov dword [esp + 0x88], 0
cmovne ebx, eax
push ebx
call fcn.00433400
push 0x62566c
lea eax, [esp + 0x84]
push eax
call fcn.00586852
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x45a77f
push eax
lea ecx, [esp + 0x3c]
call fcn.00432ce0
test eax, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
jne 0x45a781
jmp 0x45a789
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push 0x10001
push dword [edi + 0x10]
push dword [esi]
call dword [sym.imp.CRYPT32.dll_CryptExportPublicKeyInfo]
test eax, eax
jne 0x45a850
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x23
lea ecx, [esp + 0xac]
call fcn.0045c450
mov eax, dword [ebp + 0x14]
mov byte [esp + 0xc8], 3
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.00448170
mov edx, eax
mov ecx, edi
lea eax, [esp + 0x58]
push eax
call fcn.00450d90
mov ecx, dword [edx]
mov edx, ebx
mov esi, dword [edi + 0x14]
test ecx, ecx
mov eax, dword [eax]
cmovne edx, ecx
test eax, eax
cmovne ebx, eax
or esi, 0x10
push esi
push dword [edi + 0xc]
push edx
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea ecx, [esp + 0x58]
call fcn.004331d0
lea ecx, [esp + 0x4c]
call fcn.004331d0
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xb4]
call fcn.0045c410
push 0x62566c
lea eax, [esp + 0xb4]
push eax
call fcn.00586852
mov esi, dword [ebp + 0x18]
mov ecx, esi
mov edi, dword [esp + 0x14]
push 1
mov dword [esi + 4], 0
mov al, byte [edi + 0x14]
mov byte [esp + 0x17], al
lea eax, [esp + 0x17]
push eax
call fcn.00433050
push dword [edi + 0xc]
mov ecx, esi
push dword [edi + 0x10]
call fcn.00433050
lea ecx, [esp + 0x38]
call fcn.00432cb0
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x6256a0
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x43
push eax
call fcn.00586852
int3