Function at 0x10009470
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100699dd
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 - 0x10], 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 0x100097eb
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
mov dword [ecx + 8], 0xffffffff
xor ecx, ecx
mov esi, dword [ebx + 0xa8]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x14], eax
mov edi, dword [esi]
test edi, edi
je 0x10009534
mov edx, esi
nop dword [eax]
mov ebx, dword [ebp - 0x14]
lea eax, [edx + 4]
cmp dword [eax], ebx
lea edx, [eax]
mov ebx, dword [ebp - 0x10]
je 0x100095ab
inc ecx
cmp ecx, edi
jb 0x10009520
mov ecx, dword [ebx + 0xac]
inc edi
cmp edi, ecx
jbe 0x1000959a
mov eax, ecx
shr eax, 1
add eax, ecx
cmp eax, edi
cmovae edi, eax
lea eax, [edi*4 + 4]
push eax
call fcn.10045ee0
mov ecx, dword [ebx + 0xa8]
mov esi, eax
add esp, 4
mov ecx, dword [ecx]
mov dword [esi], ecx
xor ecx, ecx
mov edx, dword [ebx + 0xa8]
cmp dword [edx], ecx
jbe 0x10009585
mov eax, dword [edx + ecx*4 + 4]
mov dword [esi + ecx*4 + 4], eax
inc ecx
mov edx, dword [ebx + 0xa8]
cmp ecx, dword [edx]
jb 0x10009572
push edx
call fcn.1004637e
add esp, 4
mov dword [ebx + 0xa8], esi
mov dword [ebx + 0xac], edi
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
mov dword [esi + eax*4 + 4], ecx
mov eax, dword [ebx + 0xa8]
inc dword [eax]
mov esi, dword [ebx + 0xcc]
xor edi, edi
test esi, esi
je 0x100095cb
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100095cb
mov esi, dword [esi + 4]
test esi, esi
jne 0x100095b7
lea eax, [ebx + 0x38]
mov dword [ebp - 0x14], 3
lea esi, [ebx + 0xb0]
mov dword [ebp - 0x1c], eax
mov ebx, eax
push ecx
push ebx
lea ecx, [esi - 8]
call fcn.10007b50
cmp dword [esi], edi
cmova edi, dword [esi]
add ebx, 0x1c
sub dword [ebp - 0x14], 1
lea esi, [esi + 0xc]
jne 0x100095e0
mov ebx, dword [ebp - 0x10]
push ecx
lea esi, [ebx + 0x8c]
push esi
lea ecx, [ebx + 0xb4]
call fcn.10007b50
mov eax, dword [ebx + 0xbc]
cmp eax, edi
push ecx
push esi
lea ecx, [ebx + 0xc0]
cmova edi, eax
call fcn.10007b50
mov eax, dword [ebx + 0xc8]
mov ecx, 1
mov esi, dword [ebx + 0xcc]
cmp eax, edi
cmova edi, eax
test esi, esi
je 0x10009654
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 0x10009643
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 - 0x18], 0
mov dword [ebp - 0x14], 0x10086bb8
test eax, eax
jne 0x100096e0
test edx, edx
jne 0x100096e0
test ecx, ecx
jne 0x100096e0
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 0x1000976c
cmp dword [ebp - 0x28], 0
jne 0x10009706
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x10009700
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 - 0x18]
mov edx, edi
shr edx, 0x1f
call fcn.10007cd0
lea esi, [ebx + 0xc0]
test edi, edi
jle 0x1000976c
push dword [ebx + 0xa8]
push dword [ebx + 0x30]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1000976c
lea ecx, [ebx + 0x30]
call fcn.10008d80
test al, al
jne 0x10009765
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x30]
mov byte [ebp - 0x2c], 1
call fcn.10008d10
dec edi
cmp byte [ebp - 0x2c], 0
jne 0x1000977a
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 0x100097cc
push edi
lea eax, [ebx + 0x8c]
mov ecx, esi
push eax
call fcn.10007bf0
push edi
lea eax, [ebx + 0x8c]
push eax
lea ecx, [ebx + 0xb4]
call fcn.10007bf0
lea edi, [ebx + 0x70]
mov esi, 2
mov ebx, dword [ebp - 0x20]
nop
push dword [ebp + 0xc]
mov ecx, ebx
push edi
call fcn.10007bf0
sub edi, 0x1c
sub ebx, 0xc
sub esi, 1
jns 0x100097b0
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx + 0xcc]
test esi, esi
je 0x100097e5
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x10]
mov esi, dword [esi + 4]
test esi, esi
jne 0x100097d6
cmp byte [ebp - 0x2c], 0
je 0x100097f5
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