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

Disassembly:
mov eax, 0x9c
call fcn.10228380
mov eax, dword [0x1033b254]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa0]
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xb0]
push esi
push edi
xor edi, edi
mov dword [esp + 0x60], eax
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call sym.libcrypto_3.dll_PKCS12_unpack_authsafes
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
je 0x1016a034
call sym.libcrypto_3.dll_OPENSSL_sk_new_null
mov dword [esp + 0x18], eax
test eax, eax
je 0x1016a034
mov edi, dword [esp + 0x10]
xor esi, esi
push edi
mov dword [esp + 0x40], esi
call sym.libcrypto_3.dll_OPENSSL_sk_num
add esp, 4
test eax, eax
jle 0x10169f7f
nop
push esi
push edi
call sym.libcrypto_3.dll_OPENSSL_sk_value
mov ebp, eax
mov dword [esp + 0x60], ebp
push dword [ebp + 0x10]
call sym.libcrypto_3.dll_OBJ_obj2nid
add esp, 0xc
mov dword [esp + 0x5c], eax
cmp eax, 0x15
jne 0x10169d6e
push ebp
call sym.libcrypto_3.dll_PKCS12_unpack_p7data
add esp, 4
mov edi, eax
jmp 0x10169dba
cmp eax, 0x1a
jne 0x10169f65
push 0xffffffffffffffff
push ebx
push ebp
call sym.libcrypto_3.dll_PKCS12_unpack_p7encdata
mov edi, eax
add esp, 0xc
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1016a030
mov eax, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
push ecx
push dword [eax + 4]
call fcn.10169880
add esp, 0x14
test eax, eax
je 0x1016a030
test edi, edi
je 0x1016a030
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esp + 0x24], eax
call sym.libcrypto_3.dll_OPENSSL_sk_num
add esp, 4
test eax, eax
jle 0x10169efd
push ebx
push edi
call sym.libcrypto_3.dll_OPENSSL_sk_value
mov esi, eax
xor ebp, ebp
push esi
mov dword [esp + 0x20], ebp
call sym.libcrypto_3.dll_PKCS12_SAFEBAG_get_nid
add esp, 0xc
cmp eax, 0x97
jne 0x10169ee3
push dword [esp + 0x1c]
push dword [esp + 0x24]
push 0xffffffffffffffff
push dword [esp + 0x44]
push dword [esi + 4]
call sym.libcrypto_3.dll_PKCS8_decrypt_ex
add esp, 0x14
mov dword [esp + 0x24], eax
test eax, eax
je 0x1016a030
push ebp
lea eax, [esp + 0x4c]
push eax
push dword [esi + 4]
call sym.libcrypto_3.dll_X509_SIG_get0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x64]
call fcn.10169880
add esp, 0x20
test eax, eax
je 0x1016a008
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10169e8d
push dword [esp + 0x1c]
push eax
call sym.libcrypto_3.dll_OBJ_nid2sn
add esp, 4
push eax
push dword [esp + 0x28]
call sym.libcrypto_3.dll_EVP_CIPHER_fetch
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1016a008
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x58]
push dword [esp + 0x60]
push 0
push 0xffffffffffffffff
push dword [esp + 0x44]
push ebp
push dword [esp + 0x78]
call sym.libcrypto_3.dll_PKCS8_encrypt_ex
push dword [esp + 0x4c]
mov dword [esp + 0x40], eax
call sym.libcrypto_3.dll_PKCS8_PRIV_KEY_INFO_free
push ebp
call sym.libcrypto_3.dll_EVP_CIPHER_free
mov ebp, dword [esp + 0x44]
add esp, 0x30
test ebp, ebp
je 0x1016a030
push dword [esi + 4]
call sym.libcrypto_3.dll_X509_SIG_free
add esp, 4
mov dword [esi + 4], ebp
push edi
inc ebx
call sym.libcrypto_3.dll_OPENSSL_sk_num
add esp, 4
cmp ebx, eax
jl 0x10169de3
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0x5c], 0x15
jne 0x10169f0f
push edi
call sym.libcrypto_3.dll_PKCS12_pack_p7data
add esp, 4
jmp 0x10169f32
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
push dword [esp + 0x38]
push dword [esp + 0x40]
push 0
push 0xffffffffffffffff
push dword [esp + 0x44]
push dword [esp + 0x54]
call sym.libcrypto_3.dll_PKCS12_pack_p7encdata_ex
add esp, 0x24
test eax, eax
je 0x1016a030
push eax
push dword [esp + 0x1c]
call sym.libcrypto_3.dll_OPENSSL_sk_push
add esp, 8
test eax, eax
je 0x1016a030
push sym.libcrypto_3.dll_PKCS12_SAFEBAG_free
push edi
call sym.libcrypto_3.dll_OPENSSL_sk_pop_free
mov ebx, dword [esp + 0x40]
add esp, 8
mov edi, dword [esp + 0x10]
inc esi
push edi
mov dword [esp + 0x40], esi
call sym.libcrypto_3.dll_OPENSSL_sk_num
add esp, 4
cmp esi, eax
jl 0x10169d40
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x60]
mov eax, dword [ebx + 8]
mov esi, dword [eax + 0x14]
call sym.libcrypto_3.dll_ASN1_OCTET_STRING_new
mov ecx, dword [ebx + 8]
mov dword [ecx + 0x14], eax
test eax, eax
je 0x1016a016
push dword [esp + 0x18]
push ebx
call sym.libcrypto_3.dll_PKCS12_pack_authsafes
add esp, 8
test eax, eax
je 0x1016a016
cmp dword [ebx + 4], 0
je 0x10169ff3
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x6c]
push eax
push 0xffffffffffffffff
push ebp
push ebx
call sym.libcrypto_3.dll_PKCS12_gen_mac
add esp, 0x14
test eax, eax
je 0x1016a016
lea eax, [esp + 0x40]
push eax
mov eax, dword [ebx + 4]
push 0
push dword [eax]
call sym.libcrypto_3.dll_X509_SIG_getm
push dword [esp + 0x70]
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x54]
call sym.libcrypto_3.dll_ASN1_OCTET_STRING_set
add esp, 0x18
test eax, eax
je 0x1016a016
push esi
mov dword [esp + 0x48], 1
xor edi, edi
call sym.libcrypto_3.dll_ASN1_OCTET_STRING_free
add esp, 4
jmp 0x1016a030
push dword [esp + 0x24]
call sym.libcrypto_3.dll_PKCS8_PRIV_KEY_INFO_free
add esp, 4
jmp 0x1016a030
xor edi, edi
test esi, esi
je 0x1016a030
mov eax, dword [ebx + 8]
push dword [eax + 0x14]
call sym.libcrypto_3.dll_ASN1_OCTET_STRING_free
mov eax, dword [ebx + 8]
add esp, 4
mov dword [eax + 0x14], esi
mov esi, dword [esp + 0x10]
push sym.libcrypto_3.dll_PKCS12_SAFEBAG_free
push edi
call sym.libcrypto_3.dll_OPENSSL_sk_pop_free
push sym.libcrypto_3.dll_PKCS7_free
push esi
call sym.libcrypto_3.dll_OPENSSL_sk_pop_free
push sym.libcrypto_3.dll_PKCS7_free
push dword [esp + 0x2c]
call sym.libcrypto_3.dll_OPENSSL_sk_pop_free
mov ecx, dword [esp + 0xc0]
add esp, 0x18
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1022836f
add esp, 0x9c
ret