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

Disassembly:
sub esp, 0xc
and dword [esp + 4], 0
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x14], edx
push edi
cmp dword [esi + 0x80], 0x16
je 0x4b78ea
push str.bad_certificate_message
push 0x72e
push str.srclibmbedtlslibrary_ssl_tls.c
push 1
push esi
call fcn.004c6a21
add esp, 0x14
mov ecx, esi
mov dl, 2
push 0xa
call fcn.004c237b
mov eax, 0xffff8900
jmp 0x4b7b43
mov ebx, dword [esi + 0x78]
cmp byte [ebx], 0xb
jne 0x4b78d7
mov eax, dword [esi]
mov edx, dword [esi + 0xa8]
push 0x12
mov cl, byte [eax + 5]
pop eax
push 0xa
cmp cl, 1
mov byte [esp + 0x17], cl
pop edi
cmovne eax, edi
cmp edx, eax
jae 0x4b7920
push str.bad_certificate_message
push 0x73d
jmp 0x4b7b23
push 0xc
pop edi
push 4
cmp cl, 1
pop eax
cmovne edi, eax
cmp byte [ebx + edi], 0
jne 0x4b7b19
movzx ecx, byte [ebx + edi + 1]
movzx eax, byte [ebx + edi + 2]
shl ecx, 8
or ecx, eax
cmp byte [esp + 0x13], 1
push 0xf
pop eax
push 7
pop ebx
cmovne eax, ebx
add ecx, eax
cmp edx, ecx
jne 0x4b7b19
add edi, 3
jmp 0x4b7a3b
mov eax, dword [esi + 0x78]
cmp byte [eax + edi], 0
jne 0x4b7ada
movzx ebx, byte [eax + edi + 1]
movzx eax, byte [eax + edi + 2]
shl ebx, 8
or ebx, eax
cmp ebx, 0x80
jb 0x4b7ace
lea edi, [ebx + ebp]
cmp edi, edx
ja 0x4b7ace
mov ecx, dword [esp + 0x14]
mov eax, ecx
inc ecx
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x4b7a02
mov eax, dword [esi]
cmp byte [eax + 4], 0
jne 0x4b7a02
cmp dword [esi + 8], 1
jne 0x4b7a02
push str.Check_that_peer_CRT_hasnt_changed_during_renegotiation
push 0x784
push str.srclibmbedtlslibrary_ssl_tls.c
push 3
push esi
call fcn.004c6a21
mov eax, dword [esi + 0x3c]
add esp, 0x14
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x4b7a5d
cmp dword [ecx + 8], ebx
jne 0x4b7a5d
mov eax, dword [esi + 0x78]
push dword [ecx + 8]
add eax, ebp
push eax
push dword [ecx + 0xc]
call fcn.0051cbd0
add esp, 0xc
test eax, eax
jne 0x4b7a5d
mov ecx, dword [esi + 0x3c]
call fcn.004b769f
mov edx, dword [esi + 0x78]
sub esp, 0xc
mov ecx, dword [esp + 0x24]
add edx, ebp
push ebx
call fcn.004bb239
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffd780
je 0x4b7a9a
cmp ebx, 0xffffd9d2
je 0x4b7a35
cmp ebx, 0xffffda80
je 0x4b7a93
test ebx, ebx
jne 0x4b7a8c
mov edx, dword [esi + 0xa8]
cmp edi, edx
jae 0x4b7af8
lea ebp, [edi + 3]
cmp ebp, edx
jbe 0x4b7965
push str.bad_certificate_message
push 0x75b
jmp 0x4b7b23
push str.new_server_cert_during_renegotiation
push 0x789
push str.srclibmbedtlslibrary_ssl_tls.c
push 1
push esi
call fcn.004c6a21
add esp, 0x14
push 0x31
mov dl, 2
mov ecx, esi
call fcn.004c237b
mov eax, 0xffff8600
jmp 0x4b7b43
mov byte [esp + 0x14], 0x2a
jmp 0x4b7a9f
mov byte [esp + 0x14], 0x2b
jmp 0x4b7a9f
mov byte [esp + 0x14], 0x50
push dword [esp + 0x14]
mov dl, 2
mov ecx, esi
call fcn.004c237b
pop ecx
push ebx
push str._mbedtls_x509_crt_parse_der
xor edx, edx
mov ecx, esi
push 0x7b1
push str.srclibmbedtlslibrary_ssl_tls.c
inc edx
call fcn.004c6af7
add esp, 0x10
mov eax, ebx
jmp 0x4b7b44
push str.bad_certificate_message
push 0x773
jmp 0x4b7b23
push str.bad_certificate_message
push 0x765
push str.srclibmbedtlslibrary_ssl_tls.c
push 1
push esi
call fcn.004c6a21
add esp, 0x14
push 0x2b
jmp 0x4b7a79
push dword [esp + 0x18]
mov ecx, esi
push str.peer_certificate
push 0x7b8
push str.srclibmbedtlslibrary_ssl_tls.c
call fcn.004c7161
add esp, 0x10
xor eax, eax
jmp 0x4b7b44
push str.bad_certificate_message
push 0x74d
push str.srclibmbedtlslibrary_ssl_tls.c
push 1
push esi
call fcn.004c6a21
add esp, 0x14
mov dl, 2
mov ecx, esi
push 0x32
call fcn.004c237b
mov eax, 0xffff8d00
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret