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

Disassembly:
jmp 0x10059040
mov eax, 0x70
call fcn.10001398
mov eax, dword [0x1007c4d4]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x78]
push ebp
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x88]
push esi
mov dword [esp + 0x2c], eax
xor esi, esi
mov eax, dword [esp + 0x94]
push edi
xor edi, edi
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x5e0]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], eax
test ebp, ebp
jne 0x100590a8
lea ebx, [ebp + 3]
jmp 0x10059301
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x64]
test byte [eax + 0x30], 8
jne 0x100590c4
mov eax, dword [ecx]
cmp eax, 0x304
jl 0x100590c4
cmp eax, 0x10000
jne 0x100590d0
cmp dword [ebx + 0x58c], esi
jne 0x100592fc
cmp ebp, 0x20
jb 0x100592fc
call sub.libcrypto_1_1.dll_HMAC_CTX_new
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100590ed
xor ebx, ebx
jmp 0x10059301
call sub.libcrypto_1_1.dll_EVP_CIPHER_CTX_new
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x10059103
xor ebx, ebx
jmp 0x10059301
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14c]
test ecx, ecx
je 0x10059151
mov edx, dword [esp + 0x1c]
push 0
push dword [esp + 0x18]
push esi
lea eax, [edx + 0x10]
push eax
push edx
push ebx
call ecx
add esp, 0x18
test eax, eax
jns 0x10059135
mov ebx, 1
jmp 0x10059301
je 0x100592fc
cmp eax, 2
jne 0x100591eb
mov dword [esp + 0x24], 1
jmp 0x100591eb
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 0x138]
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100592f8
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10059160
push 0
call sub.libcrypto_1_1.dll_EVP_sha256
mov esi, dword [esp + 0x2c]
push eax
push 0x20
push dword [esi + 0x148]
push dword [esp + 0x24]
call sub.libcrypto_1_1.dll_HMAC_Init_ex
add esp, 0x14
test eax, eax
jle 0x100591fd
mov eax, dword [esp + 0x1c]
add eax, 0x10
push eax
mov eax, dword [esi + 0x148]
add eax, 0x20
push eax
push 0
call sub.libcrypto_1_1.dll_EVP_aes_256_cbc
push eax
push dword [esp + 0x20]
call sub.libcrypto_1_1.dll_EVP_DecryptInit_ex
add esp, 0x14
test eax, eax
jle 0x100591fd
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x64]
test byte [eax + 0x30], 8
jne 0x100591eb
mov eax, dword [ecx]
cmp eax, 0x304
jl 0x100591eb
xor ebx, ebx
mov ecx, 1
cmp eax, 0x10000
cmovne ebx, ecx
mov dword [esp + 0x24], ebx
push dword [esp + 0x14]
call sub.libcrypto_1_1.dll_HMAC_size
mov esi, eax
add esp, 4
test esi, esi
jne 0x1005920b
mov esi, dword [esp + 0x10]
mov ebx, 1
jmp 0x10059301
mov ebx, dword [esp + 0x10]
push ebx
call sub.libcrypto_1_1.dll_EVP_CIPHER_CTX_iv_length
add eax, 0x10
add esp, 4
add eax, esi
cmp ebp, eax
jbe 0x100592f8
sub ebp, esi
push ebp
push dword [esp + 0x20]
push dword [esp + 0x1c]
call sub.libcrypto_1_1.dll_HMAC_Update
add esp, 0xc
test eax, eax
jle 0x100591fd
push 0
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call sub.libcrypto_1_1.dll_HMAC_Final
add esp, 0xc
test eax, eax
jle 0x100591fd
push esi
mov esi, dword [esp + 0x20]
lea eax, [esi + ebp]
push eax
lea eax, [esp + 0x44]
push eax
call sub.libcrypto_1_1.dll_CRYPTO_memcmp
add esp, 0xc
test eax, eax
jne 0x100592f8
push ebx
call sub.libcrypto_1_1.dll_EVP_CIPHER_CTX_iv_length
add esi, 0x10
add eax, esi
push ebx
mov dword [esp + 0x28], eax
call sub.libcrypto_1_1.dll_EVP_CIPHER_CTX_iv_length
mov ecx, 0xfffffff0
sub ecx, eax
push 0x5c1
add ebp, ecx
push str.ssl_t1_lib.c
push ebp
call sub.libcrypto_1_1.dll_CRYPTO_malloc
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10059406
push ebp
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
push esi
push ebx
call sub.libcrypto_1_1.dll_EVP_DecryptUpdate
add esp, 0x14
test eax, eax
jle 0x10059406
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push ebx
call sub.libcrypto_1_1.dll_EVP_DecryptFinal
add esp, 0xc
test eax, eax
jg 0x10059370
push 0x5c9
push str.ssl_t1_lib.c
push esi
call sub.libcrypto_1_1.dll_CRYPTO_free
add esp, 0xc
mov esi, dword [esp + 0x10]
mov ebx, 4
push esi
call sub.libcrypto_1_1.dll_EVP_CIPHER_CTX_free
push dword [esp + 0x18]
call sub.libcrypto_1_1.dll_HMAC_CTX_free
mov esi, dword [esp + 0x3c]
add esp, 8
mov eax, dword [esi + 0x5e0]
mov ecx, dword [eax + 0x238]
test ecx, ecx
je 0x10059471
cmp ebx, 3
je 0x10059343
cmp ebx, 4
je 0x10059343
cmp ebx, 5
je 0x10059343
cmp ebx, 6
jne 0x10059471
push dword [eax + 0x23c]
mov edx, 0x10
cmp ebp, edx
push ebx
cmova ebp, edx
push ebp
push dword [esp + 0x28]
push edi
push esi
call ecx
add esp, 0x18
cmp eax, 4
ja case.0x10059369.0
jmp dword [eax*4 + 0x100594cc]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
push 0
mov dword [esp + 0x2c], esi
call sym.libssl_1_1.dll_d2i_SSL_SESSION
push 0x5d2
mov ecx, esi
mov edi, eax
sub ecx, dword [esp + 0x30]
add dword [esp + 0x28], ecx
push str.ssl_t1_lib.c
push esi
call sub.libcrypto_1_1.dll_CRYPTO_free
add esp, 0x18
test edi, edi
je 0x100593fc
cmp dword [esp + 0x18], 0
je 0x100593c7
push edi
call sym.libssl_1_1.dll_SSL_SESSION_free
add esp, 4
xor edi, edi
jmp 0x100592f8
mov esi, dword [esp + 0x94]
test esi, esi
je 0x100593ec
push esi
push dword [esp + 0x34]
lea eax, [edi + 0x14c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x148], esi
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
add ebx, 5
jmp 0x10059301
call sub.libcrypto_1_1.dll_ERR_clear_error
jmp 0x100592f8
push 0x5c4
push str.ssl_t1_lib.c
push esi
call sub.libcrypto_1_1.dll_CRYPTO_free
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov ebx, 1
jmp 0x10059301
push edi
mov ebx, 2
call sym.libssl_1_1.dll_SSL_SESSION_free
add esp, 4
xor edi, edi
jmp 0x10059471
cmp ebx, 3
je 0x10059448
mov eax, 4
cmp ebx, eax
cmovne ebx, eax
push edi
call sym.libssl_1_1.dll_SSL_SESSION_free
add esp, 4
xor edi, edi
jmp 0x10059471
cmp ebx, 5
je 0x1005945f
cmp ebx, 6
jne case.0x10059369.0
xor ebx, ebx
cmp eax, 3
setne bl
add ebx, 5
jmp 0x10059471
mov ebx, 1
cmp dword [esi + 0x58c], 0
je 0x10059496
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x64]
test byte [eax + 0x30], 8
jne 0x100594b1
mov eax, dword [ecx]
cmp eax, 0x304
jl 0x100594b1
cmp eax, 0x10000
je 0x100594b1
mov eax, ebx
sub eax, 3
je 0x100594a7
sub eax, 1
je 0x100594a7
sub eax, 2
jne 0x100594b1
mov dword [esi + 0x55c], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x7c]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100017c1
add esp, 0x70
ret