Function at 0x466230
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a270
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.00457ab0
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
call fcn.00457ab0
cmp eax, dword [ebp - 0x14]
jb 0x466287
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x466613
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x13c], 0
jmp 0x4662b7
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 0x4663a5
mov dword [ebp - 0x140], 0
jmp 0x4662e9
mov edx, dword [ebp - 0x140]
add edx, 1
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x12c]
jae 0x466323
mov ecx, dword [ebp - 0x13c]
push ecx
mov ecx, dword [ebp - 0x184]
call fcn.00419860
mov ecx, dword [eax]
call fcn.0041cef0
mov edx, dword [ebp - 0x140]
cmp dword [ebp + edx*4 - 0x128], eax
jne 0x466321
jmp 0x466323
jmp 0x4662da
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x12c]
jne 0x46636f
cmp dword [ebp - 0x12c], 0x40
jae 0x46636f
mov ecx, dword [ebp - 0x13c]
push ecx
mov ecx, dword [ebp - 0x184]
call fcn.00419860
mov ecx, dword [eax]
call fcn.0041cef0
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 0x4662ce
mov edx, dword [ebp - 0x13c]
push edx
mov ecx, dword [ebp - 0x184]
call fcn.00419860
mov ecx, dword [eax]
call fcn.0041cef0
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.0041ce80
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x4662a8
call fcn.00457ab0
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 0x46645d
push str.SocketGroup::listen:_could_not_perform_socket_select
lea ecx, [ebp - 0x180]
call fcn.0040cda0
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x180]
push edx
push 0xb
lea ecx, [ebp - 0x164]
call fcn.00419170
push 0x4822c4
lea eax, [ebp - 0x164]
push eax
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.0040dc00
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x20]
jge 0x466604
mov ecx, dword [ebp - 0x184]
call fcn.00418930
cmp dword [ebp - 0x1c], eax
jae 0x466604
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x184]
call fcn.00419860
mov ecx, dword [eax]
call fcn.0041cef0
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4665f6
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.00419860
mov ecx, dword [eax]
call fcn.0041ced0
cmp eax, 1
jne 0x46653c
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x184]
call fcn.00419860
mov ecx, dword [eax]
call fcn.0041ceb0
test eax, eax
jne 0x46653c
mov ecx, dword [ebp - 0x184]
cmp dword [ecx + 0x18], 0
je 0x466537
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.00419860
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 0x4665f6
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x184]
call fcn.00419860
mov ecx, dword [eax]
call fcn.0041ceb0
test eax, eax
jne 0x4665b3
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x184]
call fcn.00419860
mov ecx, dword [eax]
call fcn.00457db0
test eax, eax
jne 0x4665b3
mov eax, dword [ebp - 0x184]
cmp dword [eax + 0x20], 0
je 0x4665b1
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.00419860
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 0x4665f6
mov ecx, dword [ebp - 0x184]
cmp dword [ecx + 0x1c], 0
je 0x4665f6
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.00419860
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 0x46646b
cmp dword [ebp - 0x18], 0
je 0x46660e
mov byte [ebp - 0xe], 1
jmp 0x466271
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8