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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x5b706c]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
push 0x58add8
push 0x4f8
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
mov esi, ecx
mov dword [esp + 0x30], 0
push 2
push esi
mov dword [esp + 0x2c], esi
call fcn.00475430
add esp, 0x14
cmp dword [esi + 0x30], 0
je 0x46719e
mov eax, dword [esi + 0x44]
test eax, eax
je 0x46719e
add eax, 0x50
je 0x4669b4
mov eax, dword [eax]
test eax, eax
je 0x4669b4
mov eax, dword [eax + 4]
jmp 0x4669b6
xor eax, eax
push dword [esi + 0xc8]
lea edi, [esi + 0xc8]
mov dword [esp + 0x10], eax
push dword [esi + 0xc0]
lea eax, [esi + 0xc0]
mov edx, 4
push str.before_encrypt:_output_payload
push 0x503
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.00475580
mov ebx, dword [edi]
add esp, 0x14
mov dword [esp + 0x10], ebx
cmp ebx, 0x4000
jbe 0x466a39
push 0x4000
push ebx
push str.Record_content__u_too_large__maximum__d
push 0x509
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
push 1
push esi
call fcn.00475430
add esp, 0x1c
mov eax, 0xffff8f00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
cmp ecx, 7
je 0x466a5f
cmp ecx, 2
jne 0x466b3e
mov eax, dword [esi + 0x30]
mov dword [esp + 0x10], ebx
cmp dword [eax + 0x80], 0
jne 0x466b3e
cmp dword [esi + 0x14], 1
jl 0x467192
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0xb0]
add ecx, 0x38
push 8
call fcn.00473350
mov ecx, dword [esi + 0x44]
add esp, 4
mov edx, dword [esi + 0xb4]
add ecx, 0x38
push 3
call fcn.00473350
mov ecx, dword [esi + 0x44]
add esp, 4
mov edx, dword [esi + 0xb8]
add ecx, 0x38
push 2
call fcn.00473350
mov ecx, dword [esi + 0x44]
add esp, 4
mov edx, dword [esi + 0xc0]
add ecx, 0x38
push dword [edi]
call fcn.00473350
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x50]
add esp, 4
add ecx, 0x38
call fcn.00473380
mov ecx, dword [esi + 0x44]
add ecx, 0x38
call fcn.00473440
mov eax, dword [esi + 0x44]
push dword [eax + 0x14]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esi + 0xc0]
add eax, dword [edi]
push eax
call fcn.00524840
mov eax, dword [esi + 0x44]
add esp, 0xc
mov edx, 4
mov ecx, esi
push dword [eax + 0x14]
mov eax, dword [esi + 0xc0]
add eax, dword [edi]
push eax
push str.computed_mac
push 0x540
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
call fcn.00475580
mov eax, dword [esi + 0x44]
add esp, 0x14
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], 1
mov eax, dword [eax + 0x14]
add dword [edi], eax
mov ebx, dword [edi]
mov dword [esp + 0x10], ebx
cmp ecx, 7
jne 0x466be3
push 0
push ebx
push str.before_encrypt:_msglen___d__including__d_bytes_of_padding
push 0x552
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
push 3
push esi
mov dword [esp + 0x28], 0
call fcn.00475430
mov eax, dword [esi + 0xc0]
lea edx, [esp + 0x28]
mov ecx, dword [esi + 0x44]
add esp, 0x1c
push edx
push eax
push dword [edi]
lea edx, [ecx + 0x18]
push eax
push dword [ecx + 0xc]
add ecx, 0x50
call fcn.0047c6d0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x466bc8
push ebx
push str.mbedtls_cipher_crypt
push 0x55a
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
mov edx, 1
mov ecx, esi
call fcn.004754f0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
cmp eax, dword [esp + 0xc]
je 0x467141
push str.should_never_happen
push 0x560
jmp 0x4671a8
mov eax, ebx
shr eax, 8
mov dword [esp + 0x2c], eax
cmp ecx, 6
je 0x466f15
cmp ecx, 8
je 0x466f15
cmp ecx, 2
jne 0x466f06
mov eax, dword [esi + 0x44]
xor edx, edx
mov dword [esp + 0x20], 0
mov ecx, dword [eax + 0xc]
lea eax, [ebx + 1]
div ecx
sub ecx, edx
neg edx
sbb edx, edx
xor ebx, ebx
and edx, ecx
mov dword [esp + 0x38], edx
lea eax, [edx + 1]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0x10
mov eax, dword [esp + 0x10]
mov ecx, eax
jb 0x466cc9
mov edi, dword [esi + 0xc0]
lea ecx, [esi + 0xc0]
mov dword [esp + 0x34], edi
add edi, eax
mov dword [esp + 0x28], edi
cmp edi, ecx
lea eax, [edi + edx]
mov dword [esp + 0xc], eax
lea edi, [esi + 0xc8]
mov eax, dword [esp + 0x10]
ja 0x466c73
cmp dword [esp + 0xc], ecx
jae 0x466cc7
cmp dword [esp + 0x28], edi
ja 0x466c81
mov ecx, eax
cmp dword [esp + 0xc], edi
jae 0x466cc9
lea eax, [edx + 1]
mov ecx, edx
and eax, 0xf
sub ecx, eax
nop dword [eax + eax]
add ebx, 0x10
cmp ebx, ecx
jbe 0x466c90
mov edi, dword [esp + 0x34]
mov al, dl
add edi, dword [esp + 0x10]
add ecx, 0x10
mov edx, dword [esp + 0x38]
and ecx, 0xfffffff0
movzx eax, al
imul eax, eax, 0x1010101
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc8]
lea edi, [esi + 0xc8]
jmp 0x466cc9
mov ecx, eax
cmp ebx, edx
ja 0x466ce9
mov esi, dword [esp + 0x30]
mov ecx, dword [esi]
mov eax, dword [edi]
add ecx, ebx
inc ebx
mov byte [ecx + eax], dl
cmp ebx, edx
jbe 0x466cd1
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0xc8]
lea eax, [ecx + 1]
mov ecx, dword [esi + 0xc0]
add eax, edx
mov dword [esp + 0xc], ecx
cmp dword [esi + 0x14], 2
mov edx, dword [esi + 0x44]
mov dword [esp + 0x18], eax
mov dword [edi], eax
jl 0x466d53
mov ecx, dword [esi]
lea eax, [edx + 0x18]
push dword [edx + 0xc]
push eax
push dword [ecx + 0x1c]
mov eax, dword [ecx + 0x18]
call eax
add esp, 0xc
test eax, eax
jne 0x4671bd
mov eax, dword [esi + 0x44]
push dword [eax + 0xc]
add eax, 0x18
push eax
push dword [esi + 0xbc]
call fcn.00524840
mov edx, dword [esi + 0x44]
add esp, 0xc
mov ebx, dword [edi]
mov ecx, dword [esi + 0xc0]
mov dword [esp + 0xc], ecx
mov eax, dword [edx + 0xc]
add eax, ebx
mov dword [edi], eax
jmp 0x466d57
mov ebx, dword [esp + 0x18]
push dword [esp + 0x1c]
push dword [edx + 0xc]
push eax
push str.before_encrypt:_msglen___d__including__d_bytes_of_IV_and__d_bytes_of_padding
push 0x5e7
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
push 3
push esi
call fcn.00475430
mov ecx, dword [esi + 0x44]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
push eax
push ebx
push eax
push dword [ecx + 0xc]
lea edx, [ecx + 0x18]
add ecx, 0x50
call fcn.0047c6d0
add esp, 0x34
mov dword [esp + 0x18], eax
test eax, eax
je 0x466dd3
push eax
push str.mbedtls_cipher_crypt
push 0x5ef
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
mov edx, 1
mov ecx, esi
call fcn.004754f0
mov eax, dword [esp + 0x28]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
cmp ebx, dword [esp + 0x20]
je 0x466de8
push str.should_never_happen
push 0x5f5
jmp 0x4671a8
cmp dword [esi + 0x14], 2
jge 0x466e04
mov ecx, dword [esi + 0x44]
push dword [ecx + 0xc]
lea eax, [ecx + 0x78]
push eax
lea eax, [ecx + 0x18]
push eax
call fcn.00524840
add esp, 0xc
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x467145
push str.using_encrypt_then_mac
push 0x612
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
push 3
push esi
call fcn.00475430
mov ecx, dword [esi + 0xb0]
lea edx, [ebx + 4]
add esp, 0x14
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esi + 0xb4]
mov dword [esp + 0x40], eax
push 0xd
mov ax, word [ecx]
mov word [esp + 0x48], ax
movzx eax, byte [ecx + 2]
mov ecx, esi
mov byte [esp + 0x4a], al
movzx eax, byte [esi + 0xc9]
mov byte [esp + 0x4b], al
movzx eax, byte [edi]
mov byte [esp + 0x4c], al
lea eax, [esp + 0x40]
push eax
push str.MACd_meta_data
push 0x619
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
call fcn.00475580
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x50]
add esp, 0x14
add ecx, 0x38
push 0xd
call fcn.00473350
mov ecx, dword [esi + 0x44]
add esp, 4
mov edx, dword [esi + 0xbc]
add ecx, 0x38
push dword [edi]
call fcn.00473350
mov edx, dword [esi + 0xbc]
add esp, 4
mov ecx, dword [esi + 0x44]
add edx, dword [edi]
add ecx, 0x38
call fcn.00473380
mov ecx, dword [esi + 0x44]
add ecx, 0x38
call fcn.00473440
mov eax, dword [esi + 0x44]
mov eax, dword [eax + 0x14]
add dword [edi], eax
push str.__encrypt_buf
push 0x636
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
push 2
push esi
call fcn.00475430
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
push str.should_never_happen
push 0x62b
jmp 0x4671a8
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0x14]
mov eax, dword [eax]
mov al, byte [eax + 0x24]
and al, 2
mov byte [esp + 0x17], al
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x40], eax
movzx eax, byte [esi + 0xc4]
mov byte [esp + 0x44], al
lea eax, [esp + 0x45]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xcc]
shr eax, 1
and eax, 1
push eax
call fcn.0046d0c0
mov eax, dword [esp + 0x34]
mov edx, 4
push 0xd
mov byte [esp + 0x53], al
mov ecx, esi
lea eax, [esp + 0x48]
mov byte [esp + 0x54], bl
push eax
push str.additional_data_used_for_AEAD
push 0x579
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
call fcn.00475580
mov edx, dword [esi + 0x44]
add esp, 0x1c
mov eax, dword [edx + 0xc]
mov ebx, dword [edx + 0x10]
sub eax, ebx
cmp eax, 8
je 0x466faf
push str.should_never_happen
push 0x581
jmp 0x4671a8
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx]
mov dword [ebx + edx + 0x18], eax
mov eax, dword [ecx + 4]
mov dword [ebx + edx + 0x1c], eax
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xbc]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov edx, 4
mov eax, dword [esi + 0x44]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 0x10]
push ecx
push dword [esi + 0xbc]
mov ecx, esi
push str.IV_used
push 0x58a
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
call fcn.00475580
mov eax, dword [esi + 0x44]
add esp, 0x14
mov edx, dword [edi]
mov ebx, dword [esi + 0xc0]
mov dword [esp + 0x18], ebx
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 0x10]
push 0
add ecx, edx
mov dword [esp + 0x10], edx
push ecx
push str.before_encrypt:_msglen___d__including__d_bytes_of_padding
push 0x596
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
push 3
push esi
mov dword [edi], ecx
call fcn.00475430
mov eax, dword [esi + 0x44]
xor ecx, ecx
mov edx, dword [esp + 0x28]
add esp, 0x1c
cmp byte [esp + 0x17], cl
mov edi, dword [eax + 0xc]
sete cl
mov dword [esp + 0x30], edi
add edx, ebx
lea edi, [eax + 0x18]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x50]
lea ecx, [ecx*8 + 8]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 4]
cmp eax, 6
jne 0x4670dc
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x3c]
push ecx
push edx
mov edx, 1
push dword [ecx + 0xc]
mov eax, dword [ecx + 0x8c]
mov ecx, eax
push edi
mov dword [esp + 0x30], eax
call fcn.004973f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x46715f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
push eax
push eax
call fcn.004978a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x46715f
push dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
call fcn.00497a40
add esp, 4
jmp 0x467107
cmp eax, 8
jne 0x46715a
push ecx
push edx
push ebx
push ebx
push ecx
mov ecx, dword [esi + 0x44]
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x48]
xor edx, edx
mov ecx, dword [ecx + 0x8c]
push edi
push dword [esp + 0x2c]
call fcn.00495d80
add esp, 0x24
mov ebx, eax
test ebx, ebx
jne 0x46715f
mov eax, dword [esp + 0x10]
mov edx, 4
mov ebx, dword [esp + 0x24]
mov ecx, esi
add dword [esi + 0xc8], eax
inc ebx
push eax
push dword [esp + 0x2c]
push str.after_encrypt:_tag
push 0x5b0
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
call fcn.00475580
add esp, 0x14
jmp 0x467145
mov ebx, dword [esp + 0x24]
cmp ebx, 1
je 0x466ed8
push str.should_never_happen
push 0x632
jmp 0x4671a8
mov ebx, 0xffff9f80
push ebx
push str.mbedtls_cipher_auth_encrypt
push 0x5a3
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
mov edx, 1
mov ecx, esi
call fcn.004754f0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
push str.should_never_happen
push 0x53a
jmp 0x4671a8
push str.should_never_happen
push 0x4fc
push str.c:projectswiperinstallerlibsmbedtls_2.7.0library_ssl_tls.c
push 1
push esi
call fcn.00475430
add esp, 0x14
mov eax, 0xffff9400
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret