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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18c
mov ebp, dword [esp + 0x1a0]
mov eax, dword [esp + 0x1a4]
mov dword [esp + 8], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x38], edx
lea ecx, [ebp + 0x30]
mov dword [esp + 0x5c], eax
call fcn.0043e531
test al, al
je 0x401845
lea esi, [esp + 0x10c]
push 0x27
pop edx
mov ecx, esi
push 0x1e
push str.received_plaintext_buffer_full_n
call fcn.0042ef24
pop eax
pop ecx
mov bl, byte [esi]
jmp 0x401897
lea esi, [esp + 0x8c]
lea edx, [ebp + 0xb8]
lea eax, [esp + 0x58]
mov ecx, esi
push 0x40fcf5
push eax
call fcn.00438275
pop eax
pop ecx
cmp byte [esi], 4
jne 0x40187b
cmp dword [esp + 0x90], 0
jne 0x40187b
mov byte [ebp + 0xaf], 1
mov ebx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x110], eax
mov dword [esp + 0x10c], ebx
cmp bl, 4
jne 0x401c67
mov eax, dword [esp + 0x110]
mov cl, byte [ebp + 0xf8]
mov ebx, dword [ebp + 0xfc]
mov esi, dword [ebp + 0x100]
lea edi, [ebp + 0xf8]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x104]
cmp cl, 0x14
mov byte [ebp + 0xf8], 0x10
jne 0x401c92
mov dword [esp], ebx
lea eax, [ebp + 0xb8]
lea ecx, [ebp + 0x108]
lea ebx, [esp + 0x110]
lea ebp, [esp + 0x8c]
mov dword [esp + 4], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
mov ecx, ebp
mov ebp, dword [esp + 0x1a0]
mov edx, dword [esp + 0x3c]
push ebp
call fcn.0043754c
pop eax
mov eax, dword [esp + 0x8c]
cmp eax, 0x80000000
je 0x4019ae
cmp eax, 0x80000001
je 0x401d74
mov edi, ebx
cmp byte [esp + 0xa0], 0
mov bl, byte [esp + 0xa1]
mov bh, byte [esp + 0xa2]
je 0x401958
mov ecx, ebp
call fcn.0043e0a7
test bh, bh
je 0x401960
and dword [ebp], 0
mov byte [ebp + 0xa9], bl
mov ebx, edi
movsd xmm0, qword [esp + 0x8c]
movsd xmm1, qword [esp + 0x94]
mov eax, dword [esp + 0x9c]
movsd qword [esp + 0x10c], xmm0
mov dword [esp + 0x11c], eax
movsd qword [esp + 0x114], xmm1
mov esi, dword [esp + 0x10c]
cmp esi, 0x80000001
jne 0x4019b3
jmp 0x401de8
mov esi, 0x80000000
movsd xmm0, qword [ebx + 4]
mov eax, dword [ebx + 0xc]
mov edi, dword [esp + 0x110]
cmp esi, 0x80000000
movsd qword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
je 0x401ce5
mov eax, dword [esp + 0x48]
movsd xmm0, qword [esp + 0x40]
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edi
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
cmp byte [esp + 0x88], 0
jne 0x401a4a
cmp byte [ebp + 0xab], 0
jne 0x401a4a
cmp word [ebp + 0x9c], 5
jne 0x401a4a
lea ecx, [esp + 0x78]
call fcn.0043e7e9
test al, al
je 0x401a93
mov al, byte [ebp + 0xb0]
cmp al, 3
jae 0x401a93
mov edx, dword [esp]
mov ecx, dword [esp + 4]
inc al
mov byte [ebp + 0xb0], al
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov byte [esp + 0xc], 0x14
jmp 0x401ab0
lea ebp, [esp + 0x8c]
lea edx, [esp + 0x78]
mov ecx, ebp
call fcn.0043d834
cmp dword [esp + 0x8c], 0x80000004
jne 0x401adf
mov edx, dword [esp + 0x1a0]
lea eax, [esp + 0x90]
lea ecx, [esp + 0xc]
push eax
push 0x10
call fcn.0043de50
pop eax
pop ecx
mov ecx, dword [esp]
mov edx, dword [esp + 4]
call fcn.0040342c
jmp 0x401ac0
lea ecx, [esp + 0xc]
mov edx, ebp
push 0x14
push 1
call fcn.0043e3c1
pop eax
pop ecx
mov ecx, dword [esp]
mov edx, dword [esp + 4]
call fcn.0040342c
mov ecx, esi
mov edx, edi
call fcn.0041ae6b
lea ebp, [esp + 0x8c]
cmp byte [esp + 0xc], 0x14
jne 0x401d24
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
jmp 0x401906
push 0x20
pop ecx
lea edi, [esp + 0x10c]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x10c], 0x80000000
jne 0x401b2a
mov edx, dword [esp + 0x1a0]
mov ecx, ebp
push ebx
call fcn.0043e2c0
pop eax
mov al, byte [esp + 0x8c]
cmp al, 0x14
jne 0x401bf9
lea ecx, [esp + 0x10c]
call fcn.0043d7f2
jmp 0x401906
mov edx, dword [esp + 0x1a0]
cmp byte [edx + 0xab], 0
je 0x401b9e
cmp word [edx + 0x9c], 5
je 0x401b9e
mov eax, dword [esp + 0x10c]
add eax, 0x80000000
cmp eax, 4
setb cl
cmp eax, 1
setne al
test cl, al
jne 0x401b9e
mov al, byte [edx + 0xa8]
cmp byte [esp + 0x184], al
jne 0x401b9e
mov ecx, edx
push 0x18
pop edx
call fcn.0043de1d
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10c]
mov byte [esp + 0xc], 0x14
call fcn.0043d7f2
jmp 0x401ab9
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
push 0x20
pop ecx
lea ebp, [esp + 0x8c]
lea esi, [esp + 0x10c]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, edx
push ebp
lea eax, [esp + 0x64]
push eax
push dword [esp + 8]
lea edi, [esp + 0x74]
push edi
mov eax, dword [esp + 0x14]
call dword [eax + 0xc]
add esp, 0x10
movzx eax, byte [esp + 0x68]
cmp eax, 2
jae 0x401c2b
lea ecx, [esp + 0xc]
mov edx, esi
push edi
push 1
call fcn.0043de50
pop eax
pop ecx
jmp 0x401ac0
lea ecx, [esp + 0x8d]
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 7]
lea ecx, [esp + 0xd]
movsd qword [ecx + 7], xmm1
movsd qword [ecx], xmm0
lea ecx, [esp + 0x10c]
mov byte [esp + 0xc], al
call fcn.0043d7f2
jmp 0x401a85
cmp eax, 0x14
jne 0x401c4a
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov byte [esp + 0xc], 0x14
jmp 0x401ac0
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x70]
movsd qword [esp + 0x14], xmm1
movsd qword [esp + 0xc], xmm0
jmp 0x401ac0
lea ecx, [esp + 0x10c]
call fcn.0040294c
cmp al, 0xd
jne 0x401ccf
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x110]
movzx ecx, bl
mov byte [eax], 5
call fcn.00425168
jmp 0x401ea9
lea edx, [esp + 0x20]
mov byte [edx], cl
movzx ecx, word [ebp + 0xf9]
mov word [edx + 1], cx
mov cl, byte [ebp + 0xfb]
mov byte [edx + 3], cl
mov dword [edx + 4], ebx
mov dword [edx + 8], esi
lea esi, [esp + 0x8c]
mov dword [edx + 0xc], eax
mov ecx, esi
call fcn.00437f60
mov ecx, edi
call fcn.0043e7d2
jmp 0x401d5d
movsd xmm0, qword [esp + 0x10c]
mov eax, dword [esp + 8]
movsd qword [eax], xmm0
jmp 0x401ea9
mov ecx, 0x80000000
mov edx, edi
call fcn.00403919
mov ecx, dword [esp + 0x1c]
call fcn.0043e7d2
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov byte [ebp + 0xf8], 0x14
mov edx, ebp
mov dword [ebp + 0xfc], eax
mov dword [ebp + 0x100], ecx
lea ecx, [esp + 0x24]
call fcn.0043e506
jmp 0x401e22
lea edx, [esp + 0xc]
lea esi, [esp + 0x8c]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov ecx, esi
movsd qword [esp + 0x28], xmm1
movsd qword [esp + 0x20], xmm0
call fcn.00437f60
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.0043e7d2
mov ebp, dword [esp + 0x1a0]
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
movsd qword [edi + 8], xmm1
movsd qword [edi], xmm0
jmp 0x401e1b
movzx eax, byte [esp + 0x90]
cmp eax, 2
je 0x401db8
cmp eax, 5
je 0x401d9b
cmp eax, 0x11
jne 0x401dcf
mov ecx, ebx
mov edx, ebp
lea eax, [esp + 0x90]
push eax
push 4
jmp 0x401dc6
push dword [esp]
mov eax, dword [esp + 8]
call dword [eax + 0x14]
add esp, 4
mov ecx, ebx
mov edx, ebp
lea eax, [esp + 0x90]
push eax
push 2
jmp 0x401dc6
mov ecx, ebx
mov edx, ebp
lea eax, [esp + 0x90]
push eax
push 0x10
call fcn.0043de50
pop eax
pop ecx
jmp 0x401de8
lea eax, [esp + 0x90]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [ebx + 8], xmm1
movsd qword [ebx], xmm0
mov eax, dword [esp + 0x110]
mov ecx, dword [ebx + 0xc]
movsd xmm0, qword [ebx + 4]
mov edx, dword [esp + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp]
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x24], xmm0
call fcn.0040342c
cmp byte [esp + 0x20], 0x14
jne 0x401e60
mov eax, dword [esp + 0x2c]
movsd xmm0, qword [esp + 0x24]
cmp al, 2
mov dword [esp + 0x54], eax
movsd qword [esp + 0x4c], xmm0
je 0x401e98
test al, al
je 0x401e50
cmp byte [ebp + 0xaa], 0
je 0x401eb4
cmp byte [ebp + 0xab], 0
je 0x401eb4
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x34]
mov byte [eax], 4
mov dword [eax + 4], ecx
jmp 0x401ea9
mov edx, dword [esp + 0x38]
lea esi, [esp + 0x8c]
mov ecx, esi
push dword [esp + 0x1a4]
push ebp
call fcn.00401ed5
pop eax
pop ecx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.004030a6
lea eax, [esp + 0x20]
lea ecx, [esp + 0x4c]
push 0x15
pop edx
push eax
call fcn.0040290c
pop eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
add esp, 0x18c
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x8c]
push 0x25
pop edx
mov ecx, esi
push 0x13
push str.tls_handshake_alerttls_handshake_eof
call fcn.0042ef24
pop eax
pop ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
jmp 0x401ea0