Function at 0x100b8dd0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x318], ecx
cmp dword [ebp + 0x18], ecx
jl 0x100b8e12
jg 0x100b8e08
mov eax, dword [ebp + 0x14]
cmp eax, 0x7fffffff
jb 0x100b8e15
mov dword [ebp + 0x14], SysReAllocString
mov dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x100b8e44
cmp ebx, edi
jne 0x100b8e44
cmp dword [ebp + 0x10], edi
jne 0x100b8e44
push eax
call fcn.100b8da0
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], ecx
jl 0x100b8e68
jg 0x100b8e4f
cmp eax, ecx
jbe 0x100b8e68
mov dword [ebp - 0x318], eax
call fcn.100c42b0
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x31c], edx
xor ecx, ecx
push esi
xor edx, edx
xor esi, esi
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x314], 0xffffffff
mov dword [ebp - 0x20c], esi
cmp edi, 0xffffffff
je 0x100b8ead
mov esi, 1
mov edx, esi
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x314], edi
cmp ebx, 0xffffffff
je 0x100b8f2a
xor eax, eax
cmp esi, ecx
jbe 0x100b8ece
jmp 0x100b8ec0
cmp dword [ebp + eax*4 - 0x208], ebx
je 0x100b8ece
inc eax
cmp eax, esi
jb 0x100b8ec0
cmp eax, esi
jne 0x100b8eeb
cmp esi, 0x40
jae 0x100b8eeb
mov dword [ebp + eax*4 - 0x208], ebx
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
xor eax, eax
cmp edx, ecx
jbe 0x100b8eff
cmp dword [ebp + eax*4 - 0x104], ebx
je 0x100b8eff
inc eax
cmp eax, edx
jb 0x100b8ef1
cmp eax, edx
jne 0x100b8f1c
cmp edx, 0x40
jae 0x100b8f1c
mov dword [ebp + eax*4 - 0x104], ebx
mov edx, dword [ebp - 0x108]
inc edx
mov dword [ebp - 0x108], edx
cmp ebx, dword [ebp - 0x314]
jbe 0x100b8f2a
mov dword [ebp - 0x314], ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x310], ecx
cmp edi, 0xffffffff
je 0x100b8f83
mov ecx, 1
xor eax, eax
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x310], ecx
test edx, edx
je 0x100b8f5f
nop
cmp dword [ebp + eax*4 - 0x104], edi
je 0x100b8f5f
add eax, ecx
cmp eax, edx
jb 0x100b8f50
cmp eax, edx
jne 0x100b8f75
cmp edx, 0x40
jae 0x100b8f75
mov dword [ebp + eax*4 - 0x104], edi
add dword [ebp - 0x108], ecx
cmp edi, dword [ebp - 0x314]
jbe 0x100b8f83
mov dword [ebp - 0x314], edi
cmp dword [ebp + 0x18], 0
jg 0x100b8faa
jl 0x100b8f91
cmp dword [ebp + 0x14], 0
jae 0x100b8faa
mov ebx, dword [ebp - 0x314]
mov edi, dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x324], 0
inc ebx
jmp 0x100b8fe0
mov ebx, dword [ebp - 0x314]
mov edi, dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x324], eax
inc ebx
jmp 0x100b8fe0
mov ecx, dword [ebp - 0x310]
mov esi, dword [ebp - 0x20c]
lea esp, [esp]
mov eax, dword [ebp + 0x18]
test eax, eax
jl 0x100b9026
jg 0x100b8fef
cmp dword [ebp + 0x14], 0
jbe 0x100b9026
mov eax, 0x10624dd3
imul dword [ebp - 0x318]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x318]
mov dword [ebp - 0x32c], eax
imul eax, eax, 0x3e8
sub edx, eax
imul edx, edx, 0x3e8
mov dword [ebp - 0x328], edx
jmp 0x100b903b
mov edx, dword [ebp + 0x14]
or edx, eax
jne 0x100b903b
xor eax, eax
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x324]
push eax
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x310]
and ecx, eax
push ecx
neg esi
sbb esi, esi
lea ecx, [ebp - 0x20c]
and esi, ecx
push esi
push ebx
call edi
cmp eax, 0xffffffff
jne 0x100b90cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x100b9085
cmp dword [0x1013b778], 0
jne 0x100b90d0
cmp eax, 0x2714
jne 0x100b90d0
cmp dword [ebp + 0x18], 0
jl 0x100b8fd0
jg 0x100b909b
cmp dword [ebp + 0x14], 0
jbe 0x100b8fd0
mov edx, dword [ebp - 0x31c]
mov eax, dword [ebp - 0x320]
push edx
push eax
call fcn.100c42b0
push edx
push eax
call fcn.100c42e0
mov ecx, dword [ebp + 0x14]
sub ecx, eax
add esp, 0x10
mov dword [ebp - 0x318], ecx
test ecx, ecx
jle 0x100b90e6
jmp 0x100b8fd0
test eax, eax
jns 0x100b90e4
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret
jne 0x100b90f9
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, 0xffffffff
je 0x100b912d
lea ecx, [ebp - 0x20c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100b9119
mov esi, 1
lea edx, [ebp - 0x108]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100b912d
or esi, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x100b915d
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100b9149
or esi, 8
lea ecx, [ebp - 0x108]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100b915d
or esi, 4
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
je 0x100b918d
lea edx, [ebp - 0x310]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100b9179
or esi, 2
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100b918d
or esi, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1006656c
mov esp, ebp
pop ebp
ret