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

Disassembly:
mov eax, 0xc4
call fcn.1004e0f0
mov eax, dword [0x1006bde4]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xcc]
push ebx
push ebp
mov ebp, dword [esp + 0xd8]
push esi
mov esi, dword [esp + 0xd4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xe0]
push edi
mov ebx, dword [esi + 0x944]
xor edi, edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], edi
test ebp, ebp
jne 0x10023d14
push edi
lea ebx, [ebp + 3]
call sub.libcrypto_3.dll_EVP_CIPHER_CTX_free
add esp, 4
jmp 0x10023ddf
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x64]
test byte [eax + 0x30], 8
jne 0x10023d30
mov eax, dword [ecx]
cmp eax, 0x304
jl 0x10023d30
cmp eax, 0x10000
jne 0x10023d4c
cmp dword [esi + 0x8f0], edi
je 0x10023d4c
push 0
mov ebx, 4
call sub.libcrypto_3.dll_EVP_CIPHER_CTX_free
add esp, 4
jmp 0x10023ddf
cmp ebp, 0x20
jae 0x10023d62
push 0
mov ebx, 4
call sub.libcrypto_3.dll_EVP_CIPHER_CTX_free
add esp, 4
jmp 0x10023ddf
push 0xd3d
push str.ssl_t1_lib.c
push 8
call sub.libcrypto_3.dll_CRYPTO_zalloc
mov edi, eax
mov dword [esp + 0x1c], 0
add esp, 0xc
test edi, edi
je 0x10023dd2
cmp dword [ebx + 0x160], 0
jne 0x10023e38
cmp dword [ebx + 0x15c], 0
je 0x10023e38
push edi
call fcn.10028520
add esp, 4
test eax, eax
jne 0x10023e78
push dword [edi]
call sub.libcrypto_3.dll_EVP_MAC_CTX_free
push dword [esp + 0x14]
call sub.libcrypto_3.dll_EVP_MAC_free
push 0xd52
push str.ssl_t1_lib.c
push edi
call sub.libcrypto_3.dll_CRYPTO_free
add esp, 0x14
xor ebx, ebx
push ebx
call sub.libcrypto_3.dll_EVP_CIPHER_CTX_free
add esp, 4
xor edi, edi
mov eax, dword [esi + 0x944]
mov ecx, dword [eax + 0x254]
test ecx, ecx
je 0x10024305
cmp ebx, 3
je 0x10023e0b
cmp ebx, 4
je 0x10023e0b
cmp ebx, 5
je 0x10023e0b
cmp ebx, 6
jne 0x10024305
push dword [eax + 0x258]
mov edx, 0x10
cmp ebp, edx
push ebx
cmova ebp, edx
push ebp
push dword [esp + 0x24]
push edi
push esi
call ecx
add esp, 0x18
cmp eax, 4
ja case.0x10023e31.0
jmp dword [eax*4 + 0x1002436c]
push dword [ebx + 0x274]
push str.HMAC
push dword [ebx]
call sub.libcrypto_3.dll_EVP_MAC_fetch
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x10023daf
push eax
call sub.libcrypto_3.dll_EVP_MAC_CTX_new
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x10023daf
push dword [esp + 0x10]
call sub.libcrypto_3.dll_EVP_MAC_free
add esp, 4
mov dword [esp + 0x30], edi
call sub.libcrypto_3.dll_EVP_CIPHER_CTX_new
mov esi, eax
test esi, esi
jne 0x10023e8e
xor ebx, ebx
jmp 0x10024286
mov edx, dword [ebx + 0x160]
test edx, edx
jne 0x10024021
cmp dword [ebx + 0x15c], edx
jne 0x10023ffd
mov ecx, dword [esp + 0x18]
lea edx, [ebx + 0x148]
mov dword [esp + 0x10], 0xc
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10024042
add ecx, 4
add edx, 4
sub dword [esp + 0x10], 4
jae 0x10023ec0
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x828]
push dword [eax + 0x274]
push str.AES_256_CBC
push dword [eax]
call sub.libcrypto_3.dll_EVP_CIPHER_fetch
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x10023feb
cmp dword [edi], 0
mov eax, dword [ebx + 0x158]
mov dword [esp + 0x28], eax
je 0x10023f6f
push 0
push str.SHA256
lea eax, [esp + 0x70]
push str.digest
push eax
call sub.libcrypto_3.dll_OSSL_PARAM_construct_utf8_string
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x50], xmm0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x8c]
push eax
call sub.libcrypto_3.dll_OSSL_PARAM_construct_end
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x68], xmm0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x54]
push eax
push 0x20
push dword [esp + 0x44]
push dword [edi]
call sub.libcrypto_3.dll_EVP_MAC_init
add esp, 0x24
test eax, eax
jne 0x10023f8a
mov eax, dword [esp + 0x28]
cmp dword [edi + 4], 0
je 0x10023feb
push str.SHA256
push 0x20
push eax
push edi
call fcn.100284f0
add esp, 0x10
test eax, eax
jle 0x10023feb
mov eax, dword [esp + 0x18]
add eax, 0x10
push eax
mov eax, dword [ebx + 0x158]
mov ebx, dword [esp + 0x14]
add eax, 0x20
push eax
push 0
push ebx
push esi
call sub.libcrypto_3.dll_EVP_DecryptInit_ex
add esp, 0x14
test eax, eax
jle 0x10023fef
push ebx
call sub.libcrypto_3.dll_EVP_CIPHER_free
mov eax, dword [esp + 0x24]
add esp, 4
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x64]
test byte [eax + 0x30], 8
jne 0x1002405d
mov eax, dword [ecx]
cmp eax, 0x304
jl 0x1002405d
cmp eax, 0x10000
je 0x1002405d
mov dword [esp + 0x2c], 1
jmp 0x1002405d
mov ebx, dword [esp + 0x10]
push ebx
call sub.libcrypto_3.dll_EVP_CIPHER_free
add esp, 4
jmp 0x10024281
push 0
push edi
call sym.libssl_3.dll_SSL_COMP_get0_name
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
push esi
lea eax, [ecx + 0x10]
push eax
mov eax, dword [ebx + 0x15c]
push ecx
push dword [esp + 0x34]
call eax
jmp 0x10024035
mov ecx, dword [esp + 0x18]
push 0
push dword [edi]
push esi
lea eax, [ecx + 0x10]
push eax
push ecx
push dword [esp + 0x34]
call edx
add esp, 0x18
test eax, eax
js 0x10024281
jne 0x1002404c
mov ebx, 4
jmp 0x10024286
xor ecx, ecx
mov edx, 1
cmp eax, 2
cmove ecx, edx
mov dword [esp + 0x2c], ecx
mov eax, dword [edi]
test eax, eax
je 0x1002406b
push eax
call sub.libcrypto_3.dll_EVP_MAC_CTX_get_mac_size
jmp 0x1002407b
cmp dword [edi + 4], 0
je 0x10024281
push edi
call fcn.10028540
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10024281
push esi
call sub.libcrypto_3.dll_EVP_CIPHER_CTX_get_iv_length
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
js 0x10024281
add eax, 0x10
add eax, ebx
cmp ebp, eax
ja 0x100240b0
mov ebx, 4
jmp 0x10024286
mov eax, dword [edi]
sub ebp, ebx
test eax, eax
je 0x100240c5
push ebp
push dword [esp + 0x1c]
push eax
call sub.libcrypto_3.dll_EVP_MAC_update
jmp 0x100240da
cmp dword [edi + 4], 0
je 0x10024281
push ebp
push dword [esp + 0x1c]
push edi
call fcn.10028550
add esp, 0xc
test eax, eax
jle 0x10024281
mov eax, dword [edi]
test eax, eax
je 0x10024102
push 0x40
push 0
lea ecx, [esp + 0x98]
push ecx
push eax
call sub.libcrypto_3.dll_EVP_MAC_final
add esp, 0x10
jmp 0x1002411f
cmp dword [edi + 4], 0
je 0x10024281
push 0
lea eax, [esp + 0x94]
push eax
push edi
call fcn.100284a0
add esp, 0xc
test eax, eax
jle 0x10024281
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [ebx + ebp]
push eax
lea eax, [esp + 0x98]
push eax
call sub.libcrypto_3.dll_CRYPTO_memcmp
add esp, 0xc
test eax, eax
je 0x1002414e
mov ebx, 4
jmp 0x10024286
mov ecx, dword [esp + 0x28]
push 0x788
push str.ssl_t1_lib.c
lea eax, [ecx + 0x10]
add eax, ebx
mov dword [esp + 0x2c], eax
mov eax, 0xfffffff0
sub eax, ecx
add ebp, eax
push ebp
call sub.libcrypto_3.dll_CRYPTO_malloc
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1002426e
push ebp
push dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
push edi
push esi
call sub.libcrypto_3.dll_EVP_DecryptUpdate
add esp, 0x14
test eax, eax
jle 0x1002426e
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
add eax, edi
push eax
push esi
call sub.libcrypto_3.dll_EVP_DecryptFinal
add esp, 0xc
test eax, eax
jg 0x100241d3
push 0x790
push str.ssl_t1_lib.c
push edi
call sub.libcrypto_3.dll_CRYPTO_free
add esp, 0xc
mov ebx, 4
jmp 0x10024286
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
push 0
mov dword [esp + 0x30], edi
call sym.libssl_3.dll_d2i_SSL_SESSION
push 0x799
mov ecx, edi
mov dword [esp + 0x24], eax
sub ecx, dword [esp + 0x34]
add dword [esp + 0x2c], ecx
push str.ssl_t1_lib.c
push edi
call sub.libcrypto_3.dll_CRYPTO_free
mov edi, dword [esp + 0x2c]
add esp, 0x18
test edi, edi
je 0x10024262
cmp dword [esp + 0x1c], 0
je 0x10024234
push edi
call sym.libssl_3.dll_SSL_SESSION_free
add esp, 4
xor edi, edi
mov dword [esp + 0x14], edi
lea ebx, [edi + 4]
jmp 0x10024288
mov ebx, dword [esp + 0xe8]
test ebx, ebx
je 0x10024259
push ebx
push dword [esp + 0x3c]
lea eax, [edi + 0x24c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x248], ebx
mov ebx, dword [esp + 0x2c]
add ebx, 5
jmp 0x10024288
call sub.libcrypto_3.dll_ERR_clear_error
mov ebx, 4
jmp 0x10024288
push 0x78b
push str.ssl_t1_lib.c
push edi
call sub.libcrypto_3.dll_CRYPTO_free
add esp, 0xc
mov ebx, 1
xor edi, edi
push esi
call sub.libcrypto_3.dll_EVP_CIPHER_CTX_free
mov esi, dword [esp + 0x34]
push dword [esi]
call sub.libcrypto_3.dll_EVP_MAC_CTX_free
push esi
call fcn.100284e0
push 0xd5d
push str.ssl_t1_lib.c
push esi
call sub.libcrypto_3.dll_CRYPTO_free
mov esi, dword [esp + 0x38]
add esp, 0x18
jmp 0x10023ddf
push edi
mov ebx, 2
call sym.libssl_3.dll_SSL_SESSION_free
add esp, 4
xor ecx, ecx
jmp 0x10024309
cmp ebx, 3
je 0x100242dc
mov eax, 4
cmp ebx, eax
cmovne ebx, eax
push edi
call sym.libssl_3.dll_SSL_SESSION_free
add esp, 4
xor ecx, ecx
jmp 0x10024309
cmp ebx, 5
je 0x100242f3
cmp ebx, 6
jne case.0x10023e31.0
xor ebx, ebx
cmp eax, 3
setne bl
add ebx, 5
jmp 0x10024305
mov ebx, 1
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0x8f0], 0
je 0x1002432e
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x64]
test byte [eax + 0x30], 8
jne 0x10024349
mov eax, dword [edx]
cmp eax, 0x304
jl 0x10024349
cmp eax, 0x10000
je 0x10024349
mov eax, ebx
sub eax, 3
je 0x1002433f
sub eax, 1
je 0x1002433f
sub eax, 2
jne 0x10024349
mov dword [esi + 0x8bc], 1
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, ebx
mov ecx, dword [esp + 0xc4]
pop ebx
xor ecx, esp
call fcn.1004e11b
add esp, 0xc4
ret