Function at 0x100bc2d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x320], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], eax
test ebx, ebx
je 0x100bc32b
test edx, edx
je 0x100bc32b
nop
cmp dword [ebx + eax*8], 0xffffffff
jne 0x100bc356
inc eax
cmp eax, edx
jb 0x100bc320
test ecx, ecx
je 0x100bc717
jns 0x100bc710
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push esi
test ecx, ecx
jle 0x100bc38f
mov dword [ebp - 0x328], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, edx
shr eax, 6
imul ecx, eax, 0x3e8
mov dword [ebp - 0x330], eax
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [ebp - 0x32c], eax
push edi
xor edi, edi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x310], edi
or eax, 0xffffffff
mov dword [ebp - 0x20c], ebx
xor edx, edx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x318], edx
lea esp, [esp]
mov ecx, dword [ebp - 0x324]
xor eax, eax
mov word [ecx + edx*8 + 6], ax
mov ecx, dword [ecx + edx*8]
cmp ecx, 0xffffffff
je 0x100bc4b1
mov eax, dword [ebp - 0x324]
movzx edx, word [eax + edx*8 + 4]
mov eax, dword [ebp - 0x314]
test dl, 7
je 0x100bc4ab
cmp ecx, eax
cmova eax, ecx
mov dword [ebp - 0x314], eax
test dl, 1
je 0x100bc43b
xor eax, eax
test edi, edi
je 0x100bc41e
lea esp, [esp]
cmp dword [ebp + eax*4 - 0x30c], ecx
je 0x100bc41e
inc eax
cmp eax, edi
jb 0x100bc410
cmp eax, edi
jne 0x100bc43b
cmp edi, 0x40
jae 0x100bc43b
mov dword [ebp + eax*4 - 0x30c], ecx
mov edi, dword [ebp - 0x310]
inc edi
mov dword [ebp - 0x310], edi
test dl, 4
je 0x100bc471
xor eax, eax
test ebx, ebx
je 0x100bc454
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x100bc454
inc eax
cmp eax, ebx
jb 0x100bc446
cmp eax, ebx
jne 0x100bc471
cmp ebx, 0x40
jae 0x100bc471
mov dword [ebp + eax*4 - 0x208], ecx
mov ebx, dword [ebp - 0x20c]
inc ebx
mov dword [ebp - 0x20c], ebx
test dl, 2
je 0x100bc4ab
xor eax, eax
test esi, esi
je 0x100bc48e
lea esp, [esp]
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x100bc48e
inc eax
cmp eax, esi
jb 0x100bc480
cmp eax, esi
jne 0x100bc4ab
cmp esi, 0x40
jae 0x100bc4ab
mov dword [ebp + eax*4 - 0x104], ecx
mov esi, dword [ebp - 0x108]
inc esi
mov dword [ebp - 0x108], esi
mov edx, dword [ebp - 0x318]
inc edx
mov dword [ebp - 0x318], edx
cmp edx, dword [ebp - 0x320]
jb 0x100bc3c0
test edi, edi
jne 0x100bc515
test ebx, ebx
jne 0x100bc515
test esi, esi
jne 0x100bc515
mov eax, dword [ebp - 0x31c]
test eax, eax
je 0x100bc502
jns 0x100bc4fb
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x31c]
lea ecx, [ebp - 0x338]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 0x318], ecx
mov ecx, dword [ebp - 0x314]
inc ecx
mov dword [ebp - 0x314], ecx
jmp 0x100bc540
test eax, eax
jle 0x100bc577
mov ecx, dword [ebp - 0x328]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x338], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x334], eax
jmp 0x100bc58d
jne 0x100bc58d
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
push dword [ebp - 0x318]
xor ecx, ecx
lea eax, [ebp - 0x108]
test esi, esi
cmove eax, ecx
test ebx, ebx
push eax
lea eax, [ebp - 0x20c]
cmove eax, ecx
test edi, edi
push eax
lea eax, [ebp - 0x310]
cmove eax, ecx
push eax
push dword [ebp - 0x314]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x100bc685
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x100bc5f0
cmp dword [0x10279844], 0
jne 0x100bc4e7
cmp eax, 0x2714
jne 0x100bc4e7
mov eax, dword [ebp - 0x31c]
test eax, eax
jg 0x100bc611
mov edi, dword [ebp - 0x310]
mov ebx, dword [ebp - 0x20c]
mov esi, dword [ebp - 0x108]
jmp 0x100bc540
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [ebp - 0x330]
shr edx, 6
imul ecx, edx, 0x3e8
sub eax, edx
imul ebx, eax, 0x3e8
mov eax, 0x10624dd3
sub esi, ecx
imul ecx, esi, 0x3e8
sub ecx, dword [ebp - 0x32c]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, dword [ebp - 0x31c]
add ebx, eax
mov dword [ebp - 0x328], ebx
test ebx, ebx
jle 0x100bc502
mov edi, dword [ebp - 0x310]
mov ebx, dword [ebp - 0x20c]
mov esi, dword [ebp - 0x108]
jmp 0x100bc540
test eax, eax
js 0x100bc4e7
je 0x100bc502
mov esi, dword [ebp - 0x324]
xor ebx, ebx
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
add esi, 6
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x100bc6f2
lea ecx, [ebp - 0x310]
push ecx
push eax
call edi
test eax, eax
je 0x100bc6c3
or word [esi], 1
lea eax, [ebp - 0x20c]
push eax
push dword [esi - 6]
call edi
test eax, eax
je 0x100bc6d7
or word [esi], 4
lea eax, [ebp - 0x108]
push eax
push dword [esi - 6]
call edi
test eax, eax
je 0x100bc6eb
or word [esi], 2
cmp word [esi], 0
je 0x100bc6f2
inc ebx
add esi, 8
dec dword [ebp - 0x320]
jne 0x100bc6a4
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret