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

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
cmp ebx, 0xffffffff
jne 0x47d230
cmp ebp, ebx
jne 0x47d230
cmp dword [esp + 0x338], ebx
jne 0x47d230
mov eax, dword [esp + 0x33c]
cmp eax, esi
je 0x47d223
jge 0x47d21c
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov eax, dword [esp + 0x33c]
cmp eax, esi
jle 0x47d24a
mov edi, eax
call fcn.0048b140
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor ecx, ecx
xor edx, edx
or esi, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], edx
cmp ebx, 0xffffffff
je 0x47d280
mov edx, 1
mov ecx, edx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov esi, ebx
cmp ebp, 0xffffffff
je 0x47d2e7
xor eax, eax
test edx, edx
jbe 0x47d29e
jmp 0x47d290
cmp dword [esp + eax*4 + 0x128], ebp
je 0x47d29e
inc eax
cmp eax, edx
jb 0x47d290
cmp eax, edx
jne 0x47d2b5
cmp edx, 0x40
jae 0x47d2b5
mov dword [esp + eax*4 + 0x128], ebp
inc dword [esp + 0x124]
xor eax, eax
test ecx, ecx
jbe 0x47d2cb
jmp 0x47d2c0
cmp dword [esp + eax*4 + 0x24], ebp
je 0x47d2cb
inc eax
cmp eax, ecx
jb 0x47d2c0
cmp eax, ecx
jne 0x47d2e1
cmp ecx, 0x40
jae 0x47d2e1
mov dword [esp + eax*4 + 0x24], ebp
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
cmp ebp, esi
jbe 0x47d2e7
mov esi, ebp
mov edx, dword [esp + 0x338]
xor eax, eax
mov dword [esp + 0x228], eax
cmp edx, 0xffffffff
je 0x47d334
mov dword [esp + 0x22c], edx
mov dword [esp + 0x228], 1
test ecx, ecx
jbe 0x47d31d
cmp dword [esp + eax*4 + 0x24], edx
je 0x47d31d
inc eax
cmp eax, ecx
jb 0x47d312
cmp eax, ecx
jne 0x47d32e
cmp ecx, 0x40
jae 0x47d32e
mov dword [esp + eax*4 + 0x24], edx
inc dword [esp + 0x20]
cmp edx, esi
jbe 0x47d334
mov esi, edx
xor ebx, ebx
cmp dword [esp + 0x33c], ebx
lea eax, [esp + 0x18]
setl bl
lea ebp, [esi + 1]
dec ebx
and ebx, eax
lea ebx, [ebx]
mov eax, dword [esp + 0x33c]
xor ecx, ecx
cmp eax, ecx
jle 0x47d384
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, edi
sub ecx, eax
imul ecx, ecx, 0x3e8
jmp 0x47d38a
jne 0x47d38e
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47d411
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x47d3cc
cmp dword [0x5fab64], 0
jne 0x47d411
cmp eax, 0x2714
jne 0x47d411
cmp dword [esp + 0x33c], 0
jle 0x47d350
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0048b140
push edx
push eax
call fcn.0048b170
mov edi, dword [esp + 0x34c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x47d350
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
test esi, esi
jl 0x47d20e
je 0x47d223
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x47d456
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47d444
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47d456
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x47d489
lea eax, [esp + 0x124]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47d477
or esi, 8
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47d489
or esi, 4
mov edi, dword [esp + 0x338]
cmp edi, 0xffffffff
je 0x47d4bc
lea edx, [esp + 0x228]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47d4aa
or esi, 2
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47d4bc
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret