Function at 0x421a00
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c381
mov eax, dword fs:[0]
push eax
mov eax, 0x3014
call fcn.00537af0
mov eax, dword [0x5b5be8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0xffffffff
je 0x421dd2
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x22c]
lea ebx, [esi + 0x330]
mov dword [esi + 0x128], 0
mov dword [edi], 0
mov dword [ebx], 0
mov dword [esi + 0x12c], eax
mov ecx, dword [edi]
inc dword [esi + 0x128]
xor eax, eax
test ecx, ecx
je 0x421a8c
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x230]
cmp dword [ecx], edx
je 0x421a8c
inc eax
add ecx, 4
cmp eax, dword [edi]
jb 0x421a80
mov ecx, dword [edi]
cmp eax, ecx
jne 0x421aa3
cmp ecx, 0x40
jae 0x421aa3
mov ecx, dword [esi + 0x14]
mov dword [esi + eax*4 + 0x230], ecx
inc dword [edi]
xor eax, eax
cmp dword [ebx], eax
jbe 0x421abe
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x334]
cmp dword [ecx], edx
je 0x421abe
inc eax
add ecx, 4
cmp eax, dword [ebx]
jb 0x421ab2
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x421ad5
cmp ecx, 0x40
jae 0x421ad5
mov ecx, dword [esi + 0x14]
mov dword [esi + eax*4 + 0x334], ecx
inc dword [ebx]
lea eax, [ebp - 0x301c]
push eax
push ebx
push edi
xor ecx, ecx
lea eax, [esi + 0x128]
push eax
push ecx
mov dword [ebp - 0x301c], ecx
mov dword [ebp - 0x3018], ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x421d3d
test eax, eax
je 0x421dd2
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
push eax
call ebx
test eax, eax
jne 0x421d3d
mov ecx, dword [esi + 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x421cf9
mov eax, dword [esi + 0x14]
push edi
push eax
call ebx
test eax, eax
je 0x421cf9
push 0xfff
lea ecx, [ebp - 0x100f]
push 0
push ecx
mov byte [ebp - 0x1010], 0
call fcn.00535390
add esp, 0xc
cmp byte [esi + 0x444], 0
je 0x421c07
mov edi, dword [esi + 0x450]
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov dword [edi + 0x20], str.XSyncStreamConnection.cpp_:_XSyncStreamConnection::Select
mov dword [edi + 0x24], 0xfb
mov dword [ebp - 0x3014], edi
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp eax, 0x1000
jbe 0x421bb3
mov ebx, 0x1000
jmp 0x421bc2
mov ecx, dword [esi + 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ebx, eax
mov ecx, dword [esi + 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
test eax, eax
je 0x421bf5
test ebx, ebx
je 0x421bf5
cmp ebx, 0x1000
ja 0x421bf5
push ebx
push eax
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
call fcn.005326d1
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
jmp 0x421c68
mov ecx, dword [esi + 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp eax, 0x1000
jbe 0x421c22
mov ebx, 0x1000
jmp 0x421c31
mov ecx, dword [esi + 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ebx, eax
mov ecx, dword [esi + 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
test eax, eax
je 0x421c68
test ebx, ebx
je 0x421cf9
cmp ebx, 0x1000
ja 0x421c68
push ebx
push eax
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
call fcn.005326d1
add esp, 0x10
test ebx, ebx
jle 0x421cf9
mov eax, dword [esi + 0x14]
push 0
push ebx
lea edx, [ebp - 0x1010]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x421cf2
cmp byte [esi + 0x444], 0
je 0x421ce0
mov edi, dword [esi + 0x450]
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov dword [edi + 0x20], str.XSyncStreamConnection.cpp_:_XSyncStreamConnection::Select
mov dword [edi + 0x24], 0x10d
mov dword [ebp - 0x3014], edi
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x43c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebx
push 0
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
jmp 0x421cf9
mov ecx, dword [esi + 0x43c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebx
push 0
call edx
jmp 0x421cf9
mov byte [esi + 0x124], 0
cmp byte [esi + 0x444], 0
je 0x421dd2
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x128]
push ecx
push eax
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x421dd2
mov eax, dword [esi + 0x14]
push 0
push 0x2000
lea ecx, [ebp - 0x3010]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jg 0x421d49
mov byte [esi + 0x124], 0
jmp 0x421dd2
mov ecx, dword [esi + 0x438]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 0
push ebx
lea eax, [ebp - 0x3010]
push eax
push eax
call edx
cmp byte [esi + 0x444], 0
je 0x421dbd
mov edi, dword [esi + 0x454]
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov dword [edi + 0x20], str.XSyncStreamConnection.cpp_:_XSyncStreamConnection::Select
mov dword [edi + 0x24], 0x128
mov dword [ebp - 0x3014], edi
mov dword [ebp - 4], 2
mov esi, dword [esi + 0x440]
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ebx
lea ecx, [ebp - 0x3010]
push ecx
mov ecx, esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
jmp 0x421dd2
mov ecx, dword [esi + 0x440]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push ebx
lea edx, [ebp - 0x3010]
push edx
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005320a3
mov esp, ebp
pop ebp
ret