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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x314], esi
cmp ebx, edi
jne 0x4b1eb7
cmp dword [ebp + 0xc], edi
jne 0x4b1eb7
cmp dword [ebp + 0x10], edi
jne 0x4b1eb7
push dword [ebp + 0x14]
call fcn.004b1e43
pop ecx
jmp 0x4b2166
mov eax, dword [ebp + 0x14]
cmp eax, esi
jle 0x4b1ed5
mov dword [ebp - 0x314], eax
call fcn.004ba2f8
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x20c], esi
cmp ebx, 0xffffffff
je 0x4b1f03
xor esi, esi
inc esi
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x108], esi
mov edi, ebx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
je 0x4b1f7c
xor eax, eax
test esi, esi
je 0x4b1f1f
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x4b1f1f
inc eax
cmp eax, esi
jb 0x4b1f11
cmp eax, esi
jne 0x4b1f3c
cmp esi, 0x40
jae 0x4b1f3c
mov dword [ebp + eax*4 - 0x208], ecx
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
xor eax, eax
cmp eax, dword [ebp - 0x108]
jae 0x4b1f5e
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x4b1f58
inc eax
cmp eax, dword [ebp - 0x108]
jb 0x4b1f46
cmp eax, dword [ebp - 0x108]
jne 0x4b1f76
cmp dword [ebp - 0x108], 0x40
jae 0x4b1f76
mov dword [ebp + eax*4 - 0x104], ecx
inc dword [ebp - 0x108]
cmp ecx, edi
jbe 0x4b1f7c
mov edi, ecx
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x310], ecx
cmp edx, 0xffffffff
je 0x4b1fd9
inc ecx
xor eax, eax
mov dword [ebp - 0x30c], edx
mov dword [ebp - 0x310], ecx
cmp eax, dword [ebp - 0x108]
jae 0x4b1fbb
cmp dword [ebp + eax*4 - 0x104], edx
je 0x4b1fb5
inc eax
cmp eax, dword [ebp - 0x108]
jb 0x4b1fa3
cmp eax, dword [ebp - 0x108]
jne 0x4b1fd3
cmp dword [ebp - 0x108], 0x40
jae 0x4b1fd3
mov dword [ebp + eax*4 - 0x104], edx
inc dword [ebp - 0x108]
cmp edx, edi
jbe 0x4b1fd9
mov edi, edx
xor eax, eax
cmp dword [ebp + 0x14], eax
jge 0x4b1fe8
mov dword [ebp - 0x320], eax
jmp 0x4b1ff4
lea edx, [ebp - 0x328]
mov dword [ebp - 0x320], edx
inc edi
jmp 0x4b2005
mov esi, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x310]
xor eax, eax
cmp dword [ebp + 0x14], eax
jle 0x4b2029
mov eax, dword [ebp - 0x314]
cdq
mov ebx, 0x3e8
idiv ebx
mov ebx, dword [ebp + 8]
imul edx, edx, 0x3e8
mov dword [ebp - 0x324], edx
jmp 0x4b2031
jne 0x4b2037
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x328], eax
push dword [ebp - 0x320]
neg ecx
lea eax, [ebp - 0x108]
push eax
sbb ecx, ecx
lea eax, [ebp - 0x310]
and ecx, eax
neg esi
sbb esi, esi
lea eax, [ebp - 0x20c]
push ecx
and esi, eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4b20be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4b2084
cmp dword [0x54bea4], 0
jne 0x4b20c2
cmp eax, 0x2714
jne 0x4b20c2
cmp dword [ebp + 0x14], 0
jle 0x4b1ff7
push dword [ebp - 0x318]
push dword [ebp - 0x31c]
call fcn.004ba2f8
push edx
push eax
call fcn.004ba30e
mov ecx, dword [ebp + 0x14]
sub ecx, eax
add esp, 0x10
mov dword [ebp - 0x314], ecx
test ecx, ecx
jg 0x4b1ff7
xor eax, eax
test eax, eax
jns 0x4b20ca
or eax, 0xffffffff
jmp 0x4b2166
jne 0x4b20d3
xor eax, eax
jmp 0x4b2166
xor esi, esi
cmp ebx, 0xffffffff
je 0x4b2100
lea eax, [ebp - 0x20c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b20ec
inc esi
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b2100
or esi, 4
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b2132
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b211c
or esi, 8
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b2132
or esi, 4
cmp dword [ebp + 0x10], 0xffffffff
je 0x4b2164
lea eax, [ebp - 0x310]
push eax
push dword [ebp + 0x10]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b214e
or esi, 2
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b2164
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret