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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x76c12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x314], eax
cmp ebx, 0xffffffff
jne 0x4bb39e
cmp dword [ebp + 0xc], ebx
jne 0x4bb39e
mov eax, edi
call fcn.004bb330
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
cmp edi, eax
jle 0x4bb3b7
mov esi, edi
call fcn.004be520
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x314], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x310], eax
cmp ebx, 0xffffffff
je 0x4bb3ec
mov ecx, 1
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x108], ecx
mov edx, ebx
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x4bb442
mov dword [ebp - 0x208], eax
xor eax, eax
mov dword [ebp - 0x20c], 1
test ecx, ecx
je 0x4bb423
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + eax*4 - 0x104], ebx
je 0x4bb426
inc eax
cmp eax, ecx
jb 0x4bb410
jmp 0x4bb426
mov ebx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x4bb43c
cmp ecx, 0x40
jae 0x4bb43c
mov dword [ebp + eax*4 - 0x104], ebx
inc dword [ebp - 0x108]
cmp ebx, edx
jbe 0x4bb442
mov edx, ebx
xor ebx, ebx
test edi, edi
sets bl
lea eax, [ebp - 0x320]
dec ebx
and ebx, eax
inc edx
mov dword [ebp - 0x324], edx
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x4bb495
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x320], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x31c], ecx
jmp 0x4bb4a3
jne 0x4bb4a3
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x31c], eax
push ebx
lea edx, [ebp - 0x108]
push edx
mov edx, dword [ebp - 0x324]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x310]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4bb51d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4bb4dc
cmp eax, 0x2714
jne 0x4bb521
test edi, edi
jle 0x4bb460
mov eax, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x318]
push eax
push ecx
call fcn.004be520
push edx
push eax
call fcn.004be550
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x4bb460
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
test eax, eax
jns 0x4bb535
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
jne 0x4bb54a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, 0xffffffff
je 0x4bb57e
lea edx, [ebp - 0x310]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb56a
mov esi, 1
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb57e
or esi, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x4bb5ae
lea ecx, [ebp - 0x20c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb59a
or esi, 2
lea edx, [ebp - 0x108]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb5ae
or esi, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058cf08
mov esp, ebp
pop ebp
ret