Function at 0x466b10
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x48948c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x184], ecx
call fcn.004581d0
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
call fcn.004581d0
cmp eax, dword [ebp - 0x14]
jb 0x466b67
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x466ef3
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x13c], 0
jmp 0x466b97
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
mov ecx, dword [ebp - 0x184]
call fcn.00418930
cmp dword [ebp - 0x13c], eax
jae 0x466c85
mov dword [ebp - 0x140], 0
jmp 0x466bc9
mov edx, dword [ebp - 0x140]
add edx, 1
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x12c]
jae 0x466c03
mov ecx, dword [ebp - 0x13c]
push ecx
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov ecx, dword [eax]
call fcn.0041cec0
mov edx, dword [ebp - 0x140]
cmp dword [ebp + edx*4 - 0x128], eax
jne 0x466c01
jmp 0x466c03
jmp 0x466bba
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x12c]
jne 0x466c4f
cmp dword [ebp - 0x12c], 0x40
jae 0x466c4f
mov ecx, dword [ebp - 0x13c]
push ecx
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov ecx, dword [eax]
call fcn.0041cec0
mov edx, dword [ebp - 0x140]
mov dword [ebp + edx*4 - 0x128], eax
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
xor ecx, ecx
jne 0x466bae
mov edx, dword [ebp - 0x13c]
push edx
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov ecx, dword [eax]
call fcn.0041cec0
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.0041ce50
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x466b88
call fcn.004581d0
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x138]
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x130], edx
lea edx, [ebp - 0x134]
push edx
push 0
push 0
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x466d3d
push str.SocketGroup::listen:_could_not_perform_socket_select
lea ecx, [ebp - 0x180]
call fcn.0040cd80
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x180]
push edx
push 0xb
lea ecx, [ebp - 0x164]
call fcn.004190d0
push 0x48231c
lea eax, [ebp - 0x164]
push eax
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.0040dc10
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x20]
jge 0x466ee4
mov ecx, dword [ebp - 0x184]
call fcn.00418930
cmp dword [ebp - 0x1c], eax
jae 0x466ee4
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov ecx, dword [eax]
call fcn.0041cec0
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x466ed6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov ecx, dword [eax]
call fcn.0041cea0
cmp eax, 1
jne 0x466e1c
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov ecx, dword [eax]
call fcn.0041ce80
test eax, eax
jne 0x466e1c
mov ecx, dword [ebp - 0x184]
cmp dword [ecx + 0x18], 0
je 0x466e17
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0x18]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx]
call eax
jmp 0x466ed6
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov ecx, dword [eax]
call fcn.0041ce80
test eax, eax
jne 0x466e93
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov ecx, dword [eax]
call fcn.004584d0
test eax, eax
jne 0x466e93
mov eax, dword [ebp - 0x184]
cmp dword [eax + 0x20], 0
je 0x466e91
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x184]
mov ecx, dword [ecx + 0x20]
mov edx, dword [eax]
mov eax, dword [edx]
call eax
jmp 0x466ed6
mov ecx, dword [ebp - 0x184]
cmp dword [ecx + 0x1c], 0
je 0x466ed6
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x184]
call fcn.0041cf50
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0x1c]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x466d4b
cmp dword [ebp - 0x18], 0
je 0x466eee
mov byte [ebp - 0xe], 1
jmp 0x466b51
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8