Function at 0x55f070
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x44]
call eax
movzx ecx, al
test ecx, ecx
jne 0x55f097
xor al, al
jmp 0x55f2c4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x134], 0x7000
jge 0x55f0ed
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x160]
call fcn.00518430
cmp eax, 0x400
jle 0x55f0ed
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x104]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x104], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x104]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
je 0x55f0ed
mov al, 1
jmp 0x55f2c4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x160]
call fcn.00513db0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov ecx, dword [ebp - 0x64]
or ecx, dword [ebp - 0x60]
je 0x55f13a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x160]
call fcn.00518430
test eax, eax
jle 0x55f13a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x164]
call fcn.0055f350
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
jne 0x55f141
mov al, 1
jmp 0x55f2c4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x160]
call fcn.0051f5a0
movzx ecx, al
test ecx, ecx
jne 0x55f240
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x160]
call fcn.00518430
cmp eax, 0x100
jle 0x55f240
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x164]
add ecx, 0xb50
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov dword [ebp - 0x18], 0
jmp 0x55f1ae
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jae 0x55f1d6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x160]
call fcn.0055f2d0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
cmp dword [edx + ecx*4 + 4], eax
jne 0x55f1d4
jmp 0x55f1d6
jmp 0x55f1a5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jne 0x55f20d
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x40
jae 0x55f20d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x160]
call fcn.0055f2d0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx], ecx
xor eax, eax
jne 0x55f19c
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x160]
call fcn.0055f2d0
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x55f240
mov al, 1
jmp 0x55f2c4
mov dword [ebp - 0x1c], 0x4000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x164]
cmp dword [ecx + 0xab4], 0xc
jge 0x55f26f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x134], 0x7000
jge 0x55f26f
mov dword [ebp - 0x1c], 0x2000
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
jl 0x55f282
mov eax, dword [ebp - 8]
sub eax, 0x200
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x134], 0x40000
setge cl
movzx edx, cl
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x160]
call fcn.0055f2f0
mov eax, dword [ebp - 0x1c]
add eax, 0x400
push eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x160]
call fcn.0055f320
xor edx, edx
test eax, eax
setge dl
mov al, dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret