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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov dword [esp], esi
call sym._dtls1_query_mtu
test eax, eax
je 0x4e6979
mov eax, dword [esi + 0x80]
mov ebx, dword [eax + 0x11c]
mov dword [esp], esi
call sym._dtls1_min_mtu
cmp ebx, eax
jb 0x4e6979
mov ebp, dword [esi + 0x78]
test ebp, ebp
jne 0x4e659b
cmp edi, 0x16
je 0x4e6961
mov edx, dword [esi + 0x3fc]
mov eax, dword [esi + 0x3e8]
mov dword [esp + 0x24], 0
test edx, edx
je 0x4e65ee
test eax, eax
je 0x4e65d4
mov dword [esp], eax
call sym._EVP_CIPHER_CTX_cipher
mov dword [esp], eax
call sym._EVP_CIPHER_flags
test eax, 0x200000
jne 0x4e65e8
mov edx, dword [esi + 0x3fc]
mov dword [esp], edx
call sym._EVP_MD_CTX_md
mov dword [esp], eax
call sym._EVP_MD_size
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x3e8]
test eax, eax
je 0x4e6610
mov dword [esp], eax
call sym._EVP_CIPHER_CTX_cipher
mov dword [esp], eax
call sym._EVP_CIPHER_flags
and eax, 0xf0007
cmp eax, 2
je 0x4e6a04
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x74]
xor ebp, ebp
mov dword [esi + 0x14], 1
mov dword [esp + 0x2c], 1
lea ecx, [ecx + ebx + 0xd]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x4e6826
cmp edi, 0x16
jne 0x4e6670
mov edx, dword [esi + 0x78]
test edx, edx
je 0x4e6670
test ebp, ebp
je 0x4e6950
cmp edx, 0xc
jbe 0x4e6979
sub edx, 0xc
add eax, 0xc
mov dword [esi + 0x78], edx
mov dword [esi + 0x74], eax
lea esi, [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xd
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sym._BIO_ctrl
mov edx, dword [esi + 0x80]
add eax, dword [esp + 0x20]
mov ebx, dword [edx + 0x11c]
cmp ebx, eax
jbe 0x4e66ae
sub ebx, eax
cmp ebx, 0xc
ja 0x4e6701
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sym._BIO_ctrl
test eax, eax
jle 0x4e6a20
mov edx, dword [esi + 0x80]
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x28]
mov eax, dword [edx + 0x11c]
lea ebx, [eax - 0xd]
lea eax, [ecx + 0x19]
cmp dword [edx + 0x11c], eax
jbe 0x4e6979
sub ebx, ecx
mov eax, dword [esi + 0x508]
cmp dword [esi + 0x74], eax
cmovbe eax, dword [esi + 0x74]
cmp eax, ebx
cmovbe ebx, eax
cmp edi, 0x16
jne 0x4e67ae
cmp ebx, 0xb
jbe 0x4e6979
lea eax, [ebx - 0xc]
mov ecx, dword [esi + 0x78]
mov dword [edx + 0x12c], ebp
mov dword [edx + 0x130], eax
mov eax, dword [esi + 0x6c]
add ecx, dword [eax + 4]
movzx eax, byte [edx + 0x120]
mov byte [ecx], al
movzx eax, word [edx + 0x126]
mov byte [ecx + 1], al
mov eax, dword [edx + 0x124]
mov byte [ecx + 2], ah
mov eax, dword [edx + 0x124]
mov byte [ecx + 3], al
movzx eax, byte [edx + 0x129]
mov byte [ecx + 4], al
movzx eax, word [edx + 0x128]
mov byte [ecx + 5], al
movzx eax, word [edx + 0x12e]
mov byte [ecx + 6], al
mov eax, dword [edx + 0x12c]
mov byte [ecx + 7], ah
mov eax, dword [edx + 0x12c]
mov byte [ecx + 8], al
movzx eax, word [edx + 0x132]
mov byte [ecx + 9], al
mov eax, dword [edx + 0x130]
mov byte [ecx + 0xa], ah
mov eax, dword [edx + 0x130]
mov byte [ecx + 0xb], al
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x78]
add eax, dword [edx + 4]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._dtls1_write_bytes
test eax, eax
js 0x4e6830
mov edx, dword [esp + 0x3c]
cmp edx, ebx
jne 0x4e6979
cmp edi, 0x16
je 0x4e68a0
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x4e68f2
mov edx, dword [esi + 0x80]
add dword [esi + 0x78], ebx
sub eax, ebx
sub ebx, 0xc
mov dword [esi + 0x74], eax
add ebp, ebx
test eax, eax
mov dword [esp + 0x3c], ebx
mov dword [edx + 0x12c], ebp
mov dword [edx + 0x130], 0
jne 0x4e6644
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x4e6979
mov dword [esp], esi
call sym._SSL_get_wbio
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2b
mov dword [esp], eax
call sym._BIO_ctrl
test eax, eax
jle 0x4e6979
mov dword [esp], esi
call sym._SSL_get_options
test ah, 0x10
jne 0x4e6979
mov dword [esp], esi
call sym._dtls1_query_mtu
test eax, eax
je 0x4e6979
mov eax, dword [esi + 0x74]
mov dword [esp + 0x2c], 0
jmp 0x4e663c
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 0x190]
test ecx, ecx
jne 0x4e67ec
mov ebx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x78]
add ecx, dword [ebx + 4]
test ebp, ebp
je 0x4e6990
add ecx, 0xc
sub edx, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], esi
call sym._ssl3_finish_mac
test eax, eax
je 0x4e6979
mov ebx, dword [esp + 0x3c]
mov eax, dword [esi + 0x74]
cmp eax, ebx
jne 0x4e67f7
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4e692e
mov edx, dword [esi + 0x88]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
add ebx, dword [esi + 0x78]
mov dword [esp + 0x10], ebx
mov edx, dword [esi + 0x6c]
mov edx, dword [edx + 4]
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov edx, dword [esi]
mov dword [esp], 1
mov dword [esp + 4], edx
call eax
mov dword [esi + 0x78], 0
mov dword [esi + 0x74], 0
add esp, 0x4c
pop ebx
mov eax, 1
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x80]
mov ebp, dword [eax + 0x12c]
jmp 0x4e6670
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0x124]
add eax, 0xc
cmp dword [esi + 0x74], eax
je 0x4e659b
add esp, 0x4c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esi], 0x100
je 0x4e68c5
movzx edx, byte [eax + 0x120]
mov byte [ecx], dl
movzx edx, word [eax + 0x126]
mov byte [ecx + 1], dl
mov edx, dword [eax + 0x124]
mov byte [ecx + 2], dh
mov edx, dword [eax + 0x124]
mov byte [ecx + 3], dl
movzx edx, byte [eax + 0x129]
mov byte [ecx + 4], dl
movzx edx, word [eax + 0x128]
mov byte [ecx + 8], 0
mov byte [ecx + 5], dl
xor edx, edx
mov word [ecx + 6], dx
movzx edx, word [eax + 0x126]
mov byte [ecx + 9], dl
mov edx, dword [eax + 0x124]
mov byte [ecx + 0xa], dh
mov eax, dword [eax + 0x124]
mov edx, dword [esp + 0x3c]
mov byte [ecx + 0xb], al
jmp 0x4e68cb
mov eax, dword [esi + 0x3e8]
mov dword [esp], eax
call sym._EVP_CIPHER_CTX_block_size
add eax, eax
mov dword [esp + 0x28], eax
mov ebx, eax
jmp 0x4e661c
mov dword [esi + 0x14], 2
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret