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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x5b706c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
push 0x5921c8
push 0xb25
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov eax, dword [edi + 0x4c]
mov ebx, dword [edi + 0xc0]
push 2
add ebx, 4
mov dword [esp + 0x2c], edi
mov esi, dword [eax]
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0
call fcn.00475430
mov eax, dword [esi + 0x10]
add esp, 0x14
add eax, 0xfffffff7
cmp eax, 1
ja 0x47f57d
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x47f47d
mov eax, dword [eax + 0x1c4]
test eax, eax
jne 0x47f48a
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x47f596
mov eax, dword [eax + 4]
test eax, eax
je 0x47f596
mov eax, dword [eax]
test eax, eax
je 0x47f596
mov eax, dword [eax + 0xc]
push 2
call eax
add esp, 4
test eax, eax
je 0x47f596
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x47f4c2
mov eax, dword [ecx + 0x1c4]
test eax, eax
jne 0x47f4cf
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x47f4cf
xor edx, edx
jmp 0x47f4d2
mov edx, dword [eax + 4]
mov eax, dword [edx]
mov esi, dword [edx + 4]
mov dword [esp + 0x28], eax
lea eax, [ecx + 0x84]
mov ecx, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], eax
mov edx, dword [esi]
call fcn.0048fc00
test eax, eax
jne 0x47f55a
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x88]
add ecx, 0x88
call fcn.00477fd0
test eax, eax
jne 0x47f53f
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x94]
lea ecx, [ecx + 0x94]
call fcn.00477fd0
test eax, eax
jne 0x47f53f
lea edx, [esi + 0xa0]
mov esi, dword [esp + 0x10]
lea ecx, [esi + 0xa0]
call fcn.00477fd0
jmp 0x47f543
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x47f55a
mov edx, dword [esp + 0x28]
lea ecx, [esi + 0x7c]
add edx, 0x7c
call fcn.00477fd0
test eax, eax
je 0x47f579
push eax
push str.mbedtls_ecdh_get_params
push 0xb0c
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
mov ecx, edi
call fcn.004754f0
add esp, 0x10
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
lea eax, [ecx - 1]
cmp eax, 9
ja case.0x47f58f.2
movzx eax, byte [eax + 0x47fde8]
jmp dword [eax*4 + 0x47fde0]
push str.server_key_not_ECDH_capable
push 0xb04
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 1
push edi
call fcn.00475430
add esp, 0x14
jmp 0x47f57d
push str.__skip_write_server_key_exchange
push 0xb3c
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 2
push edi
call fcn.00475430
inc dword [edi + 4]
jmp 0x47fdc9
cmp ecx, 6
je 0x47f5db
cmp ecx, 8
jne 0x47f5ee
mov word [ebx], 0
add ebx, 2
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x14], 2
mov eax, ecx
sub eax, 2
je 0x47f5fe
sub eax, 4
je 0x47f5fe
xor eax, eax
jmp 0x47f603
mov eax, 1
test eax, eax
je 0x47f77d
mov eax, dword [edi]
cmp dword [eax + 0x84], 0
je 0x47f882
cmp dword [eax + 0x90], 0
je 0x47f882
mov esi, dword [edi + 0x3c]
lea ecx, [eax + 0x88]
mov dword [esp + 0x28], ecx
lea edx, [eax + 0x7c]
add esi, 8
je 0x47f84a
test edx, edx
je 0x47f84a
test ecx, ecx
je 0x47f84a
lea ecx, [esi + 4]
call fcn.00477fd0
test eax, eax
jne 0x47f67e
mov edx, dword [esp + 0x28]
lea ecx, [esi + 0x10]
call fcn.00477fd0
test eax, eax
jne 0x47f67e
lea ecx, [esi + 4]
call fcn.00478300
add eax, 7
shr eax, 3
mov dword [esi], eax
jmp 0x47f68c
lea esi, [eax - 0x3580]
test esi, esi
jne 0x47f84f
mov esi, dword [edi + 0x3c]
lea ecx, [esi + 0xc]
call fcn.00478300
lea ecx, [esi + 8]
lea edx, [eax + 7]
mov eax, dword [edi]
shr edx, 3
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.00481590
mov esi, eax
add esp, 0x10
mov ecx, edi
test esi, esi
je 0x47f6ef
push esi
push str.mbedtls_dhm_make_params
push 0xb90
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
call fcn.004754f0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov esi, dword [esp + 0x28]
add eax, 0x24
add dword [esp + 0x14], esi
push eax
push str.DHM:_X
push 0xb9c
mov dword [esp + 0x2c], ebx
add ebx, esi
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov dword [esp + 0x34], esi
call fcn.00475860
mov eax, dword [edi + 0x3c]
mov ecx, edi
add eax, 0xc
push eax
push str.DHM:_P
push 0xb9d
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
call fcn.00475860
mov eax, dword [edi + 0x3c]
mov ecx, edi
add eax, 0x18
push eax
push str.DHM:_G
push 0xb9e
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
call fcn.00475860
mov eax, dword [edi + 0x3c]
mov ecx, edi
add eax, 0x30
push eax
push str.DHM:_GX
push 0xb9f
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
call fcn.00475860
mov ecx, dword [esp + 0x58]
add esp, 0x40
mov ecx, dword [ecx + 0x10]
cmp ecx, 3
jl 0x47fa2a
cmp ecx, 4
jle 0x47f794
cmp ecx, 8
jne 0x47fa2a
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
test ecx, ecx
je 0x47f9f9
mov eax, dword [edi + 0x3c]
mov edi, dword [eax + 0x1b8]
nop dword [eax]
mov esi, edi
mov eax, dword [esi]
test eax, eax
je 0x47f7c6
cmp dword [eax], ecx
je 0x47f7d0
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x47f7b8
mov ecx, dword [edx + 4]
add edx, 4
test ecx, ecx
jne 0x47f7b0
mov eax, dword [esi]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x47f9f9
push dword [eax + 8]
push str.ECDHE_curve:__s
push 0xbc1
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 2
push edi
call fcn.00475430
mov edx, dword [esi]
add esp, 0x18
mov ecx, dword [edi + 0x3c]
add ecx, 0x84
mov edx, dword [edx]
call fcn.0048fc00
mov esi, eax
test esi, esi
je 0x47f8b3
push esi
push str.mbedtls_ecp_group_load
push 0xbc6
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
mov ecx, edi
call fcn.004754f0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov esi, 0xffffcf80
push esi
push str.mbedtls_dhm_set_group
push 0xb88
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
mov ecx, edi
call fcn.004754f0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
push str.no_DH_parameters_set
push 0xb77
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 1
push edi
call fcn.00475430
add esp, 0x14
mov eax, 0xffff8f00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x3c]
mov eax, 0x4000
sub eax, dword [esp + 0x14]
add ecx, 0x84
mov edx, dword [edi]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
je 0x47f91e
cmp dword [ecx + 0x58], 0
je 0x47f91e
push dword [edx + 0x1c]
lea eax, [ecx + 0x88]
push dword [edx + 0x18]
lea edx, [ecx + 0x28]
push eax
lea eax, [ecx + 0x7c]
push eax
call fcn.00485ff0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x47f923
mov esi, dword [esp + 0x1c]
mov ecx, 0x5738d0
mov eax, 5
mov edx, dword [esi]
nop dword [eax]
cmp eax, edx
je 0x47f956
mov eax, dword [ecx + 0xc]
add ecx, 0xc
test eax, eax
jne 0x47f910
mov esi, 0xffffb080
push esi
push str.mbedtls_ecdh_make_params
push 0xbce
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
mov ecx, edi
call fcn.004754f0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x47f91e
mov edx, dword [esp + 0x28]
cmp edx, 3
jae 0x47f96a
mov esi, 0xffffb100
jmp 0x47f923
mov byte [ebx], 3
sub edx, 3
movzx eax, byte [ecx + 5]
mov byte [ebx + 1], al
movzx eax, byte [ecx + 4]
mov byte [ebx + 2], al
cmp edx, 1
jb 0x47f91e
lea eax, [edx - 1]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esi + 0xdc]
lea edx, [esi + 0x88]
call fcn.004820d0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x47f923
mov eax, dword [esp + 0x1c]
mov ecx, edi
mov esi, dword [esp + 0x14]
mov byte [ebx + 3], al
add eax, 4
add esi, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
add ebx, eax
mov eax, dword [edi + 0x3c]
add eax, 0x10c
mov dword [esp + 0x14], esi
push eax
push 0x5922e0
push 0xbda
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
call fcn.004757a0
mov eax, dword [esp + 0x28]
add esp, 0x10
mov ecx, dword [eax + 0x10]
jmp 0x47fa2e
push str.no_matching_curve_for_ECDHE
push 0xbbd
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 1
push edi
call fcn.00475430
add esp, 0x14
mov eax, 0xffff8c80
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
cmp ecx, 2
jl 0x47fce6
cmp ecx, 4
jg 0x47fce6
lea eax, [ecx - 1]
mov dword [esp + 0x28], 0
cmp eax, 9
ja case.0x47fa57.5
movzx eax, byte [eax + 0x47fe04]
jmp dword [eax*4 + 0x47fdf4]
mov esi, 1
jmp 0x47fa75
mov esi, 4
jmp 0x47fa75
mov esi, 2
jmp 0x47fa75
xor esi, esi
cmp dword [edi + 0x14], 3
jne 0x47facc
test esi, esi
je 0x47fa9b
mov ecx, dword [edi + 0x3c]
mov eax, esi
sub eax, 1
je 0x47fa91
sub eax, 3
jne 0x47fa9b
add ecx, 4
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x47fadc
push str.should_never_happen
push 0xc01
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 1
push edi
call fcn.00475430
add esp, 0x14
mov eax, 0xffff9400
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov edx, 4
xor eax, eax
cmp ecx, edx
cmove eax, edx
mov dword [esp + 0x10], eax
push eax
push str.pick_hash_algorithm__d_for_signing
push 0xc18
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 3
push edi
call fcn.00475430
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
add esp, 0x18
mov ecx, edi
test eax, eax
jne 0x47fb2c
push dword [esp + 0x24]
mov dword [esp + 0x1c], 0x24
push dword [esp + 0x24]
call fcn.0046d100
add esp, 8
test eax, eax
jne 0x47fdce
mov eax, 0x24
jmp 0x47fb64
push eax
push dword [esp + 0x28]
mov dword [esp + 0x20], 0
push dword [esp + 0x28]
call fcn.0046d2f0
add esp, 0xc
test eax, eax
jne 0x47fdce
mov ecx, dword [esp + 0x10]
call fcn.00472ff0
test eax, eax
jne 0x47fb5e
xor al, al
jmp 0x47fb61
mov al, byte [eax + 8]
movzx eax, al
push eax
lea eax, [esp + 0x34]
mov edx, 3
push eax
push str.parameters_hash
push 0xc41
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov ecx, edi
call fcn.00475580
mov ecx, dword [edi + 0x3c]
add esp, 0x14
test ecx, ecx
je 0x47fb99
mov eax, dword [ecx + 0x1c4]
test eax, eax
jne 0x47fba6
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x47fd81
cmp dword [eax + 4], 0
je 0x47fd81
cmp dword [edi + 0x14], 3
mov edx, dword [esp + 0x10]
jne 0x47fc0c
lea eax, [edx - 3]
cmp eax, 5
ja case.default.0x47fbc2
jmp dword [eax*4 + 0x47fe10]
mov al, 1
jmp 0x47fbe3
mov al, 2
jmp 0x47fbe3
mov al, 3
jmp 0x47fbe3
mov al, 4
jmp 0x47fbe3
mov al, 5
jmp 0x47fbe3
mov al, 6
jmp 0x47fbe3
xor al, al
mov byte [ebx], al
sub esi, 1
je 0x47fbfc
sub esi, 1
je 0x47fbf8
sub esi, 2
je 0x47fbf8
xor al, al
jmp 0x47fbfe
mov al, 3
jmp 0x47fbfe
mov al, 1
mov byte [ebx + 1], al
add ebx, 2
add dword [esp + 0x14], 2
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x47fc1a
mov eax, dword [ecx + 0x1c4]
test eax, eax
jne 0x47fc27
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x47fc27
xor esi, esi
jmp 0x47fc2a
mov esi, dword [eax + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
test esi, esi
je 0x47fd49
mov eax, dword [esi]
test eax, eax
je 0x47fd49
cmp dword [esp + 0x18], 0
jne 0x47fc6e
mov ecx, edx
call fcn.00472ff0
test eax, eax
je 0x47fd49
mov al, byte [eax + 8]
movzx eax, al
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x47fc7f
mov esi, 0xffffc100
jmp 0x47fd4e
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push dword [esp + 0x24]
push eax
lea eax, [ebx + 2]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push edx
push dword [esi + 4]
call ecx
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x47fd4e
mov ecx, dword [esp + 0x28]
lea edx, [esi + 3]
mov eax, ecx
shr eax, 8
push ecx
mov byte [ebx], al
lea eax, [ebx + 2]
push eax
push str.my_signature
mov byte [ebx + 1], cl
mov ecx, edi
push 0xc71
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
call fcn.00475580
mov esi, dword [esp + 0x28]
add esp, 0x14
add esi, 2
add esi, dword [esp + 0x28]
lea eax, [esi + 4]
mov dword [edi + 0xc4], 0x16
mov dword [edi + 0xc8], eax
mov ecx, edi
mov eax, dword [edi + 0xc0]
mov byte [eax], 0xc
inc dword [edi + 4]
call fcn.00468900
mov esi, eax
test esi, esi
je 0x47fdb2
push esi
push str.mbedtls_ssl_write_record
push 0xc81
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
mov ecx, edi
call fcn.004754f0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov esi, 0xffffc180
push esi
push str.mbedtls_pk_sign
push 0xc69
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
mov ecx, edi
call fcn.004754f0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
push str.got_no_private_key
push 0xc48
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 1
push edi
call fcn.00475430
add esp, 0x14
mov eax, 0xffff8a00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
push str.__write_server_key_exchange
push 0xc85
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 2
push edi
call fcn.00475430
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret