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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x541a34]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x52fac0
push 0x896
push str.....library_ssl_cli.c
mov eax, dword [esi + 0x4c]
push 2
push esi
mov ebx, dword [eax]
call fcn.00416cf0
mov eax, dword [ebx + 0x10]
add esp, 0x14
cmp eax, 1
jne 0x421025
push str.__skip_parse_server_key_exchange
push 0x89b
jmp 0x421668
cmp eax, 9
je 0x42161b
cmp eax, 0xa
je 0x42161b
mov ecx, esi
call fcn.00408e60
mov edi, eax
test edi, edi
je 0x42107a
push edi
push str.mbedtls_ssl_read_record
push 0x8b9
push str.....library_ssl_cli.c
mov edx, 1
mov ecx, esi
call fcn.00416d80
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004d219c
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x78], 0x16
je 0x4210b4
push str.bad_server_key_exchange_message
push 0x8bf
push str.....library_ssl_cli.c
push 1
push esi
call fcn.00416cf0
add esp, 0x14
mov eax, 0xffff8900
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004d219c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x70]
cmp byte [ecx], 0xc
je 0x4210fe
mov eax, dword [ebx + 0x10]
cmp eax, 5
je 0x4210d5
cmp eax, 7
je 0x4210d5
push str.bad_server_key_exchange_message
push 0x8d0
jmp 0x42108a
mov dword [esi + 0xa8], 1
inc dword [esi + 4]
push str.__parse_server_key_exchange
push 0x9d4
push str.....library_ssl_cli.c
push 2
push esi
call fcn.00416cf0
jmp 0x421678
mov eax, dword [esi]
mov edx, 3
movzx edi, byte [eax + 0xcc]
mov eax, dword [esi + 0xa0]
and edi, 2
or edi, 1
add eax, ecx
shl edi, 2
add edi, ecx
mov dword [esp + 0x14], eax
sub eax, edi
mov dword [esp + 0x10], edi
push eax
push edi
push str.server_key_exchange
push 0x8d6
push str.....library_ssl_cli.c
mov ecx, esi
call fcn.00416e10
mov eax, dword [ebx + 0x10]
add esp, 0x14
cmp eax, 5
je 0x42115b
cmp eax, 7
je 0x42115b
cmp eax, 6
je 0x42115b
cmp eax, 8
jne 0x4211a9
push dword [esp + 0x14]
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.00420b00
add esp, 4
test eax, eax
je 0x4211a5
push str.bad_server_key_exchange_message
push 0x8e0
push str.....library_ssl_cli.c
push 1
push esi
call fcn.00416cf0
add esp, 0x14
mov eax, 0xffff8500
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004d219c
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
cmp eax, 5
je 0x421259
cmp eax, 7
je 0x421259
cmp eax, 2
je 0x421230
cmp eax, 6
je 0x421230
cmp eax, 3
je 0x42120b
cmp eax, 8
je 0x42120b
cmp eax, 4
je 0x42120b
push str.should_never_happen
push 0x91b
push str.....library_ssl_cli.c
push 1
push esi
call fcn.00416cf0
add esp, 0x14
mov eax, 0xffff9400
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004d219c
mov esp, ebp
pop ebp
ret
push dword [esp + 0x14]
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.00420a20
add esp, 4
test eax, eax
je 0x421255
push str.bad_server_key_exchange_message
push 0x905
jmp 0x42117b
push dword [esp + 0x14]
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.00420880
add esp, 4
test eax, eax
je 0x421255
push str.bad_server_key_exchange_message
push 0x8f5
jmp 0x42117b
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
cmp eax, 2
je 0x42126f
cmp eax, 3
je 0x42126f
cmp eax, 4
jne 0x4210df
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
movzx eax, byte [eax + 0xcc]
and eax, 2
or eax, 1
shl eax, 2
add ecx, eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
cmp eax, 3
jne 0x4212ff
lea eax, [esp + 0x18]
mov ecx, esi
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
lea edx, [esp + 0x1c]
call fcn.00420d80
add esp, 0xc
test eax, eax
je 0x4212d3
push str.bad_server_key_exchange_message
push 0x936
jmp 0x42117b
mov ecx, ebx
call fcn.0041e850
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
cmp ecx, eax
je 0x4212f5
push str.bad_server_key_exchange_message
push 0x93c
jmp 0x42117b
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
jmp 0x42131a
jge 0x42160c
mov ecx, ebx
call fcn.0041e850
mov ecx, 4
mov dword [esp + 0x18], eax
cmp eax, ecx
cmove edx, ecx
movzx ebx, byte [edi]
movzx eax, byte [edi + 1]
add edi, 2
shl ebx, 8
or ebx, eax
mov dword [esp + 0x10], edx
lea eax, [ebx + edi]
cmp dword [esp + 0x14], eax
je 0x421345
push str.bad_server_key_exchange_message
push 0x95b
jmp 0x42117b
push ebx
push edi
push str.signature
push 0x95f
push str.....library_ssl_cli.c
mov edx, 3
mov ecx, esi
call fcn.00416e10
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
jne 0x421445
push 0x58
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004d6720
add esp, 0xc
lea eax, [esp + 0x90]
push 0x5c
push 0
push eax
call fcn.004d6720
add esp, 0xc
mov dword [esp + 0x1c], 0x24
lea ecx, [esp + 0x38]
call fcn.004152c0
mov edx, dword [esi + 0x3c]
push 0x40
add edx, 0x41c
call fcn.00415ba0
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
add esp, 4
push dword [esp + 0x20]
call fcn.00415ba0
add esp, 4
lea edx, [esp + 0xf0]
lea ecx, [esp + 0x38]
call fcn.00415c50
lea ecx, [esp + 0x90]
call fcn.00418100
mov edx, dword [esi + 0x3c]
push 0x40
add edx, 0x41c
call fcn.00419280
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x94]
add esp, 4
push dword [esp + 0x20]
call fcn.00419280
add esp, 4
lea edx, [esp + 0x100]
lea ecx, [esp + 0x90]
call fcn.00419330
lea ecx, [esp + 0x38]
call fcn.004152a0
lea ecx, [esp + 0x90]
call fcn.004180e0
mov eax, 0x24
jmp 0x421518
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
mov ecx, eax
movq qword [esp + 0x28], xmm0
mov dword [esp + 0x1c], 0
call fcn.00410800
push 0
mov edx, eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x2c]
call fcn.004108c0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4214b9
push eax
push str.mbedtls_md_setup
push 0x9a2
push str.....library_ssl_cli.c
mov edx, 1
mov ecx, esi
call fcn.00416d80
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004d219c
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
call fcn.00410920
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0x28]
push 0x40
add edx, 0x41c
call fcn.00410940
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
add esp, 4
push dword [esp + 0x20]
call fcn.00410940
add esp, 4
lea edx, [esp + 0xf0]
lea ecx, [esp + 0x28]
call fcn.00410970
lea ecx, [esp + 0x28]
call fcn.00410860
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x421512
xor al, al
jmp 0x421515
mov al, byte [eax + 8]
movzx eax, al
push eax
lea eax, [esp + 0xf4]
mov edx, 3
push eax
push str.parameters_hash
push 0x9b5
push str.....library_ssl_cli.c
mov ecx, esi
call fcn.00416e10
mov eax, dword [esi + 0x38]
add esp, 0x14
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x42155f
push str.certificate_required
push 0x9b9
push str.....library_ssl_cli.c
push 2
jmp 0x421091
mov edx, dword [esp + 0x18]
add ecx, 0xbc
call fcn.0040df60
test eax, eax
jne 0x4215a6
push str.bad_server_key_exchange_message
push 0x9c2
push str.....library_ssl_cli.c
push 1
push esi
call fcn.00416cf0
add esp, 0x14
mov eax, 0xffff9300
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004d219c
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xf0]
push ebx
push edi
push dword [esp + 0x24]
push eax
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x64]
add ecx, 0xbc
call fcn.0040df80
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4210df
push edi
push str.mbedtls_pk_verify
push 0x9c9
push str.....library_ssl_cli.c
mov edx, 1
mov ecx, esi
call fcn.00416d80
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004d219c
mov esp, ebp
pop ebp
ret
push str.should_never_happen
push 0x94f
jmp 0x4211e1
mov ecx, esi
call fcn.00420ec0
mov edi, eax
test edi, edi
je 0x42165e
push edi
push str.ssl_get_ecdh_params_from_cert
push 0x8aa
push str.....library_ssl_cli.c
mov edx, 1
mov ecx, esi
call fcn.00416d80
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004d219c
mov esp, ebp
pop ebp
ret
push str.__skip_parse_server_key_exchange
push 0x8ae
push str.....library_ssl_cli.c
push 2
push esi
call fcn.00416cf0
inc dword [esi + 4]
mov ecx, dword [esp + 0x148]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d219c
mov esp, ebp
pop ebp
ret