Function at 0x5b0da0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0xf0000000
push 0x18
push 0x78cf94
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x5b0dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004f4dc0
test eax, eax
je 0x5b0dec
push str.CryptAcquireContext_failed
push 1
push 0x107
push str._set_rsa_certificate_info
push str.C:Userslaurence_liuDesktop_vcpkg_2023.02.24_buildtrees_azure_c_shared_utility_src10753faee5_044a82ff07.clean_adaptersx509_schannel.c
push 0
call eax
add esp, 0x18
push esi
call fcn.004f4ca0
add esp, 4
mov eax, 0x108
pop esi
ret
push ebx
push edi
lea ebx, [esi + 4]
push ebx
push 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x5b0ea1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
call fcn.004f4dc0
test eax, eax
je 0x5b0e4e
push str.CryptImportKey_for_private_key_failed
push 1
push 0x110
push str._set_rsa_certificate_info
push str.C:Userslaurence_liuDesktop_vcpkg_2023.02.24_buildtrees_azure_c_shared_utility_src10753faee5_044a82ff07.clean_adaptersx509_schannel.c
push 0
call eax
add esp, 0x18
push ebx
call fcn.004f4ca0
add esp, 4
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x5b0e98
call edi
mov esi, eax
call fcn.004f4dc0
test eax, eax
je 0x5b0e8f
push str.unable_to_CryptReleaseContext
push 1
push 0x113
push str._set_rsa_certificate_info
push str.C:Userslaurence_liuDesktop_vcpkg_2023.02.24_buildtrees_azure_c_shared_utility_src10753faee5_044a82ff07.clean_adaptersx509_schannel.c
push 0
call eax
add esp, 0x18
push esi
call fcn.004f4ca0
add esp, 4
pop edi
pop ebx
mov eax, 0x115
pop esi
ret
push dword [esi]
push 0
push 1
push dword [esi + 8]
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x5b0f7c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call edi
mov ebp, eax
call fcn.004f4dc0
test eax, eax
je 0x5b0ee9
push str.unable_to_CertSetCertificateContextProperty
push 1
push 0x11d
push str._set_rsa_certificate_info
push str.C:Userslaurence_liuDesktop_vcpkg_2023.02.24_buildtrees_azure_c_shared_utility_src10753faee5_044a82ff07.clean_adaptersx509_schannel.c
push 0
call eax
add esp, 0x18
push ebp
call fcn.004f4ca0
add esp, 4
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop ebp
test eax, eax
jne 0x5b0f32
call edi
mov ebx, eax
call fcn.004f4dc0
test eax, eax
je 0x5b0f29
push str.unable_to_CryptDestroyKey
push 1
push 0x121
push str._set_rsa_certificate_info
push str.C:Userslaurence_liuDesktop_vcpkg_2023.02.24_buildtrees_azure_c_shared_utility_src10753faee5_044a82ff07.clean_adaptersx509_schannel.c
push 0
call eax
add esp, 0x18
push ebx
call fcn.004f4ca0
add esp, 4
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x5b0f73
call edi
mov esi, eax
call fcn.004f4dc0
test eax, eax
je 0x5b0f6a
push str.unable_to_CryptReleaseContext
push 1
push 0x125
push str._set_rsa_certificate_info
push str.C:Userslaurence_liuDesktop_vcpkg_2023.02.24_buildtrees_azure_c_shared_utility_src10753faee5_044a82ff07.clean_adaptersx509_schannel.c
push 0
call eax
add esp, 0x18
push esi
call fcn.004f4ca0
add esp, 4
pop edi
pop ebx
mov eax, 0x127
pop esi
ret
pop edi
pop ebx
xor eax, eax
pop esi
ret