Function at 0x461750
Capabilities:
Get socket status

Disassembly:
sub esp, 0x344
mov edx, dword [esp + 0x350]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x34c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
push ebp
push esi
push edi
test ebx, ebx
je 0x461924
mov ecx, dword [esp + 0x35c]
test ecx, ecx
je 0x461924
lea ecx, [ecx]
cmp dword [ebx + eax*8], 0xffffffff
jne 0x4617b0
inc eax
cmp eax, ecx
jb 0x4617a0
jmp 0x461924
test edx, edx
jle 0x4617e5
lea eax, [esp + 0x38]
mov dword [esp + 0x18], edx
push eax
call fcn.0046ad30
add esp, 4
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x35c]
jmp 0x4617e9
mov eax, dword [esp + 0x44]
or ebp, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ebp
xor edi, edi
mov ebp, dword [esp + 0x358]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x14c], ebx
add ebp, 4
mov dword [esp + 0x250], esi
mov eax, ecx
mov dword [esp + 0x1c], ecx
lea esp, [esp]
xor ecx, ecx
mov word [ebp + 2], cx
mov ecx, dword [ebp - 4]
cmp ecx, 0xffffffff
je 0x461901
movzx eax, word [ebp]
mov edx, eax
mov dword [esp + 0x14], edx
test eax, 0x710
je 0x4618fd
cmp ecx, dword [esp + 0x10]
jbe 0x461851
mov dword [esp + 0x10], ecx
test eax, 0x300
je 0x461881
xor eax, eax
test edi, edi
je 0x46186b
mov edi, edi
cmp dword [esp + eax*4 + 0x4c], ecx
je 0x46186b
inc eax
cmp eax, edi
jb 0x461860
cmp eax, edi
jne 0x461881
cmp edi, 0x40
jae 0x461881
mov dword [esp + eax*4 + 0x4c], ecx
mov edi, dword [esp + 0x48]
inc edi
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x14]
test al, 0x10
je 0x4618c1
xor eax, eax
test ebx, ebx
je 0x46189e
nop
cmp dword [esp + eax*4 + 0x150], ecx
je 0x46189e
inc eax
cmp eax, ebx
jb 0x461890
cmp eax, ebx
jne 0x4618bd
cmp ebx, 0x40
jae 0x4618bd
mov dword [esp + eax*4 + 0x150], ecx
mov ebx, dword [esp + 0x14c]
inc ebx
mov dword [esp + 0x14c], ebx
mov eax, dword [esp + 0x14]
test eax, 0x600
je 0x4618fd
xor eax, eax
test esi, esi
je 0x4618de
mov edi, edi
cmp dword [esp + eax*4 + 0x254], ecx
je 0x4618de
inc eax
cmp eax, esi
jb 0x4618d0
cmp eax, esi
jne 0x4618fd
cmp esi, 0x40
jae 0x4618fd
mov dword [esp + eax*4 + 0x254], ecx
mov esi, dword [esp + 0x250]
inc esi
mov dword [esp + 0x250], esi
mov eax, dword [esp + 0x1c]
add ebp, 8
sub eax, 1
mov dword [esp + 0x1c], eax
jne 0x461820
mov edx, dword [esp + 0x360]
test edi, edi
jne 0x46194b
test ebx, ebx
jne 0x46194b
test esi, esi
jne 0x46194b
test edx, edx
je 0x461b5a
jns 0x461b53
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x344
ret
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [esp + 0x30]
xor eax, eax
test edx, edx
sets al
dec eax
and eax, ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
lea esp, [esp]
test edx, edx
jle 0x4619a9
mov ecx, dword [esp + 0x18]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x30], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
jmp 0x4619bb
jne 0x4619bb
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
push eax
neg esi
lea eax, [esp + 0x254]
sbb esi, esi
and esi, eax
neg ebx
lea eax, [esp + 0x150]
sbb ebx, ebx
and ebx, eax
neg edi
push esi
sbb edi, edi
lea eax, [esp + 0x50]
push ebx
and edi, eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x461ac0
call ebp
test eax, eax
je 0x461a11
cmp dword [0x5219e0], 0
jne 0x46193d
cmp eax, 0x2714
jne 0x46193d
mov edx, dword [esp + 0x360]
test edx, edx
jg 0x461a3b
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x14c]
mov esi, dword [esp + 0x250]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x461970
lea eax, [esp + 0x38]
push eax
call fcn.0046ad30
mov edx, eax
sub esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov ecx, esp
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
call fcn.0046ade0
mov edx, dword [esp + 0x380]
add esp, 0x20
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x461b5a
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x14c]
mov esi, dword [esp + 0x250]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x461970
test eax, eax
js 0x46193d
je 0x461b5a
mov esi, dword [esp + 0x358]
xor edi, edi
add esi, 6
mov ebp, 0x300
mov ebx, 0x400
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x461b39
lea ecx, [esp + 0x48]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x461b03
or word [esi], bp
lea eax, [esp + 0x14c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x461b1b
or word [esi], 0x10
lea eax, [esp + 0x250]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x461b32
or word [esi], bx
cmp word [esi], 0
je 0x461b39
inc edi
add esi, 8
sub dword [esp + 0x35c], 1
jne 0x461ae4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x344
ret
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x344
ret