Function at 0x10120c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x10120c20
mov eax, 0x6c
call fcn.101704b0
mov eax, dword [0x101f2700]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x30], eax
xor ebx, ebx
mov eax, dword [esp + 0x98]
xor ebp, ebp
mov dword [esp + 0x18], 0x95
xor esi, esi
mov dword [esp + 0x34], ecx
test eax, eax
mov dword [esp + 0x14], ebp
cmove eax, dword [esp + 0x18]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x18], 0x92
cmove eax, dword [esp + 0x18]
test edx, edx
mov dword [esp + 0x28], eax
mov eax, 0x800
cmove edx, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edx
mov eax, 1
mov edx, dword [esp + 0xa0]
test edx, edx
mov dword [esp + 0x24], ebx
cmove edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xa0], edx
test ecx, ecx
jne 0x10120d33
test edi, edi
jne 0x10120d5e
test eax, eax
jne 0x10120db2
push 0x3a
push str.cryptopkcs12p12_crt.c
push 0x68
push 0x69
push 0x23
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.101704a0
add esp, 0x6c
ret
test edi, edi
je 0x10120db2
push ecx
push edi
call sym.libcrypto_1_1.dll_X509_check_private_key
add esp, 8
test eax, eax
je 0x10120d1e
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
call sym.libcrypto_1_1.dll_EVP_sha1
push eax
push edi
call sym.libcrypto_1_1.dll_X509_digest
add esp, 0x10
lea eax, [esp + 0x10]
push edi
push eax
call sym.libcrypto_1_1.dll_PKCS12_add_cert
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10120d86
push 0xffffffffffffffff
push eax
push esi
call sym.libcrypto_1_1.dll_PKCS12_add_friendlyname_utf8
add esp, 0xc
test eax, eax
je 0x10120da1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10120daa
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call sym.libcrypto_1_1.dll_PKCS12_add_localkeyid
add esp, 0xc
test eax, eax
jne 0x10120daa
mov esi, dword [esp + 0x10]
jmp 0x10120f90
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push eax
xor edi, edi
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
add esp, 4
test eax, eax
jle 0x10120df0
mov esi, dword [esp + 0x20]
push edi
push esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
push eax
lea eax, [esp + 0x1c]
push eax
call sym.libcrypto_1_1.dll_PKCS12_add_cert
add esp, 0x10
test eax, eax
je 0x10120da1
push esi
inc edi
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
add esp, 4
cmp edi, eax
jl 0x10120dc5
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10120e1d
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push dword [esp + 0x1c]
push dword [esp + 0xa0]
push esi
push eax
call sym.libcrypto_1_1.dll_PKCS12_add_safe
mov ebp, dword [esp + 0x28]
add esp, 0x14
test eax, eax
je 0x10120f90
push sym.libcrypto_1_1.dll_PKCS12_SAFEBAG_free
push esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_pop_free
mov edi, dword [esp + 0x3c]
xor esi, esi
add esp, 8
mov dword [esp + 0x10], esi
test edi, edi
je 0x10120f25
push dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push dword [esp + 0x3c]
push edi
push eax
call sym.libcrypto_1_1.dll_PKCS12_add_key
mov esi, eax
add esp, 0x18
test esi, esi
je 0x10120da1
push 0xffffffffffffffff
push 0x1a1
push edi
call sym.libcrypto_1_1.dll_EVP_PKEY_get_attr_by_NID
add esp, 0xc
test eax, eax
js 0x10120e96
push eax
push edi
call sym.libcrypto_1_1.dll_EVP_PKEY_get_attr
push eax
lea eax, [esi + 8]
push eax
call sym.libcrypto_1_1.dll_X509at_add1_attr
add esp, 0x10
test eax, eax
je 0x10120da1
push 0xffffffffffffffff
push 0x358
push edi
call sym.libcrypto_1_1.dll_EVP_PKEY_get_attr_by_NID
add esp, 0xc
test eax, eax
js 0x10120ec6
push eax
push edi
call sym.libcrypto_1_1.dll_EVP_PKEY_get_attr
push eax
lea eax, [esi + 8]
push eax
call sym.libcrypto_1_1.dll_X509at_add1_attr
add esp, 0x10
test eax, eax
je 0x10120da1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10120ee2
push 0xffffffffffffffff
push eax
push esi
call sym.libcrypto_1_1.dll_PKCS12_add_friendlyname_utf8
add esp, 0xc
test eax, eax
je 0x10120da1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10120f01
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call sym.libcrypto_1_1.dll_PKCS12_add_localkeyid
add esp, 0xc
test eax, eax
je 0x10120da1
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10120f25
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push esi
push eax
call sym.libcrypto_1_1.dll_PKCS12_add_safe
mov ebp, dword [esp + 0x28]
add esp, 0x14
test eax, eax
je 0x10120f90
push sym.libcrypto_1_1.dll_PKCS12_SAFEBAG_free
push esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_pop_free
push 0x15
xor esi, esi
call sym.libcrypto_1_1.dll_PKCS12_init
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10120f59
push ebp
push ebx
call sym.libcrypto_1_1.dll_PKCS12_pack_authsafes
add esp, 8
test eax, eax
jne 0x10120f5d
push ebx
call sym.libcrypto_1_1.dll_PKCS12_free
add esp, 4
xor ebx, ebx
jmp 0x10120f90
push sym.libcrypto_1_1.dll_PKCS7_free
push ebp
call sym.libcrypto_1_1.dll_OPENSSL_sk_pop_free
mov eax, dword [esp + 0xa8]
add esp, 8
xor ebp, ebp
cmp eax, 0xffffffff
je 0x10120fc4
push ebp
push eax
push ebp
push ebp
push 0xffffffffffffffff
push dword [esp + 0x30]
push ebx
call sym.libcrypto_1_1.dll_PKCS12_set_mac
add esp, 0x1c
test eax, eax
jne 0x10120fc4
push ebx
call sym.libcrypto_1_1.dll_PKCS12_free
push sym.libcrypto_1_1.dll_PKCS7_free
push ebp
call sym.libcrypto_1_1.dll_OPENSSL_sk_pop_free
push sym.libcrypto_1_1.dll_PKCS12_SAFEBAG_free
push esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_pop_free
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.101704a0
add esp, 0x6c
ret
mov ecx, dword [esp + 0x78]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101704a0
add esp, 0x6c
ret