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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5b706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x59242c
push 0xd7c
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov eax, dword [esi + 0x4c]
push 2
push esi
mov ebx, dword [eax]
mov dword [ebp - 0x210], ebx
call fcn.00475430
add esp, 0x14
mov ecx, esi
call fcn.00469c00
mov edi, eax
mov eax, dword [esi]
test edi, edi
je 0x48040b
test eax, eax
je 0x4803f8
cmp dword [eax + 0x10], 0
je 0x4803f8
cmp dword [0x5bf078], 1
jl 0x4803f8
cmp edi, 0xffff9700
je 0x4803f8
mov eax, edi
neg eax
push eax
push edi
push str.mbedtls_ssl_read_record
push str._s___returned__d___0x_04x__n
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.004753e0
mov eax, dword [esi]
lea ecx, [ebp - 0x208]
push ecx
push 0xd80
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 1
push dword [eax + 0x14]
mov eax, dword [eax + 0x10]
call eax
add esp, 0x2c
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xcc]
mov edx, dword [esi + 0x70]
and eax, 2
mov edi, dword [esi + 0xa0]
or eax, 1
add edi, edx
cmp dword [esi + 0x78], 0x16
lea ecx, [edx + eax*4]
mov dword [ebp - 0x20c], ecx
je 0x480461
push str.bad_client_key_exchange_message
push 0xd89
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 1
push esi
call fcn.00475430
add esp, 0x14
mov eax, 0xffff8400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
cmp byte [edx], 0x10
je 0x480472
push str.bad_client_key_exchange_message
push 0xd8f
jmp 0x48043b
mov eax, dword [ebx + 0x10]
cmp eax, 2
jne 0x480555
push edi
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.0047fe30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4804c7
push ebx
push str.ssl_parse_client_dh_public
push 0xd98
mov ecx, esi
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
call fcn.004754f0
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20c], edi
je 0x4804de
push str.bad_client_key_exchange
push 0xd9e
jmp 0x48043b
mov eax, dword [esi]
mov ecx, dword [esi + 0x3c]
push dword [eax + 0x1c]
lea edx, [ecx + 0x45c]
push dword [eax + 0x18]
lea eax, [ecx + 0x418]
add ecx, 8
push eax
push 0x424
call fcn.00481cc0
add esp, 0x10
mov ecx, esi
test eax, eax
je 0x48053f
push eax
push str.mbedtls_dhm_calc_secret
push 0xda8
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
call fcn.004754f0
mov eax, 0xffff8300
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
add eax, 0x48
push eax
push str.DHM:_K
push 0xdac
jmp 0x48098d
cmp eax, 3
je 0x48088c
cmp eax, 4
je 0x48088c
cmp eax, 9
je 0x48088c
cmp eax, 0xa
je 0x48088c
cmp eax, 5
jne 0x48060c
push edi
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.004801c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4805a9
push ebx
push str.ssl_parse_client_psk_identity
push 0xdd8
jmp 0x4804a0
cmp dword [ebp - 0x20c], edi
je 0x4805c0
push str.bad_client_key_exchange
push 0xdde
jmp 0x48043b
mov edx, dword [ebp - 0x210]
mov ecx, esi
mov edx, dword [edx + 0x10]
call fcn.00466730
mov edi, eax
test edi, edi
je 0x48099a
push edi
push str.mbedtls_ssl_psk_derive_premaster
push 0xde5
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
mov ecx, esi
call fcn.004754f0
mov eax, edi
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
cmp eax, 7
jne 0x4806af
push edi
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.004801c0
mov ebx, eax
add esp, 4
mov ecx, esi
test ebx, ebx
je 0x48063e
push ebx
push str.ssl_parse_client_psk_identity
push 0xdf0
jmp 0x4804a2
mov edx, dword [ebp - 0x20c]
push 2
push edi
call fcn.0047ff10
mov edi, eax
add esp, 8
mov ecx, esi
test edi, edi
je 0x480687
push edi
push str.ssl_parse_encrypted_pms
push 0xdf6
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
call fcn.004754f0
mov eax, edi
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x210]
mov edx, dword [edx + 0x10]
call fcn.00466730
mov edi, eax
test edi, edi
je 0x48099a
push edi
push str.mbedtls_ssl_psk_derive_premaster
push 0xdfd
jmp 0x4805e5
cmp eax, 6
jne 0x480747
push edi
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.004801c0
mov ebx, eax
add esp, 4
mov ecx, esi
test ebx, ebx
je 0x4806e1
push ebx
push str.ssl_parse_client_psk_identity
push 0xe08
jmp 0x4804a2
push edi
lea edx, [ebp - 0x20c]
call fcn.0047fe30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x480706
push ebx
push str.ssl_parse_client_dh_public
push 0xe0d
jmp 0x4804a0
cmp dword [ebp - 0x20c], edi
je 0x48071d
push str.bad_client_key_exchange
push 0xe13
jmp 0x48043b
mov edx, dword [ebp - 0x210]
mov ecx, esi
mov edx, dword [edx + 0x10]
call fcn.00466730
mov edi, eax
test edi, edi
je 0x48099a
push edi
push str.mbedtls_ssl_psk_derive_premaster
push 0xe1a
jmp 0x4805e5
cmp eax, 8
jne 0x48082e
push edi
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.004801c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x480777
push ebx
push str.ssl_parse_client_psk_identity
push 0xe25
jmp 0x4804a0
mov eax, dword [ebp - 0x20c]
sub edi, eax
mov ecx, dword [esi + 0x3c]
add ecx, 0x84
je 0x480819
cmp edi, 2
jb 0x480819
mov dl, byte [eax]
lea ebx, [eax + 1]
cmp dl, 1
jb 0x480819
movzx edx, dl
lea eax, [edi - 1]
cmp edx, eax
ja 0x480819
mov eax, ebx
add ebx, edx
push edx
push eax
lea edx, [ecx + 0xac]
call fcn.00482210
add esp, 8
test eax, eax
jne 0x48081e
sub ebx, dword [ebp - 0x20c]
cmp ebx, edi
jne 0x480819
mov eax, dword [esi + 0x3c]
mov ecx, esi
add eax, 0x130
push eax
push 0x592498
push 0xe30
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
call fcn.004757a0
mov edx, dword [ebp - 0x210]
add esp, 0x10
mov ecx, esi
mov edx, dword [edx + 0x10]
call fcn.00466730
mov edi, eax
test edi, edi
je 0x48099a
push edi
push str.mbedtls_ssl_psk_derive_premaster
push 0xe35
jmp 0x4805e5
mov eax, 0xffffb080
push eax
push str.mbedtls_ecdh_read_public
push 0xe2c
jmp 0x4809f7
cmp eax, 1
jne 0x48085c
push 0
mov edx, ecx
mov ecx, esi
push edi
call fcn.0047ff10
mov edi, eax
add esp, 8
test edi, edi
je 0x48099a
push edi
push str.ssl_parse_parse_encrypted_pms_secret
push 0xe40
jmp 0x4805e5
push str.should_never_happen
push 0xe5d
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 1
push esi
call fcn.00475430
add esp, 0x14
mov eax, 0xffff9400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x3c]
sub edi, ecx
add edx, 0x84
mov ebx, ecx
mov dword [ebp - 0x210], edx
je 0x4809e7
cmp edi, 2
jb 0x4809e7
mov al, byte [ebx]
inc ebx
cmp al, 1
jb 0x4809e7
movzx ecx, al
lea eax, [edi - 1]
cmp ecx, eax
ja 0x4809e7
mov eax, ebx
add edx, 0xac
push ecx
add ebx, ecx
mov ecx, dword [ebp - 0x210]
push eax
call fcn.00482210
add esp, 8
test eax, eax
jne 0x4809ec
sub ebx, dword [ebp - 0x20c]
cmp ebx, edi
jne 0x4809e7
mov eax, dword [esi + 0x3c]
mov ecx, esi
add eax, 0x130
push eax
push 0x592498
push 0xdc0
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
call fcn.004757a0
mov eax, dword [esi]
mov ecx, dword [esi + 0x3c]
push dword [eax + 0x1c]
lea edx, [ecx + 0x418]
push dword [eax + 0x18]
lea eax, [ecx + 0x45c]
add ecx, 0x84
push 0x400
push eax
call fcn.00477d00
add esp, 0x20
mov ecx, esi
test eax, eax
je 0x48097a
push eax
push str.mbedtls_ecdh_calc_secret
push 0xdc8
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
call fcn.004754f0
mov eax, 0xffff8300
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
add eax, 0x154
push eax
push str.ECDH:_z
push 0xdcc
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
call fcn.00475860
add esp, 0x10
mov ecx, esi
call fcn.00465a60
mov edi, eax
test edi, edi
je 0x4809b7
push edi
push str.mbedtls_ssl_derive_keys
push 0xe63
jmp 0x4805e5
inc dword [esi + 4]
push str.__parse_client_key_exchange
push 0xe69
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
push 2
push esi
call fcn.00475430
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, 0xffffb080
push eax
push str.mbedtls_ecdh_read_public
push 0xdbc
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_srv.c
mov edx, 1
mov ecx, esi
call fcn.004754f0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 0xffff8380
pop edi
pop esi
pop ebx
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret