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

Disassembly:
mov eax, 4
call fcn.1004e0f0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 0x100531f4
mov eax, dword [ebp]
xor esi, esi
push dword [esp + 0x24]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push esi
call sub.libcrypto_3.dll_ASN1_item_d2i
mov ebx, dword [esp + 0x28]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10009710
test ebx, ebx
je 0x100096d6
mov esi, dword [ebx]
test esi, esi
jne 0x100096e1
call sym.libssl_3.dll_SSL_SESSION_new
mov esi, eax
test esi, esi
je 0x10009710
cmp dword [edi], 1
je 0x10009737
call sub.libcrypto_3.dll_ERR_new
push 0x10053398
push 0x10a
push str.ssl_ssl_asn1.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0xfe
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
push 0x100531f4
push edi
call sub.libcrypto_3.dll_ASN1_item_free
add esp, 8
test ebx, ebx
je 0x10009726
cmp dword [ebx], esi
je 0x1000972f
push esi
call sym.libssl_3.dll_SSL_SESSION_free
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [edi + 4]
mov eax, ecx
sar eax, 8
cmp eax, 3
je 0x10009775
cmp eax, 0xfe
je 0x10009775
cmp ecx, 0x100
je 0x10009775
call sub.libcrypto_3.dll_ERR_new
push 0x10053398
push 0x111
push str.ssl_ssl_asn1.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x103
jmp 0x10009706
mov dword [esi], ecx
mov eax, dword [edi + 0x78]
mov dword [esi + 0x2d8], eax
mov eax, dword [edi + 8]
cmp dword [eax], 2
je 0x100097ad
call sub.libcrypto_3.dll_ERR_new
push 0x10053398
push 0x11a
push str.ssl_ssl_asn1.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x89
jmp 0x10009706
mov eax, dword [eax + 8]
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
or ecx, 0x30000
shl ecx, 8
or ecx, eax
push ecx
mov dword [esi + 0x2d4], ecx
call fcn.100080c0
add esp, 4
mov dword [esi + 0x2d0], eax
test eax, eax
je 0x10009710
push 0x20
push dword [edi + 0x14]
lea eax, [esi + 0x248]
push eax
lea eax, [esi + 0x24c]
push eax
call fcn.10009eb0
add esp, 0x10
test eax, eax
je 0x10009710
push 0x200
push dword [edi + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0x48]
push eax
call fcn.10009eb0
add esp, 0x10
test eax, eax
je 0x10009710
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov ecx, dword [edi + 0x20]
mov eax, ecx
mov edx, dword [edi + 0x24]
or eax, edx
jne 0x10009842
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov ecx, eax
mov dword [esi + 0x2b8], ecx
mov dword [esi + 0x2bc], edx
mov ecx, dword [edi + 0x28]
mov eax, ecx
mov edx, dword [edi + 0x2c]
or eax, edx
jne 0x10009861
mov ecx, 3
xor edx, edx
mov dword [esi + 0x2b0], ecx
push esi
mov dword [esi + 0x2b4], edx
call fcn.1001cfb0
push dword [esi + 0x29c]
call sub.libcrypto_3.dll_X509_free
mov eax, dword [edi + 0x30]
mov dword [esi + 0x29c], eax
lea eax, [esi + 0x26c]
push 0x20
push dword [edi + 0x34]
mov dword [edi + 0x30], 0
push eax
lea eax, [esi + 0x270]
push eax
call fcn.10009eb0
add esp, 0x18
test eax, eax
je 0x10009710
mov eax, dword [edi + 0x38]
mov dword [esi + 0x2a4], eax
lea eax, [esi + 0x2ec]
push dword [edi + 0x3c]
push eax
call fcn.10009f00
add esp, 8
test eax, eax
je 0x10009710
push dword [edi + 0x50]
lea eax, [esi + 0x290]
push eax
call fcn.10009f00
add esp, 8
test eax, eax
je 0x10009710
push dword [edi + 0x54]
lea eax, [esi + 0x294]
push eax
call fcn.10009f00
add esp, 8
test eax, eax
je 0x10009710
mov eax, dword [edi + 0x40]
push 0x152
push str.ssl_ssl_asn1.c
push dword [esi + 0x2f0]
mov dword [esi + 0x2f8], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x2fc], eax
call sub.libcrypto_3.dll_CRYPTO_free
mov eax, dword [edi + 0x4c]
add esp, 0xc
test eax, eax
je 0x10009959
mov eax, dword [eax + 8]
mov dword [esi + 0x2f0], eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax]
mov dword [esi + 0x2f4], eax
mov eax, dword [edi + 0x4c]
mov dword [eax + 8], 0
jmp 0x10009963
mov dword [esi + 0x2f0], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1000999c
cmp dword [eax], 1
je 0x10009994
call sub.libcrypto_3.dll_ERR_new
push 0x10053398
push 0x15d
push str.ssl_ssl_asn1.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x10f
jmp 0x10009706
mov eax, dword [eax + 8]
movzx eax, byte [eax]
jmp 0x1000999e
xor eax, eax
mov dword [esi + 0x2cc], eax
lea eax, [esi + 0x310]
push dword [edi + 0x58]
push eax
call fcn.10009f00
add esp, 8
test eax, eax
je 0x10009710
mov eax, dword [edi + 0x60]
push 0x16e
push str.ssl_ssl_asn1.c
push dword [esi + 0x304]
mov dword [esi + 0x31c], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x300], eax
call sub.libcrypto_3.dll_CRYPTO_free
mov eax, dword [edi + 0x6c]
add esp, 0xc
test eax, eax
je 0x10009a0f
mov eax, dword [eax + 8]
mov dword [esi + 0x304], eax
mov eax, dword [edi + 0x6c]
mov eax, dword [eax]
mov dword [esi + 0x308], eax
mov eax, dword [edi + 0x6c]
mov dword [eax + 8], 0
jmp 0x10009a23
mov dword [esi + 0x304], 0
mov dword [esi + 0x308], 0
mov al, byte [edi + 0x70]
push 0x17a
push str.ssl_ssl_asn1.c
push dword [esi + 0x314]
mov byte [esi + 0x30c], al
call sub.libcrypto_3.dll_CRYPTO_free
mov eax, dword [edi + 0x74]
add esp, 0xc
test eax, eax
je 0x10009a6b
mov eax, dword [eax + 8]
mov dword [esi + 0x314], eax
mov eax, dword [edi + 0x74]
mov eax, dword [eax]
mov dword [esi + 0x318], eax
mov eax, dword [edi + 0x74]
mov dword [eax + 8], 0
jmp 0x10009a7f
mov dword [esi + 0x314], 0
mov dword [esi + 0x318], 0
push 0x100531f4
push edi
call sub.libcrypto_3.dll_ASN1_item_free
add esp, 8
test ebx, ebx
je 0x10009a98
cmp dword [ebx], 0
jne 0x10009a98
mov dword [ebx], esi
mov eax, dword [esp + 0x1c]
pop edi
mov dword [ebp], eax
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret