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

Disassembly:
sub esp, 0x324
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x320], eax
mov eax, dword [esp + 0x334]
push ebx
mov ebx, dword [esp + 0x32c]
push ebp
mov ebp, dword [esp + 0x334]
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
cmp ebx, 0xffffffff
jne 0x481966
cmp ebp, ebx
jne 0x481966
cmp dword [esp + 0x340], ebx
jne 0x481966
cmp eax, esi
je 0x48195f
jge 0x481958
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x481be1
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x481be1
cmp eax, esi
jle 0x481979
mov edi, eax
call fcn.00482900
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
xor ecx, ecx
xor edx, edx
or esi, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x128], edx
cmp ebx, 0xffffffff
je 0x4819af
mov edx, 1
mov ecx, edx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x128], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
mov esi, ebx
cmp ebp, 0xffffffff
je 0x481a17
xor eax, eax
test edx, edx
je 0x4819ce
lea ebx, [ebx]
cmp dword [esp + eax*4 + 0x12c], ebp
je 0x4819ce
inc eax
cmp eax, edx
jb 0x4819c0
cmp eax, edx
jne 0x4819e5
cmp edx, 0x40
jae 0x4819e5
mov dword [esp + eax*4 + 0x12c], ebp
inc dword [esp + 0x128]
xor eax, eax
test ecx, ecx
je 0x4819fb
jmp 0x4819f0
cmp dword [esp + eax*4 + 0x28], ebp
je 0x4819fb
inc eax
cmp eax, ecx
jb 0x4819f0
cmp eax, ecx
jne 0x481a11
cmp ecx, 0x40
jae 0x481a11
mov dword [esp + eax*4 + 0x28], ebp
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ebp, esi
jbe 0x481a17
mov esi, ebp
mov edx, dword [esp + 0x340]
xor eax, eax
mov dword [esp + 0x22c], eax
cmp edx, 0xffffffff
je 0x481a64
mov dword [esp + 0x230], edx
mov dword [esp + 0x22c], 1
test ecx, ecx
je 0x481a4d
cmp dword [esp + eax*4 + 0x28], edx
je 0x481a4d
inc eax
cmp eax, ecx
jb 0x481a42
cmp eax, ecx
jne 0x481a5e
cmp ecx, 0x40
jae 0x481a5e
mov dword [esp + eax*4 + 0x28], edx
inc dword [esp + 0x24]
cmp edx, esi
jbe 0x481a64
mov esi, edx
mov ebp, dword [sym.imp.WS2_32.dll_select]
xor ebx, ebx
cmp dword [esp + 0x10], ebx
lea eax, [esp + 0x1c]
setl bl
dec ebx
and ebx, eax
inc esi
jmp 0x481a80
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, ecx
jle 0x481ab1
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, eax, 0x3e8
mov ecx, edi
sub ecx, eax
imul ecx, ecx, 0x3e8
jmp 0x481ab7
jne 0x481abb
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x134]
push ecx
push esi
call ebp
cmp eax, 0xffffffff
jne 0x481b34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x481afb
cmp dword [0x5c2f90], 0
jne 0x481950
cmp eax, 0x2714
jne 0x481950
cmp dword [esp + 0x10], 0
jle 0x481a80
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00482900
push edx
push eax
call fcn.00482930
mov edi, dword [esp + 0x20]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x481a80
xor eax, eax
jmp 0x481be1
test eax, eax
js 0x481950
je 0x48195f
mov edi, dword [esp + 0x338]
xor esi, esi
cmp edi, 0xffffffff
je 0x481b79
lea ecx, [esp + 0x128]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x481b67
mov esi, 1
lea edx, [esp + 0x24]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x481b79
or esi, 4
mov edi, dword [esp + 0x33c]
cmp edi, 0xffffffff
je 0x481bac
lea eax, [esp + 0x128]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x481b9a
or esi, 8
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x481bac
or esi, 4
mov edi, dword [esp + 0x340]
cmp edi, 0xffffffff
je 0x481bdf
lea edx, [esp + 0x22c]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x481bcd
or esi, 2
lea eax, [esp + 0x24]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x481bdf
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x330]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b303a
add esp, 0x324
ret