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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
push 0x56cec8
push 0x4cf
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 2
push edi
mov dword [ebp - 0x10], 0
call fcn.004a8a60
push 1
push edi
call fcn.0049d080
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4a157d
push esi
push str.mbedtls_ssl_read_record
push 0x4d4
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8b10
add esp, 0x18
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x80], 0x16
push ebx
mov ebx, dword [edi + 0x78]
je 0x4a1631
cmp dword [edi + 8], 1
jne 0x4a1601
mov ecx, dword [edi + 0xc]
mov eax, dword [edi]
inc ecx
mov dword [edi + 0xc], ecx
mov eax, dword [eax + 0xc4]
test eax, eax
js 0x4a15d1
cmp ecx, eax
jle 0x4a15d1
push str.renegotiation_requested__but_not_honored_by_server
push 0x4e5
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
add esp, 0x14
mov eax, 0xffff8900
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.non_handshake_message_during_renegotiation
push 0x4ea
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
add esp, 0x14
mov dword [edi + 0xb0], 1
mov eax, 0xffff9500
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.bad_server_hello_message
push 0x4f1
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
push 0xa
push 2
push edi
call fcn.0049d5a0
add esp, 0x20
mov eax, 0xffff8900
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
cmp byte [eax + 9], 1
jne 0x4a16a5
cmp byte [ebx], 3
jne 0x4a167c
push str.received_hello_verify_request
push 0x4fe
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 2
push edi
call fcn.004a8a60
push str.__parse_server_hello
push 0x4ff
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 2
push edi
call fcn.004a8a60
push edi
call fcn.004a1080
add esp, 0x2c
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x40]
push dword [eax + 0x218]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [edi + 0x40]
add esp, 4
mov dword [eax + 0x218], 0
mov eax, dword [edi + 0x40]
mov byte [eax + 0x21c], 0
mov eax, dword [edi]
mov cl, byte [eax + 9]
xor eax, eax
cmp cl, 1
sete al
lea eax, [eax*8 + 0x2a]
cmp dword [edi + 0xa8], eax
jb 0x4a22ed
cmp byte [ebx], 2
jne 0x4a22ed
xor eax, eax
cmp cl, 1
push 2
sete al
lea eax, [eax*8 + 4]
add ebx, eax
push ebx
push str.server_hello__version
push 0x522
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8320
mov eax, dword [edi]
movzx eax, byte [eax + 9]
push eax
push ebx
call fcn.0049d320
movzx ecx, ax
add esp, 0x24
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x10], ecx
mov dword [eax + 4], ecx
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
mov edx, dword [eax + 4]
cmp ecx, edx
jl 0x4a22b9
cmp ecx, dword [eax]
jg 0x4a22b9
movzx ecx, byte [ebx + 2]
lea esi, [ebx + 2]
movzx eax, byte [ebx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 5]
shl ecx, 8
or ecx, eax
push ecx
push str.server_hello__current_time:__lu
push 0x539
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
mov eax, dword [edi + 0x40]
movups xmm0, xmmword [esi]
push 0x20
push esi
push str.server_hello__random_bytes
movups xmmword [eax + 0x41c], xmm0
push 0x53f
movups xmm0, xmmword [esi + 0x10]
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
movups xmmword [eax + 0x42c], xmm0
movzx eax, byte [ebx + 0x22]
push edi
mov dword [ebp - 4], eax
call fcn.004a8320
mov esi, dword [ebp - 4]
add esp, 0x34
cmp esi, 0x20
jbe 0x4a17ba
push str.bad_server_hello_message
push 0x543
jmp 0x4a22f7
mov eax, dword [edi]
mov edx, dword [edi + 0xa8]
mov cl, byte [eax + 9]
xor eax, eax
cmp cl, 1
sete al
lea eax, [eax*8 + 0x2b]
add eax, esi
cmp edx, eax
jbe 0x4a1828
movzx edi, byte [esi + ebx + 0x26]
lea eax, [esi + ebx]
mov dword [ebp - 0x18], eax
movzx eax, byte [eax + 0x27]
shl edi, 8
or edi, eax
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
jbe 0x4a17fc
cmp dword [ebp - 8], 4
jb 0x4a1814
xor eax, eax
cmp cl, 1
sete al
lea eax, [eax*8 + 0x2c]
add eax, dword [ebp - 8]
add eax, esi
cmp edx, eax
je 0x4a1823
push str.bad_server_hello_message
push 0x551
jmp 0x4a22f7
lea edx, [esi + ebx]
jmp 0x4a184e
xor eax, eax
cmp cl, 1
sete al
lea eax, [eax*8 + 0x2a]
add eax, esi
cmp edx, eax
jne 0x4a22ad
lea edx, [ebx + esi]
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], edx
movzx ecx, byte [edx + 0x23]
movzx eax, byte [edx + 0x24]
shl ecx, 8
or ecx, eax
mov al, byte [edx + 0x25]
mov dword [ebp - 0xc], ecx
test al, al
je 0x4a1899
movzx eax, al
push eax
push str.server_hello__bad_compression:__d
push 0x570
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
push 0x2f
push 2
push edi
call fcn.0049d5a0
add esp, 0x24
mov eax, 0xffff8f80
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call fcn.004a0340
mov ecx, dword [edi + 0x40]
add esp, 4
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x4a18e6
mov ebx, dword [ebp - 0xc]
push ebx
push str.ciphersuite_info_for__04x_not_found
push 0x57f
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
push 0x50
push 2
push edi
call fcn.0049d5a0
add esp, 0x24
mov eax, 0xffff8f00
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push edi
call fcn.00496640
push esi
push str.server_hello__session_id_len.:__zu
push 0x587
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
push esi
lea eax, [ebx + 0x23]
push eax
push str.server_hello__session_id
push 0x588
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
mov dword [ebp - 0x14], eax
call fcn.004a8320
mov ebx, dword [edi + 0x40]
add esp, 0x3c
cmp byte [ebx], 0
je 0x4a19a5
test esi, esi
je 0x4a19a5
cmp dword [edi + 8], 0
mov ebx, dword [ebp - 0xc]
jne 0x4a19a8
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + 0x10], ebx
jne 0x4a19a8
cmp dword [ecx + 0x14], esi
jne 0x4a19a8
mov edx, dword [ebp - 0x14]
add ecx, 0x18
sub esi, 4
jb 0x4a1965
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4a196a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4a1954
cmp esi, 0xfffffffc
je 0x4a1997
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4a19a0
cmp esi, 0xfffffffd
je 0x4a1997
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4a19a0
cmp esi, 0xfffffffe
je 0x4a1997
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4a19a0
cmp esi, 0xffffffff
je 0x4a1997
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4a19a0
mov dword [edi + 4], 0xc
jmp 0x4a19e1
mov esi, dword [ebp - 4]
jmp 0x4a19a8
mov ebx, dword [ebp - 0xc]
mov eax, dword [edi + 0x40]
inc dword [edi + 4]
push 0
mov byte [eax], 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, dword [edi + 0x3c]
push esi
push dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, dword [edi + 0x3c]
mov dword [eax + 0x10], ebx
mov eax, dword [edi + 0x3c]
mov dword [eax + 0x14], esi
mov eax, dword [edi + 0x3c]
add eax, 0x18
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x10
mov eax, dword [edi + 0x40]
mov edx, 0x564c3c
mov ecx, 0x55cf7c
cmp byte [eax], 0
cmove ecx, edx
push ecx
push str._s_session_has_been_resumed
push 0x5a4
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
push ebx
push str.server_hello__chosen_ciphersuite:__04x
push 0x5a6
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
mov ebx, dword [ebp - 0x18]
movzx eax, byte [ebx + 0x25]
push eax
push str.server_hello__compress_alg.:__d
push 0x5a8
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
mov eax, dword [edi]
add esp, 0x48
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
test edx, edx
je 0x4a1a64
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + 0x10]
lea ecx, [ecx + 4]
cmp edx, eax
je 0x4a1a73
mov edx, dword [ecx]
test edx, edx
jne 0x4a1a57
push str.bad_server_hello_message
push 0x5b2
jmp 0x4a1b9b
push eax
call fcn.004a0340
mov ecx, dword [edi + 0x10]
mov esi, eax
push ecx
push ecx
push esi
push edi
call fcn.00497cb0
add esp, 0x14
test eax, eax
je 0x4a1abe
push str.bad_server_hello_message
push 0x5c6
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
push 0x28
push 2
push edi
call fcn.0049d5a0
add esp, 0x20
mov eax, 0xffff9200
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
push str.server_hello__chosen_ciphersuite:__s
push 0x5cf
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
push dword [ebp - 8]
lea esi, [ebx + 0x28]
push str.server_hello__total_extension_length:__zu
push 0x5e6
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 2
push edi
mov dword [ebp - 4], esi
call fcn.004a8a60
mov edx, dword [ebp - 8]
add esp, 0x30
test edx, edx
je 0x4a1fdf
nop word [eax + eax]
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
shl ecx, 8
or ecx, eax
shl ebx, 8
movzx eax, byte [esi + 3]
or ebx, eax
mov dword [ebp - 0xc], ebx
lea eax, [ebx + 4]
cmp eax, edx
ja 0x4a21ef
cmp ecx, 0x17
ja 0x4a1de6
je 0x4a1dac
lea eax, [ecx - 1]
cmp eax, 0x15
ja case.0x4a1b59.2
movzx eax, byte [eax + 0x4a2334]
jmp dword [eax*4 + 0x4a2320]
push 0x56d178
push 0x609
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
mov eax, dword [edi]
add esp, 0x14
mov al, byte [eax + 0xc]
test al, al
je 0x4a1b91
cmp ebx, 1
jne 0x4a1b91
cmp byte [esi + 4], al
je 0x4a1fb4
push str.non_matching_max_fragment_length_extension
push 0x2b2
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
push 0x2f
push 2
push edi
call fcn.0049d5a0
add esp, 0x20
mov eax, 0xffff9a00
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x56d1b0
push 0x624
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
mov eax, dword [edi]
add esp, 0x14
cmp byte [eax + 0xd], 0
je 0x4a202c
test ebx, ebx
jne 0x4a202c
mov eax, dword [edi + 0x3c]
mov dword [eax + 0x7c], 1
jmp 0x4a1fb4
push 0x56d21c
push 0x64e
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
add esp, 0x14
test ebx, ebx
je 0x4a203b
movzx ecx, byte [esi + 4]
lea eax, [ecx + 1]
cmp eax, ebx
jne 0x4a203b
add esi, 5
test ecx, ecx
je 0x4a1c47
mov dl, byte [esi]
test dl, dl
je 0x4a1c5f
cmp dl, 1
je 0x4a1c5f
inc esi
sub ecx, 1
jne 0x4a1c36
mov esi, 0xffff9200
mov byte [ebp - 0x18], 0x28
mov eax, 0x370
mov ecx, str.no_point_format_in_common
jmp 0x4a204e
mov eax, dword [edi + 0x40]
mov byte [eax + 0xcc], dl
movzx eax, byte [esi]
push eax
push str.point_format_selected:__d
push 0x368
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 4
push edi
call fcn.004a8a60
mov esi, dword [ebp - 4]
add esp, 0x18
jmp 0x4a1fb4
push str.found_alpn_extension
push 0x669
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
mov eax, dword [edi]
add esp, 0x14
mov ebx, dword [eax + 0xb4]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4a2084
mov edx, dword [ebp - 0xc]
cmp edx, 4
jb 0x4a2079
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
lea eax, [edx - 2]
cmp ecx, eax
jne 0x4a2079
movzx edx, byte [esi + 6]
lea eax, [ecx - 1]
mov dword [ebp - 0x1c], edx
cmp edx, eax
jne 0x4a2079
mov ebx, dword [ebx]
test ebx, ebx
je 0x4a1d76
nop dword [eax + eax]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a1d05
mov eax, dword [ebp - 0x1c]
sub ecx, edx
cmp eax, ecx
jne 0x4a1d67
lea ecx, [esi + 7]
mov edx, ebx
mov esi, eax
sub esi, 4
jb 0x4a1d32
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4a1d37
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4a1d21
cmp esi, 0xfffffffc
je 0x4a1d9b
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4a1d64
cmp esi, 0xfffffffd
je 0x4a1d9b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4a1d64
cmp esi, 0xfffffffe
je 0x4a1d9b
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4a1d64
cmp esi, 0xffffffff
je 0x4a1d9b
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4a1d9b
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [eax]
test ebx, ebx
jne 0x4a1d00
push str.ALPN_extension:_no_matching_protocol
push 0x3ee
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
mov esi, 0xffff9200
mov byte [ebp - 0xc], 0x28
jmp 0x4a20a4
mov esi, dword [ebp - 4]
mov dword [edi + 0xf8], ebx
mov ebx, dword [ebp - 0xc]
jmp 0x4a1fb4
push 0x56d1d4
push 0x632
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
mov eax, dword [edi]
add esp, 0x14
cmp byte [eax + 0xe], 0
je 0x4a20c3
test ebx, ebx
jne 0x4a20c3
mov eax, dword [edi + 0x40]
mov byte [eax + 0xc], 1
jmp 0x4a1fb4
cmp ecx, 0x23
je 0x4a1f7f
cmp ecx, 0x36
je 0x4a1ec8
cmp ecx, 0xff01
je 0x4a1e20
push ecx
push str.unknown_extension_found:__u__ignoring_
push 0x67d
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
add esp, 0x18
jmp 0x4a1fb4
push str.found_renegotiation_extension
push 0x5fb
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
add esp, 0x14
mov dword [ebp - 0x10], 1
cmp dword [edi + 8], 0
je 0x4a1eaa
mov edx, dword [edi + 0x108]
lea ecx, [edx + edx]
lea eax, [ecx + 1]
cmp ebx, eax
jne 0x4a1e9b
movzx eax, byte [esi + 4]
cmp eax, ecx
jne 0x4a1e9b
push edx
lea eax, [edi + 0x10c]
push eax
lea eax, [esi + 5]
push eax
call fcn.004bedc0
add esp, 0xc
test eax, eax
jne 0x4a1e9b
mov ecx, dword [edi + 0x108]
lea eax, [edi + 0x118]
push ecx
push eax
lea eax, [ecx + 5]
add eax, esi
push eax
call fcn.004bedc0
add esp, 0xc
test eax, eax
je 0x4a1fb4
mov eax, 0x287
mov ecx, str.non_matching_renegotiation_info
jmp 0x4a20dc
cmp ebx, 1
jne 0x4a20d2
cmp byte [esi + 4], 0
jne 0x4a20d2
mov dword [edi + 0x104], ebx
jmp 0x4a1fb4
push str.found_CID_extension
push 0x616
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
mov eax, dword [edi]
add esp, 0x14
cmp byte [eax + 9], 1
jne 0x4a214d
cmp byte [edi + 0x145], 0
je 0x4a214d
test ebx, ebx
je 0x4a2138
mov cl, byte [esi + 4]
add esi, 5
movzx ebx, cl
cmp ebx, 0x20
ja 0x4a2123
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, ebx
jne 0x4a210e
mov eax, dword [edi + 0x40]
push ebx
push esi
mov byte [eax + 0x248], 1
mov eax, dword [edi + 0x40]
mov byte [eax + 0x269], cl
mov eax, dword [edi + 0x40]
add eax, 0x249
push eax
call sub.VCRUNTIME140.dll_memcpy
push str.Use_of_CID_extension_negotiated
push 0x2f0
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
push ebx
push esi
push str.Server_CID
push 0x2f1
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8320
mov ebx, dword [ebp - 0xc]
add esp, 0x3c
mov esi, dword [ebp - 4]
jmp 0x4a1fb4
push 0x56d1fc
push 0x63f
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 3
push edi
call fcn.004a8a60
mov eax, dword [edi]
add esp, 0x14
cmp byte [eax + 0x11], 0
je 0x4a21b1
test ebx, ebx
jne 0x4a21b1
mov eax, dword [edi + 0x40]
mov byte [eax + 4], 1
mov edx, dword [ebp - 8]
lea esi, [esi + 4]
mov eax, 0xfffffffc
lea esi, [esi + ebx]
sub eax, ebx
mov dword [ebp - 4], esi
add edx, eax
mov dword [ebp - 8], edx
je 0x4a1fd7
cmp edx, 4
jb 0x4a218b
test edx, edx
jne 0x4a1b10
mov eax, dword [edi + 0x40]
cmp byte [eax], 0
je 0x4a21fe
push edi
call fcn.00495870
mov esi, eax
add esp, 4
test esi, esi
je 0x4a21fe
push esi
push str.mbedtls_ssl_derive_keys
push 0x693
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8b10
push 0x50
push 2
push edi
call fcn.0049d5a0
add esp, 0x24
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x301
mov ecx, str.non_matching_encrypt_then_MAC_extension
jmp 0x4a21bb
mov esi, 0xffff8d00
mov byte [ebp - 0x18], 0x32
mov eax, 0x351
mov ecx, str.bad_server_hello_message
push ecx
push eax
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
mov byte [ebp - 0x14], 2
call fcn.004a8a60
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push edi
call fcn.0049d5a0
add esp, 0x20
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0xffff8d00
mov byte [ebp - 0xc], 0x32
jmp 0x4a20a7
push str.non_matching_ALPN_extension
push 0x3b9
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
mov esi, 0xffff8b00
mov byte [ebp - 0xc], 0x6e
add esp, 0x14
push dword [ebp - 0xc]
mov byte [ebp - 8], 2
push dword [ebp - 8]
push edi
call fcn.0049d5a0
add esp, 0xc
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x31b
mov ecx, str.non_matching_extended_master_secret_extension
jmp 0x4a21bb
mov eax, 0x295
mov ecx, str.non_zero_length_renegotiation_info
push ecx
push eax
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
mov byte [ebp - 0x18], 0x28
mov byte [ebp - 0x14], 2
call fcn.004a8a60
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push edi
call fcn.0049d5a0
add esp, 0x20
mov eax, 0xffff9200
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0xffff8d00
mov byte [ebp - 0xc], 0x32
mov eax, 0x2e6
mov ecx, str.CID_extension_invalid
jmp 0x4a2160
mov esi, 0xffff9a00
mov byte [ebp - 0xc], 0x2f
mov eax, 0x2de
mov ecx, str.CID_extension_invalid
jmp 0x4a2160
mov esi, 0xffff8d00
mov byte [ebp - 0xc], 0x32
mov eax, 0x2d3
mov ecx, str.CID_extension_invalid
jmp 0x4a2160
mov esi, 0xffff8b00
mov byte [ebp - 0xc], 0x6e
mov eax, 0x2cb
mov ecx, str.CID_extension_unexpected
push ecx
push eax
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
mov byte [ebp - 8], 2
call fcn.004a8a60
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call fcn.0049d5a0
add esp, 0x20
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.bad_server_hello_message
push 0x685
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
add esp, 0x14
mov eax, 0xffff8d00
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x335
mov ecx, str.non_matching_session_ticket_extension
push ecx
push eax
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
mov esi, edi
mov byte [ebp - 8], 2
mov byte [ebp - 0xc], 0x6e
call fcn.004a8a60
push dword [ebp - 0xc]
push dword [ebp - 8]
push esi
call fcn.0049d5a0
add esp, 0x20
mov eax, 0xffff8b00
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.bad_server_hello_message
push 0x5f1
jmp 0x4a22f7
mov ecx, dword [edi + 0x104]
test ecx, ecx
jne 0x4a221c
mov eax, dword [edi]
cmp byte [eax + 0xb], 2
jne 0x4a221c
mov ecx, 0x6a4
mov edx, str.legacy_renegotiation__breaking_off_handshake
jmp 0x4a2260
cmp dword [edi + 8], 1
jne 0x4a228a
cmp ecx, 1
jne 0x4a2239
cmp dword [ebp - 0x10], 0
jne 0x4a228a
mov ecx, 0x6ad
mov edx, str.renegotiation_info_extension_missing__secure_
jmp 0x4a2260
test ecx, ecx
jne 0x4a228a
mov eax, dword [edi]
cmp byte [eax + 0xb], cl
jne 0x4a2250
mov ecx, 0x6b5
mov edx, str.legacy_renegotiation_not_allowed
jmp 0x4a2260
cmp dword [ebp - 0x10], 1
jne 0x4a228a
mov ecx, 0x6bd
mov edx, str.renegotiation_info_extension_present__legacy_
push edx
push ecx
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
mov eax, edi
push 1
push eax
call fcn.004a8a60
push 0x28
push 2
push edi
call fcn.0049d5a0
add esp, 0x20
mov eax, 0xffff9200
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.__parse_server_hello
push 0x6cb
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 2
push edi
call fcn.004a8a60
add esp, 0x14
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.bad_server_hello_message
push 0x55f
jmp 0x4a22f7
push dword [eax]
push ecx
push edx
push str.server_version_out_of_bounds____min:__0x_x___server:__0x_x___max:__0x_x_
push 0x52d
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
push 0x46
push 2
push edi
call fcn.0049d5a0
add esp, 0x2c
mov eax, 0xffff9180
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.bad_server_hello_message
push 0x50f
push str.D:UsersphiliDropboxDevelopmentlibmbedtlsmbedtlslibrary_ssl_tls12_client.c
push 1
push edi
call fcn.004a8a60
push 0x32
push 2
push edi
call fcn.0049d5a0
add esp, 0x20
mov eax, 0xffff8d00
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret