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

Disassembly:
sub esp, 0x64
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x18], edx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x44]
mov esi, ebx
mov ecx, dword [ebp + 0xc0]
mov dword [esp + 0x18], ebx
mov edx, dword [eax + 0x10]
mov eax, dword [ebp + 0xd4]
sub ecx, eax
add ecx, 0x414d
mov dword [ebp + 0xdc], 4
mov dword [esp + 0x14], edx
cmp dword [edx + 0x10], 6
mov dword [esp + 0x24], ecx
je 0x4cb743
cmp dword [edx + 0x10], 8
jne 0x4cb761
mov byte [eax + 4], bl
inc dword [ebp + 0xdc]
mov ecx, dword [ebp + 0xdc]
mov eax, dword [ebp + 0xd4]
mov byte [ecx + eax], bl
inc dword [ebp + 0xdc]
mov eax, dword [edx + 0x10]
mov edi, str.srclibmbedtlslibrary_ssl_srv.c
dec eax
sub eax, 1
je 0x4cb778
sub eax, 4
jne 0x4cb8c1
mov esi, dword [ebp]
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x84], ebx
je 0x4cbc24
cmp dword [esi + 0x90], ebx
je 0x4cbc24
mov edi, dword [ebp + 0x44]
lea edx, [esi + 0x7c]
lea ecx, [edi + 0x30]
call fcn.004ce8c5
test eax, eax
jne 0x4cb7bb
lea edx, [esi + 0x88]
lea ecx, [edi + 0x3c]
call fcn.004ce8c5
test eax, eax
je 0x4cb7e9
lea esi, [eax - 0x3580]
test esi, esi
je 0x4cb7e9
push esi
push str.mbedtls_dhm_set_group
push 0xbb7
push str.srclibmbedtlslibrary_ssl_srv.c
xor edx, edx
mov ecx, ebp
inc edx
call fcn.004c6af7
add esp, 0x10
mov eax, esi
jmp 0x4cbc43
mov esi, dword [ebp + 0x44]
lea ecx, [esi + 0x30]
call fcn.004cea88
lea ecx, [esi + 0x30]
lea edx, [eax + 7]
mov eax, dword [ebp]
shr edx, 3
push dword [eax + 0x20]
push dword [eax + 0x1c]
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebp + 0xdc]
add eax, dword [ebp + 0xd4]
push eax
call fcn.004cce74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4cb833
push esi
push str.mbedtls_dhm_make_params
push 0xbc1
jmp 0x4cb7d0
mov ecx, dword [ebp + 0xdc]
mov edi, str.srclibmbedtlslibrary_ssl_srv.c
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 0xd4]
add eax, ecx
mov dword [ebp + 0xdc], eax
add esi, ecx
mov eax, dword [ebp + 0x44]
mov ecx, ebp
add eax, 0x48
mov dword [esp + 0x18], esi
push eax
push str.DHM:_X
push 0xbcb
push edi
call fcn.004c6e3a
mov eax, dword [ebp + 0x44]
mov ecx, ebp
add eax, 0x30
push eax
push str.DHM:_P
push 0xbcc
push edi
call fcn.004c6e3a
mov eax, dword [ebp + 0x44]
mov ecx, ebp
add eax, 0x3c
push eax
push str.DHM:_G
push 0xbcd
push edi
call fcn.004c6e3a
mov eax, dword [ebp + 0x44]
mov ecx, ebp
add eax, 0x54
push eax
push str.DHM:_GX
push 0xbce
push edi
call fcn.004c6e3a
mov edx, dword [esp + 0x54]
add esp, 0x40
mov eax, dword [edx + 0x10]
sub eax, 3
je 0x4cb8d7
sub eax, 1
je 0x4cb8d7
sub eax, 4
jne 0x4cba26
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x4cb8e5
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x4cb8eb
mov eax, dword [ebp]
mov eax, dword [eax + 0x78]
mov dword [esp + 0x10], ebx
test eax, eax
jne 0x4cb8fd
mov eax, 0xffffa180
jmp 0x4cbc43
cmp word [eax], bx
je 0x4cbc06
mov edi, dword [ecx + 0x190]
mov esi, edi
mov ecx, dword [esi]
test ecx, ecx
je 0x4cb926
movzx edx, word [eax]
cmp word [ecx + 4], dx
je 0x4cb92e
add esi, 4
mov ecx, dword [esi]
test ecx, ecx
jne 0x4cb917
add eax, 2
cmp word [eax], bx
jne 0x4cb90c
mov eax, dword [esi]
test eax, eax
je 0x4cbc06
push dword [eax + 8]
mov edi, str.srclibmbedtlslibrary_ssl_srv.c
push str.ECDHE_curve:__s
push 0xbf4
push edi
push 2
push ebp
call fcn.004c6a21
mov edx, dword [esi]
add esp, 0x18
mov ecx, dword [ebp + 0x44]
add ecx, 0xa8
mov edx, dword [edx]
call fcn.004c813a
mov esi, eax
test esi, esi
je 0x4cb97f
push esi
push str.mbedtls_ecp_group_load
push 0xbf9
push edi
jmp 0x4cb7d5
mov edx, dword [ebp + 0x44]
mov esi, dword [ebp]
mov edi, dword [ebp + 0xdc]
mov eax, dword [edx + 0xb0]
sub eax, 1
je 0x4cb99d
mov esi, 0xffffb080
jmp 0x4cb9d5
mov ecx, dword [ebp + 0xd4]
mov eax, 0x4000
add ecx, edi
sub eax, edi
push ecx
push dword [esi + 0x20]
push dword [esi + 0x1c]
push eax
movzx eax, byte [edx + 0xa8]
push ecx
lea ecx, [edx + 0xb4]
push eax
lea edx, [esp + 0x28]
call fcn.004c81f9
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4cb9e5
push esi
push str.mbedtls_ecdh_make_params
push 0xc03
jmp 0x4cb7d0
mov ecx, dword [ebp + 0xdc]
mov edi, str.srclibmbedtlslibrary_ssl_srv.c
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 0xd4]
add eax, ecx
mov dword [ebp + 0xdc], eax
add esi, ecx
mov eax, dword [ebp + 0x44]
mov ecx, ebp
push ebx
add eax, 0xa8
mov dword [esp + 0x1c], esi
push eax
push 0xc0e
push edi
call fcn.004c7266
mov edx, dword [esp + 0x24]
add esp, 0x10
mov eax, dword [edx + 0x10]
dec eax
sub eax, 1
je 0x4cba3d
sub eax, 1
je 0x4cba3d
sub eax, 1
je 0x4cba3d
mov eax, ebx
jmp 0x4cba40
xor eax, eax
inc eax
test eax, eax
je 0x4cbc02
mov eax, dword [ebp + 0xdc]
mov ecx, edx
add eax, dword [ebp + 0xd4]
sub eax, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], eax
call fcn.004c4ee2
cmp dword [ebp + 0x14], 3
mov esi, eax
jne 0x4cbbf6
test esi, esi
je 0x4cbbdc
mov edi, dword [ebp + 0x44]
sub eax, 1
je 0x4cba8f
sub eax, 3
jne 0x4cbbd7
mov edi, dword [edi + 0x28]
jmp 0x4cba92
mov edi, dword [edi + 0x24]
mov dword [esp + 0x14], edi
test edi, edi
je 0x4cbbd7
push edi
push str.pick_hash_algorithm__u_for_signing
push 0xc44
push str.srclibmbedtlslibrary_ssl_srv.c
push 3
push ebp
call fcn.004c6a21
push edi
push dword [esp + 0x38]
lea eax, [esp + 0x30]
mov ecx, ebp
push dword [esp + 0x38]
lea edx, [esp + 0x4c]
push eax
call fcn.004b9847
add esp, 0x28
test eax, eax
jne 0x4cbc43
push dword [esp + 0x10]
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
push str.parameters_hash
push 0xc5a
push str.srclibmbedtlslibrary_ssl_srv.c
push 3
pop edx
call fcn.004c6b7e
add esp, 0x14
cmp dword [ebp + 0x14], 3
jne 0x4cbb4d
mov ecx, edi
call fcn.004b9698
mov edx, dword [ebp + 0xdc]
mov ecx, dword [ebp + 0xd4]
mov byte [edx + ecx], al
mov ecx, dword [ebp + 0xdc]
inc ecx
mov dword [ebp + 0xdc], ecx
sub esi, 1
je 0x4cbb3c
sub esi, 1
je 0x4cbb38
dec esi
sub esi, 1
jne 0x4cbb3e
mov bl, 3
jmp 0x4cbb3e
mov bl, 1
mov eax, dword [ebp + 0xd4]
mov byte [ecx + eax], bl
inc dword [ebp + 0xdc]
mov ecx, ebp
call fcn.004c9102
test eax, eax
jne 0x4cbb79
push str.got_no_private_key
push 0xc93
push str.srclibmbedtlslibrary_ssl_srv.c
push 1
push ebp
call fcn.004c6a21
mov eax, 0xffff8a00
jmp 0x4cbc40
mov eax, dword [ebp]
mov ebx, dword [ebp + 0xd4]
mov edi, dword [ebp + 0xdc]
add ebx, 2
add ebx, edi
mov edx, dword [eax + 0x20]
mov esi, dword [eax + 0x1c]
call fcn.004c9102
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x1c]
sub ecx, edi
push esi
push dword [esp + 0x2c]
sub ecx, 2
push ecx
push ebx
push dword [esp + 0x28]
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.004be65e
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4cbc02
push esi
push str.mbedtls_pk_sign
push 0xca4
jmp 0x4cb7d0
mov edi, str.srclibmbedtlslibrary_ssl_srv.c
push str.should_never_happen
push 0xc37
push edi
push 1
push ebp
call fcn.004c6a21
mov eax, 0xffff9400
jmp 0x4cbc40
push str.should_never_happen
push 0xc3f
jmp 0x4cbbe6
xor eax, eax
jmp 0x4cbc43
push str.no_matching_curve_for_ECDHE
push 0xbf0
push str.srclibmbedtlslibrary_ssl_srv.c
push 1
push ebp
call fcn.004c6a21
mov eax, 0xffff9200
jmp 0x4cbc40
push str.no_DH_parameters_set
push 0xba6
push str.srclibmbedtlslibrary_ssl_srv.c
push 1
push ebp
call fcn.004c6a21
mov eax, 0xffff8f00
add esp, 0x14
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x64
ret