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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0xc
pop edi
mov esi, ecx
mov ebp, str.srclibmbedtlslibrary_ssl_cli.c
push 4
pop ecx
push 0x5a739c
mov eax, dword [esi]
push 0x725
push ebp
push 2
cmp byte [eax + 5], 1
push esi
cmovne edi, ecx
add edi, dword [esi + 0x78]
call fcn.004c6a21
mov eax, dword [esi]
add esp, 0x14
cmp byte [eax + 5], 1
push 0xf
pop ecx
push 7
pop edx
cmovne ecx, edx
cmp ecx, dword [esi + 0x84]
jbe 0x4d4797
push str.incoming_HelloVerifyRequest_message_is_too_short
push 0x72e
push ebp
push 1
push esi
call fcn.004c6a21
add esp, 0x14
mov dl, 2
mov ecx, esi
push 0x32
call fcn.004c237b
mov eax, 0xffff8d00
jmp 0x4d48f4
push 2
push edi
push str.server_version
push 0x73a
push ebp
push 3
pop edx
mov ecx, esi
call fcn.004c6b7e
mov ebx, dword [esi]
lea edx, [esp + 0x2c]
add esp, 0x14
lea ecx, [esp + 0x14]
movzx eax, byte [ebx + 5]
push edi
push eax
call fcn.004c2e3d
cmp dword [esp + 0x1c], 3
pop ecx
pop ecx
jl 0x4d48ce
cmp dword [esp + 0x18], 2
jl 0x4d48ce
movzx eax, byte [ebx]
cmp dword [esp + 0x14], eax
jg 0x4d48ce
movzx eax, byte [ebx + 1]
cmp dword [esp + 0x18], eax
jg 0x4d48ce
mov al, byte [edi + 2]
add edi, 3
movzx ebx, al
mov byte [esp + 0x13], al
mov eax, dword [esi + 0x84]
sub eax, edi
add eax, dword [esi + 0x78]
cmp eax, ebx
jge 0x4d4825
push str.cookie_length_does_not_match_incoming_message_size
push 0x753
jmp 0x4d4776
push ebx
push edi
push str.cookie
push 0x758
push ebp
push 3
pop edx
mov ecx, esi
call fcn.004c6b7e
mov ecx, dword [esi + 0x44]
add esp, 0x14
mov ecx, dword [ecx + 0x1f8]
call fcn.004ebe45
mov ecx, ebx
call fcn.004ebeae
mov ecx, dword [esi + 0x44]
push ebx
mov dword [ecx + 0x1f8], eax
mov eax, dword [esi + 0x44]
mov eax, dword [eax + 0x1f8]
test eax, eax
jne 0x4d4888
push str.alloc_failed___d_bytes_
push 0x75f
push ebp
push 1
push esi
call fcn.004c6a21
add esp, 0x18
mov eax, 0xffff8100
jmp 0x4d48f5
push edi
push eax
call fcn.0051c650
mov eax, dword [esi + 0x44]
add esp, 0xc
mov cl, byte [esp + 0x13]
mov byte [eax + 0x1fc], cl
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004b7fe1
mov ecx, esi
call fcn.004c017e
push str.__parse_hello_verify_request
push 0x76c
push ebp
push 2
push esi
call fcn.004c6a21
add esp, 0x14
xor eax, eax
jmp 0x4d48f5
push str.bad_server_version
push 0x747
push ebp
push 1
push esi
call fcn.004c6a21
add esp, 0x14
mov dl, 2
mov ecx, esi
push 0x46
call fcn.004c237b
mov eax, 0xffff9180
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
sub esp, 0x1c
and dword [esp + 0x14], 0
push ebx
push ebp
push esi
push edi
push 0x5a7478
push 0x77f
mov ebx, str.srclibmbedtlslibrary_ssl_cli.c
mov edi, ecx
push ebx
push 2
push edi
call fcn.004c6a21
add esp, 0x14
xor edx, edx
inc edx
mov ecx, edi
call fcn.004c13ab
mov ebp, eax
test ebp, ebp
je 0x4d4958
push ebp
push str.mbedtls_ssl_read_record
xor esi, esi
mov ecx, edi
push 0x784
push ebx
lea edx, [esi + 1]
call fcn.004c6af7
add esp, 0x10
mov eax, ebp
jmp 0x4d5202
mov ebp, dword [edi + 0x78]
xor ecx, ecx
inc ecx
cmp dword [edi + 0x80], 0x16
je 0x4d49f8
cmp dword [edi + 8], ecx
jne 0x4d49ce
mov edx, dword [edi + 0xc]
mov eax, dword [edi]
inc edx
mov dword [edi + 0xc], edx
mov eax, dword [eax + 0xb4]
test eax, eax
js 0x4d49a6
cmp edx, eax
jle 0x4d49a6
push str.renegotiation_requested__but_not_honored_by_server
push 0x795
push ebx
push ecx
push edi
call fcn.004c6a21
add esp, 0x14
mov eax, 0xffff8900
jmp 0x4d5202
push str.non_handshake_message_during_renegotiation
push 0x79a
push ebx
push ecx
push edi
call fcn.004c6a21
xor esi, esi
add esp, 0x14
inc esi
mov eax, 0xffff9500
mov dword [edi + 0xb0], esi
jmp 0x4d5202
push str.bad_server_hello_message
push 0x7a1
push ebx
push ecx
push edi
call fcn.004c6a21
add esp, 0x14
mov dl, 2
mov ecx, edi
push 0xa
call fcn.004c237b
mov eax, 0xffff8900
jmp 0x4d5201
mov eax, dword [edi]
cmp byte [eax + 5], cl
jne 0x4d4a62
cmp byte [ebp], 3
jne 0x4d4a3f
push str.received_hello_verify_request
push 0x7ae
push ebx
push 2
push edi
call fcn.004c6a21
add esp, 0x14
push str.__parse_server_hello
push 0x7af
push ebx
push 2
push edi
call fcn.004c6a21
add esp, 0x14
mov ecx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
jmp 0x4d471f
mov ecx, dword [edi + 0x44]
mov ecx, dword [ecx + 0x1f8]
call fcn.004ebe45
mov eax, dword [edi + 0x44]
xor ecx, ecx
mov dword [eax + 0x1f8], ecx
mov eax, dword [edi + 0x44]
mov byte [eax + 0x1fc], cl
inc ecx
mov eax, dword [edi]
push 0x32
mov dl, byte [eax + 5]
pop eax
push 0x2a
cmp dl, cl
pop esi
cmovne eax, esi
cmp dword [edi + 0xa8], eax
jb 0x4d51dc
cmp byte [ebp], 2
jne 0x4d51dc
push 0xc
pop eax
push 4
pop esi
cmp dl, cl
mov ecx, edi
push 2
cmovne eax, esi
add ebp, eax
push ebp
push str.server_hello__version
push 0x7d2
push ebx
push 3
pop edx
mov dword [esp + 0x28], ebp
call fcn.004c6b7e
mov eax, dword [edi]
lea edx, [edi + 0x14]
add esp, 0x14
lea ecx, [edi + 0x10]
movzx eax, byte [eax + 5]
push ebp
push eax
call fcn.004c2e3d
mov al, byte [edx]
pop ecx
pop ecx
mov ecx, dword [edi + 0x40]
mov byte [ecx + 2], al
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
movzx eax, byte [ecx + 2]
mov dword [esp + 0x28], eax
cmp edx, eax
jl 0x4d519c
movzx eax, byte [ecx + 3]
cmp dword [edi + 0x14], eax
jl 0x4d519c
movzx eax, byte [ecx]
cmp edx, eax
jg 0x4d519c
movzx eax, byte [ecx + 1]
cmp dword [edi + 0x14], eax
jg 0x4d519c
movzx eax, byte [ebp + 3]
lea esi, [ebp + 2]
movzx ecx, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 5]
shl ecx, 8
or ecx, eax
push ecx
push str.server_hello__current_time:__lu
push 0x7ee
push ebx
push 3
push edi
call fcn.004c6a21
mov eax, dword [edi + 0x44]
push 0x20
add eax, 0x3d0
push esi
push eax
call fcn.0051c650
movzx eax, byte [ebp + 0x22]
add esp, 0x24
mov ecx, edi
mov dword [esp + 0x20], eax
push 0x20
push esi
push str.server_hello__random_bytes
push 0x7f4
push ebx
push 3
pop edx
call fcn.004c6b7e
mov edx, dword [esp + 0x34]
add esp, 0x14
cmp edx, 0x20
jbe 0x4d4b94
push str.bad_server_hello_message
xor esi, esi
push 0x7f8
inc esi
push ebx
push esi
jmp 0x4d51e8
mov eax, dword [edi]
xor ecx, ecx
mov esi, dword [edi + 0xa8]
inc ecx
push 0x33
mov dword [esp + 0x2c], 0x2b
mov al, byte [eax + 5]
mov byte [esp + 0x17], al
cmp byte [esp + 0x17], cl
pop eax
cmovne eax, dword [esp + 0x28]
add eax, edx
cmp esi, eax
jbe 0x4d4c14
lea eax, [edx + ebp]
movzx ebp, byte [eax + 0x26]
mov dword [esp + 0x18], eax
movzx eax, byte [eax + 0x27]
shl ebp, 8
or ebp, eax
mov dword [esp + 0x1c], ebp
jbe 0x4d4bdf
cmp ebp, 4
jb 0x4d4bfb
cmp byte [esp + 0x13], cl
push 0x34
pop eax
mov dword [esp + 0x28], 0x2c
cmovne eax, dword [esp + 0x28]
add eax, ebp
add eax, edx
cmp esi, eax
je 0x4d4c0a
push str.bad_server_hello_message
push 0x806
jmp 0x4d51e6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x4d4c3c
cmp byte [esp + 0x13], cl
push 0x32
pop eax
push 0x2a
pop ebp
cmovne eax, ebp
add eax, edx
cmp esi, eax
jne 0x4d5190
mov esi, dword [esp + 0x14]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
lea eax, [edx + esi]
mov dword [esp + 0x18], eax
movzx edx, byte [eax + 0x23]
movzx eax, byte [eax + 0x24]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov al, byte [eax + 0x25]
test al, al
je 0x4d4c7b
movzx eax, al
push eax
push str.server_hello__bad_compression:__d
push 0x825
push ebx
push ecx
push edi
call fcn.004c6a21
add esp, 0x18
mov esi, 0xffff8f80
jmp 0x4d4e74
mov ecx, edx
call fcn.004c4eb5
mov ecx, dword [edi + 0x44]
mov dword [ecx + 0x10], eax
mov ecx, dword [edi + 0x44]
mov edx, dword [ecx + 0x10]
test edx, edx
jne 0x4d4cb9
mov ecx, dword [esp + 0x14]
xor esi, esi
push ecx
push str.ciphersuite_info_for__04x_not_found
push 0x834
push ebx
inc esi
push esi
push edi
call fcn.004c6a21
add esp, 0x18
mov esi, 0xffff8f00
jmp 0x4d4d83
cmp dword [edx + 0xc], 5
mov eax, 0x4b808a
mov dword [esp + 0x28], 0x4b806e
cmovne eax, dword [esp + 0x28]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x20]
push eax
push str.server_hello__session_id_len.:__zu
push 0x83c
push ebx
push 3
push edi
call fcn.004c6a21
lea eax, [esi + 0x23]
mov ecx, edi
mov esi, dword [esp + 0x38]
push esi
push eax
push str.server_hello__session_id
push 0x83d
push ebx
push 3
pop edx
mov dword [esp + 0x54], eax
call fcn.004c6b7e
mov eax, dword [edi + 0x44]
add esp, 0x2c
cmp byte [eax + 2], 0
je 0x4d4d95
test esi, esi
je 0x4d4d95
cmp dword [edi + 8], 0
jne 0x4d4d95
mov ecx, dword [edi + 0x40]
mov eax, dword [esp + 0x14]
cmp dword [ecx + 0x10], eax
jne 0x4d4d95
cmp dword [ecx + 0x14], 0
jne 0x4d4d95
cmp dword [ecx + 0x18], esi
jne 0x4d4d95
push esi
push dword [esp + 0x2c]
lea eax, [ecx + 0x1c]
push eax
call fcn.0051cbd0
add esp, 0xc
test eax, eax
jne 0x4d4d95
mov ecx, edi
mov dword [edi + 4], 0xc
call fcn.004b70da
mov dword [esp + 0x28], eax
test eax, eax
je 0x4d4ddb
push eax
push str.mbedtls_ssl_derive_keys
xor esi, esi
mov ecx, edi
push 0x85b
push ebx
lea edx, [esi + 1]
call fcn.004c6af7
mov esi, dword [esp + 0x38]
add esp, 0x10
push 0x50
mov dl, 2
mov ecx, edi
call fcn.004c237b
mov eax, esi
jmp 0x4d5201
mov eax, dword [edi + 0x44]
inc dword [edi + 4]
push 0
mov byte [eax + 2], 0
call fcn.00530c3c
pop ecx
mov ecx, dword [edi + 0x40]
push esi
push dword [esp + 0x2c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, dword [edi + 0x40]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x40]
and dword [eax + 0x14], 0
mov eax, dword [edi + 0x40]
mov dword [eax + 0x18], esi
mov eax, dword [edi + 0x40]
add eax, 0x1c
push eax
call fcn.0051c650
add esp, 0xc
mov eax, dword [edi + 0x44]
mov edx, 0x58b958
mov ecx, 0x586f18
cmp byte [eax + 2], 0
cmove ecx, edx
push ecx
push str._s_session_has_been_resumed
push 0x865
push ebx
push 3
push edi
call fcn.004c6a21
push dword [esp + 0x2c]
push str.server_hello__chosen_ciphersuite:__04x
push 0x867
push ebx
push 3
push edi
call fcn.004c6a21
mov esi, dword [esp + 0x48]
movzx eax, byte [esi + 0x25]
push eax
push str.server_hello__compress_alg.:__d
push 0x869
push ebx
push 3
push edi
call fcn.004c6a21
mov eax, dword [edi]
add esp, 0x48
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
test edx, edx
je 0x4d4e57
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x10]
lea ecx, [ecx + 4]
cmp edx, eax
je 0x4d4e7b
mov edx, dword [ecx]
test edx, edx
jne 0x4d4e4a
push str.bad_server_hello_message
push 0x873
xor esi, esi
push ebx
inc esi
push esi
push edi
call fcn.004c6a21
add esp, 0x14
mov esi, 0xffff9a00
push 0x2f
jmp 0x4d4d85
mov ecx, eax
call fcn.004c4eb5
push dword [edi + 0x14]
mov edx, edi
mov dword [esp + 0x2c], eax
push dword [edi + 0x14]
mov ecx, eax
call fcn.004d3bb8
pop ecx
pop ecx
test eax, eax
je 0x4d4ec8
push str.bad_server_hello_message
push 0x887
xor esi, esi
push ebx
inc esi
push esi
push edi
call fcn.004c6a21
add esp, 0x14
mov dl, 2
mov ecx, edi
push 0x28
call fcn.004c237b
mov eax, 0xffff9200
jmp 0x4d5201
mov eax, dword [esp + 0x28]
push dword [eax + 4]
push str.server_hello__chosen_ciphersuite:__s
push 0x890
push ebx
push 3
push edi
call fcn.004c6a21
mov eax, dword [edi + 0x40]
lea edx, [esi + 0x28]
push ebp
push str.server_hello__total_extension_length:__zu
push 0x8a9
and dword [eax + 0x14], 0
push ebx
push 2
push edi
mov dword [esp + 0x44], edx
call fcn.004c6a21
add esp, 0x30
test ebp, ebp
je 0x4d50d5
mov ecx, dword [esp + 0x1c]
xor esi, esi
mov edx, dword [esp + 0x14]
inc esi
movzx ebp, byte [edx]
movzx eax, byte [edx + 1]
shl ebp, 8
or ebp, eax
movzx eax, byte [edx + 3]
mov dword [esp + 0x28], ebp
movzx ebp, byte [edx + 2]
shl ebp, 8
or ebp, eax
lea eax, [ebp + 4]
cmp eax, ecx
ja 0x4d5115
mov ecx, dword [esp + 0x28]
mov eax, ecx
sub eax, 1
je 0x4d507b
sub eax, 0xa
je 0x4d5054
sub eax, 5
je 0x4d502d
sub eax, 6
je 0x4d500d
sub eax, 1
je 0x4d4fea
sub eax, 0xc
je 0x4d4fc7
sub eax, 0xfede
je 0x4d4f99
push ecx
push str.unknown_extension_found:__u__ignoring_
push 0x940
push ebx
push 3
push edi
call fcn.004c6a21
add esp, 0x18
jmp 0x4d50a9
push str.found_renegotiation_extension
push 0x8be
push ebx
push 3
push edi
call fcn.004c6a21
mov edx, dword [esp + 0x28]
add esp, 0x14
add edx, 4
mov dword [esp + 0x24], esi
mov ecx, edi
push ebp
call fcn.004d43b0
jmp 0x4d50a0
push str.found_session_ticket_extension
push 0x902
push ebx
push 3
push edi
call fcn.004c6a21
add esp, 0x14
mov ecx, edi
push ebp
call fcn.004d4545
jmp 0x4d50a0
push str.found_extended_master_secret_extension
push 0x8f5
push ebx
push 3
push edi
call fcn.004c6a21
add esp, 0x14
mov ecx, edi
push ebp
call fcn.004d44f9
jmp 0x4d50a0
push str.found_encrypt_then_mac_extension
push 0x8e7
push ebx
push 3
push edi
call fcn.004c6a21
add esp, 0x14
mov ecx, edi
push ebp
call fcn.004d44a7
jmp 0x4d50a0
push str.found_alpn_extension
push 0x92c
push ebx
push 3
push edi
call fcn.004c6a21
mov edx, dword [esp + 0x28]
add esp, 0x14
add edx, 4
mov ecx, edi
push ebp
call fcn.004d4643
jmp 0x4d50a0
push str.found_supported_point_formats_extension
push 0x911
push ebx
push 3
push edi
call fcn.004c6a21
mov edx, dword [esp + 0x28]
add esp, 0x14
add edx, 4
mov ecx, edi
push ebp
call fcn.004d4591
jmp 0x4d50a0
push str.found_max_fragment_length_extension
push 0x8cc
push ebx
push 3
push edi
call fcn.004c6a21
mov edx, dword [esp + 0x28]
add esp, 0x14
add edx, 4
mov ecx, edi
push ebp
call fcn.004d445d
pop ecx
test eax, eax
jne 0x4d5202
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0xfffffffffffffffc
pop eax
sub eax, ebp
lea edx, [edx + 4]
add ecx, eax
lea edx, [edx + ebp]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
je 0x4d50cd
cmp ecx, 4
jb 0x4d50f6
test ecx, ecx
jne 0x4d4f1a
mov edx, dword [edi + 0x104]
test edx, edx
jne 0x4d5124
mov eax, dword [edi]
cmp byte [eax + 7], 2
jne 0x4d5124
xor ecx, ecx
mov edx, 0x955
mov esi, str.legacy_renegotiation__breaking_off_handshake
inc ecx
jmp 0x4d516a
push str.bad_server_hello_message
push 0x948
push ebx
push esi
push edi
call fcn.004c6a21
add esp, 0x14
mov eax, 0xffff8d00
jmp 0x4d5202
push str.bad_server_hello_message
push 0x8b4
jmp 0x4d4b8d
xor ecx, ecx
inc ecx
cmp dword [edi + 8], ecx
jne 0x4d5176
cmp edx, ecx
jne 0x4d5143
cmp dword [esp + 0x24], 0
jne 0x4d5176
mov edx, 0x95e
mov esi, str.renegotiation_info_extension_missing__secure_
jmp 0x4d516a
test edx, edx
jne 0x4d5176
mov eax, dword [edi]
cmp byte [eax + 7], dl
jne 0x4d515a
mov edx, 0x966
mov esi, str.legacy_renegotiation_not_allowed
jmp 0x4d516a
cmp dword [esp + 0x24], ecx
jne 0x4d5176
mov edx, 0x96e
mov esi, str.renegotiation_info_extension_present__legacy_
push esi
push edx
push ebx
mov eax, edi
push ecx
push eax
jmp 0x4d4eab
push str.__parse_server_hello
push 0x97c
push ebx
push 2
push edi
call fcn.004c6a21
add esp, 0x14
xor eax, eax
jmp 0x4d5202
push str.bad_server_hello_message
push 0x814
jmp 0x4d51e6
movzx eax, byte [ecx + 1]
xor esi, esi
push eax
movzx eax, byte [ecx]
inc esi
push eax
push dword [edi + 0x14]
movzx eax, byte [ecx + 3]
push edx
push eax
push dword [esp + 0x3c]
push str.server_version_out_of_bounds____min:___d:_d___server:___d:_d___max:___d:_d_
push 0x7e2
push ebx
push esi
push edi
call fcn.004c6a21
add esp, 0x2c
mov dl, 2
mov ecx, edi
push 0x46
call fcn.004c237b
mov eax, 0xffff9180
jmp 0x4d5201
push str.bad_server_hello_message
push 0x7bf
push ebx
push ecx
push edi
call fcn.004c6a21
add esp, 0x14
mov dl, 2
mov ecx, edi
push 0x32
call fcn.004c237b
mov eax, 0xffff8d00
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret