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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
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 - 0x48], esi
je 0x542d51
mov ecx, dword [ebp + 0x10]
mov esi, 0x7fffffff
mov eax, dword [eax]
cmp ecx, 0x7fffffff
mov dword [ebp - 0x44], eax
cmovb esi, ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ecx
jmp 0x542c00
push esi
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, edi
lea ecx, [ebp - 0x28]
mov edx, ebx
push 1
push dword [ebp - 0x44]
call sym.tokio::runtime::io::registration::Registration::poll_ready::h08357388fbeac282
add esp, 8
mov eax, dword [ebp - 0x28]
cmp eax, 2
je 0x542d6a
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test eax, eax
jne 0x542d7c
mov dword [ebp - 0x30], edi
push 0
push dword [ebp - 0x40]
push dword [ebp + 0xc]
push dword [ebp - 0x48]
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x542c50
mov byte [ebp - 0x1c], 4
mov dword [ebp - 0x18], eax
jmp 0x542cb0
call sub.ws2_32.dll_WSAGetLastError
mov byte [ebp - 0x19], 0
mov word [ebp - 0x1b], 0
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
call sym.std::io::error::Error::kind::hed2cab29b561864c
cmp al, 0xd
mov eax, dword [ebp - 0x3c]
jne 0x542cb0
test eax, eax
je 0x542cb0
mov edx, dword [eax]
mov edi, eax
mov eax, dword [eax + 4]
lock inc dword [eax]
jle 0x542da4
add edx, 8
lea ecx, [ebp - 0x28]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
call sym.mio::sys::windows::selector::SelectorInner::reregister::hcc094053d8254805
add esp, 0xc
cmp byte [ebp - 0x28], 4
jne 0x542d46
nop dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp cl, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x542d86
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x38]
call sym.std::io::error::Error::kind::hed2cab29b561864c
cmp al, 0xd
jne 0x542d8e
mov eax, dword [ebx + 0x48]
movzx ecx, byte [ebp - 0x30]
and esi, 0x23
xor esi, 0x2f
shl ecx, 0x10
nop dword [eax + eax]
mov edx, eax
mov edi, ebx
shr edx, 0x10
cmp byte [ebp - 0x30], dl
jne 0x542d09
mov edx, eax
and edx, esi
or edx, ecx
lock cmpxchg dword [ebx + 0x48], edx
jne 0x542cf0
cmp byte [ebp - 0x2c], 3
jne 0x542c00
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 4]
mov esi, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
test eax, eax
je 0x542d2a
push esi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x542bee
cmp dword [ebx + 8], 9
jb 0x542be0
mov esi, dword [esi - 4]
jmp 0x542be0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x542cb6
lea ecx, [ebp - 0x28]
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 - 0x28]
cmp eax, 2
jne 0x542d72
mov eax, dword [ebp - 0x14]
mov byte [eax], 5
jmp 0x542d9c
test eax, eax
je 0x542da6
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
jmp 0x542d9c
mov eax, dword [ebp - 0x14]
mov byte [eax], 4
jmp 0x542d96
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
mov ecx, 0x5b4038
call sym.core::option::unwrap_failed::h4002a2165d665d64
mov edi, eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
call sym.core::ptr::drop_in_place_LT_core..option..Option_LT_std..io..error..Error_GT__GT_::hd3d946b4dc649b03
jmp 0x542df2
push edi
call sym.__Unwind_Resume
nop dword [eax + eax]