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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x33c
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x100bc05c
cmp ebx, 0xffffffff
jne 0x100bc05c
test edi, edi
je 0x100bc045
jns 0x100bc03e
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x100bc090
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 [esp + 0x14], eax
sub esi, ecx
imul eax, esi, 0x3e8
mov esi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x238], ecx
mov dword [esp + 0x28], ecx
cmp eax, 0xffffffff
je 0x100bc0d0
mov ecx, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 1
mov edx, eax
mov dword [esp + 0x23c], eax
mov dword [esp + 0x238], ecx
jmp 0x100bc0d0
mov dword [esp + 0x130], 0
cmp ebx, 0xffffffff
je 0x100bc12a
xor eax, eax
mov dword [esp + 0x134], ebx
mov dword [esp + 0x130], 1
test ecx, ecx
je 0x100bc10e
jmp 0x100bc100
cmp dword [esp + eax*4 + 0x23c], ebx
je 0x100bc10e
inc eax
cmp eax, ecx
jb 0x100bc100
cmp eax, ecx
jne 0x100bc125
cmp ecx, 0x40
jae 0x100bc125
mov dword [esp + eax*4 + 0x23c], ebx
inc dword [esp + 0x238]
cmp ebx, edx
cmova edx, ebx
xor ecx, ecx
lea eax, [esp + 0x1c]
test edi, edi
cmovs eax, ecx
lea ecx, [edx + 1]
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], ecx
test edi, edi
jle 0x100bc173
mov eax, 0x10624dd3
mov ecx, esi
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
jmp 0x100bc185
jne 0x100bc185
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
push eax
xor ecx, ecx
lea eax, [esp + 0x23c]
cmp dword [esp + 0x134], ecx
push eax
lea eax, [esp + 0x138]
cmove eax, ecx
cmp dword [esp + 0x30], ecx
push eax
lea eax, [esp + 0x34]
cmove eax, ecx
push eax
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x100bc241
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x100bc1e3
cmp dword [0x10279844], 0
jne 0x100bc026
cmp eax, 0x2714
jne 0x100bc026
mov eax, dword [esp + 0xc]
test edi, edi
jle 0x100bc173
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [esp + 0x14]
shr edx, 6
imul ecx, edx, 0x3e8
sub eax, edx
sub esi, ecx
imul ecx, esi, 0x3e8
imul esi, eax, 0x3e8
mov eax, 0x10624dd3
sub ecx, dword [esp + 0x18]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, edi
test esi, esi
jle 0x100bc045
mov eax, dword [esp + 0xc]
jmp 0x100bc140
test eax, eax
js 0x100bc026
je 0x100bc045
mov eax, dword [esp + 0x10]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmp eax, 0xffffffff
je 0x100bc287
lea ecx, [esp + 0x28]
push ecx
push eax
call edi
test eax, eax
mov ecx, 1
lea eax, [esp + 0x238]
push eax
push dword [esp + 0x14]
cmovne esi, ecx
call edi
test eax, eax
je 0x100bc287
or esi, 4
cmp ebx, 0xffffffff
je 0x100bc2b0
lea eax, [esp + 0x130]
push eax
push ebx
call edi
test eax, eax
je 0x100bc29e
or esi, 2
lea eax, [esp + 0x238]
push eax
push ebx
call edi
test eax, eax
je 0x100bc2b0
or esi, 4
mov ecx, dword [esp + 0x344]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret