Function at 0x5922a0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 4]
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
je 0x5923bd
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x592314
call fcn.004db1d0
mov edi, eax
test edi, edi
je 0x5924a5
mov ecx, dword [edi]
push 0x407
push edi
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 2
jl 0x5924a5
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.static:_error_creating_a_new_rsa_crypto_context_for_key_with_errno__d
jmp 0x592496
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x59236a
call fcn.004db1d0
mov edi, eax
test edi, edi
je 0x5924a5
mov ecx, dword [edi]
push 0x407
push edi
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 2
jl 0x5924a5
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.static:_failed_to_import_rsa_key_into_crypto_provider__error_code__d
jmp 0x592496
push dword [ebp - 4]
push 0
push 1
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x5924d6
call fcn.004db1d0
mov edi, eax
test edi, edi
je 0x5924a5
mov ecx, dword [edi]
push 0x407
push edi
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 2
jl 0x5924a5
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.static:_error_creating_a_new_certificate_context_for_rsa_key_with_errno__d
jmp 0x592496
mov esi, dword [ebp + 0x18]
push 8
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x59240d
call fcn.004db1d0
mov edi, eax
test edi, edi
je 0x5924a5
mov ecx, dword [edi]
push 0x407
push edi
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 2
jl 0x5924a5
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.static:_error_creating_a_new_rsa_crypto_context_with_errno__d
jmp 0x592496
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x59232f
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
push eax
push 0
push 2
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0xc], 1
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x5924d6
call fcn.004db1d0
mov edi, eax
test edi, edi
je 0x5924a5
mov ecx, dword [edi]
push 0x407
push edi
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 2
jl 0x5924a5
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.static:_error_creating_a_new_certificate_context_for_key_with_errno__d
mov eax, dword [esi]
push 0x407
push 2
push edi
call eax
add esp, 0x14
push 0x2e
call fcn.004d86d0
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x5924bd
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x5924cd
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret