Function at 0x10009550
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a04d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10086040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x2c], 1
mov dword [ebp - 4], 0
cmp byte [ebx + 0xd0], 0
jne 0x100098db
mov eax, dword [ebx + 0xa8]
lea ecx, [ebx + 0xc0]
mov dword [ebp - 0x20], ecx
mov dword [eax], 0
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0xb0], 0xffffffff
mov dword [eax], 0
mov dword [ebx + 0xbc], 0xffffffff
mov eax, dword [ecx]
mov dword [eax], 0
xor eax, eax
mov dword [ecx + 8], 0xffffffff
mov esi, dword [ebx + 0xa8]
mov edi, dword [ebx + 0x30]
mov ecx, dword [esi]
test ecx, ecx
je 0x10009617
nop word [eax + eax]
cmp dword [esi + 4], edi
lea esi, [esi + 4]
je 0x10009699
inc eax
cmp eax, ecx
jb 0x10009600
mov esi, dword [ebx + 0xa8]
mov edx, dword [ebx + 0xac]
inc ecx
cmp ecx, edx
jbe 0x1000968b
mov eax, edx
shr eax, 1
add eax, edx
cmp eax, ecx
cmovae ecx, eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx*4 + 4]
push eax
call fcn.100463c4
mov ecx, dword [ebx + 0xa8]
mov esi, eax
add esp, 4
mov ecx, dword [ecx]
mov dword [esi], ecx
xor ecx, ecx
mov eax, dword [ebx + 0xa8]
cmp dword [eax], ecx
jbe 0x10009673
nop dword [eax + eax]
mov eax, dword [eax + ecx*4 + 4]
mov dword [esi + ecx*4 + 4], eax
inc ecx
mov eax, dword [ebx + 0xa8]
cmp ecx, dword [eax]
jb 0x10009660
push eax
call fcn.10046862
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [ebx + 0xa8], esi
mov dword [ebx + 0xac], eax
mov eax, dword [esi]
mov dword [esi + eax*4 + 4], edi
mov eax, dword [ebx + 0xa8]
inc dword [eax]
mov esi, dword [ebx + 0xcc]
xor edi, edi
test esi, esi
je 0x100096b9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100096b9
mov esi, dword [esi + 4]
test esi, esi
jne 0x100096a5
lea eax, [ebx + 0x38]
mov dword [ebp - 0x10], 3
lea esi, [ebx + 0xb0]
mov ebx, eax
nop dword [eax + eax]
push ecx
push ebx
lea ecx, [esi - 8]
call fcn.10007c00
cmp dword [esi], edi
cmova edi, dword [esi]
add ebx, 0x1c
sub dword [ebp - 0x10], 1
lea esi, [esi + 0xc]
jne 0x100096d0
mov ebx, dword [ebp - 0x18]
push ecx
lea esi, [ebx + 0x8c]
push esi
lea ecx, [ebx + 0xb4]
call fcn.10007c00
mov eax, dword [ebx + 0xbc]
cmp eax, edi
push ecx
push esi
lea ecx, [ebx + 0xc0]
cmova edi, eax
call fcn.10007c00
mov eax, dword [ebx + 0xc8]
mov ecx, 1
mov esi, dword [ebx + 0xcc]
cmp eax, edi
cmova edi, eax
test esi, esi
je 0x10009744
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [esi + 4]
mov ecx, eax
test esi, esi
jne 0x10009733
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x28], eax
imul eax, eax, 0xf4240
sub ecx, eax
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0xa8]
lea esi, [ebx + 0xc0]
mov ecx, dword [esi]
mov edx, dword [ebx + 0xb4]
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x10086be8
test eax, eax
jne 0x100097d0
test edx, edx
jne 0x100097d0
test ecx, ecx
jne 0x100097d0
mov eax, 0x10624dd3
imul dword [ebp - 0x24]
imul eax, dword [ebp - 0x28], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
jmp 0x1000985c
cmp dword [ebp - 0x28], 0
jne 0x100097f6
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x100097f0
cmp eax, 0x3e8
mov dword [ebp - 0x1c], 0x3e8
cmovl eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0xa8]
lea esi, [ebp - 0x28]
push esi
push ecx
push edx
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
lea ecx, [ebp - 0x14]
mov edx, edi
shr edx, 0x1f
call fcn.10007d80
lea esi, [ebx + 0xc0]
test edi, edi
jle 0x1000985c
push dword [ebx + 0xa8]
push dword [ebx + 0x30]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1000985c
lea ecx, [ebx + 0x30]
call fcn.10008e40
test al, al
jne 0x10009855
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x30]
mov byte [ebp - 0x2c], 1
call fcn.10008dc0
dec edi
cmp byte [ebp - 0x2c], 0
jne 0x1000986a
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x2c], 1
test edi, edi
mov edi, dword [ebp + 0xc]
jle 0x100098bc
push edi
lea eax, [ebx + 0x8c]
mov ecx, esi
push eax
call fcn.10007ca0
push edi
lea eax, [ebx + 0x8c]
push eax
lea ecx, [ebx + 0xb4]
call fcn.10007ca0
lea edi, [ebx + 0x70]
mov esi, 2
mov ebx, dword [ebp - 0x20]
nop
push dword [ebp + 0xc]
mov ecx, ebx
push edi
call fcn.10007ca0
sub edi, 0x1c
sub ebx, 0xc
sub esi, 1
jns 0x100098a0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx + 0xcc]
test esi, esi
je 0x100098d5
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x10]
mov esi, dword [esi + 4]
test esi, esi
jne 0x100098c6
cmp byte [ebp - 0x2c], 0
je 0x100098e5
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8