Function at 0x542e00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, dword [edx + 0xc]
mov eax, dword [ebp + 8]
mov ebx, dword [edx + 8]
mov dword [ebp - 0x14], ecx
cmp esi, 0xffffffff
mov dword [ebp - 0x3c], esi
je 0x542fda
mov eax, dword [eax]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], ecx
nop dword [eax]
lea ecx, [ebp - 0x20]
mov edx, ebx
push 1
push dword [ebp - 0x38]
call sym.tokio::runtime::io::registration::Registration::poll_ready::h08357388fbeac282
add esp, 8
mov eax, dword [ebp - 0x20]
cmp eax, 2
je 0x542ff3
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x543005
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x542ea0
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x34], 4
mov eax, dword [ebp - 0x34]
mov ecx, eax
jmp 0x542f10
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
call sym.std::io::error::Error::kind::hed2cab29b561864c
cmp al, 0xd
jne 0x542f04
mov eax, dword [ebp - 0x2c]
mov ecx, 0
test eax, eax
je 0x542f00
mov edx, dword [eax]
mov eax, dword [eax + 4]
lock inc dword [eax]
jle 0x543023
add edx, 8
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call sym.mio::sys::windows::selector::SelectorInner::reregister::hcc094053d8254805
add esp, 0xc
cmp byte [ebp - 0x20], 4
mov ecx, 0
jne 0x542fb8
xor eax, eax
jmp 0x542f10
xor eax, eax
xor ecx, ecx
nop dword [eax + eax]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
cmp al, 4
je 0x542fcc
lea ecx, [ebp - 0x28]
call sym.std::io::error::Error::kind::hed2cab29b561864c
cmp al, 0xd
jne 0x54300f
mov eax, dword [ebx + 0x48]
movzx ecx, byte [ebp - 0x10]
and edi, 0x23
xor edi, 0x2f
shl ecx, 0x10
nop
mov edx, eax
mov esi, ebx
shr edx, 0x10
cmp byte [ebp - 0x10], dl
jne 0x542f59
mov edx, eax
and edx, edi
or edx, ecx
lock cmpxchg dword [ebx + 0x48], edx
jne 0x542f40
movzx eax, byte [ebp - 0x28]
cmp al, 4
je 0x542e30
cmp al, 3
jne 0x542e30
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
test eax, eax
je 0x542f84
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x542fa1
cmp dword [ebx + 8], 9
jb 0x542f93
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push dword [ebp - 0x10]
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov ebx, esi
jmp 0x542e30
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
cmp al, 4
jne 0x542f1e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov byte [ecx], 4
mov dword [ecx + 4], eax
jmp 0x54301b
lea ecx, [ebp - 0x20]
mov edx, ebx
push 1
push dword [eax]
call sym.tokio::runtime::io::registration::Registration::poll_ready::h08357388fbeac282
add esp, 8
mov eax, dword [ebp - 0x20]
cmp eax, 2
jne 0x542ffb
mov eax, dword [ebp - 0x14]
mov byte [eax], 5
jmp 0x54301b
test eax, eax
je 0x543025
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x54301b
movsd xmm0, qword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
movsd qword [eax], xmm0
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
mov ecx, 0x5b4048
call sym.core::option::unwrap_failed::h4002a2165d665d64
mov edx, esi
mov esi, eax
xor ecx, ecx
call sym.core::ptr::drop_in_place_LT_core..option..Option_LT_std..io..error..Error_GT__GT_::hd3d946b4dc649b03
jmp 0x543070
push esi
call sym.__Unwind_Resume
nop word cs:[eax + eax]