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

Disassembly:
sub esp, 0x320
push ebx
mov ebx, dword [esp + 0x32c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x334]
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
cmp edi, 0xffffffff
jne 0x47dd91
cmp ebx, edi
jne 0x47dd91
cmp dword [esp + 0x33c], edi
jne 0x47dd91
mov eax, dword [esp + 0x340]
push eax
call fcn.0047dd10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret
mov eax, dword [esp + 0x340]
cmp eax, esi
jle 0x47ddab
mov ebp, eax
call fcn.00488530
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x128], esi
cmp edi, 0xffffffff
je 0x47dde6
mov esi, 1
mov edx, esi
mov dword [esp + 0x12c], edi
mov dword [esp + 0x128], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], edi
cmp ebx, 0xffffffff
je 0x47de4f
xor eax, eax
test esi, esi
jbe 0x47ddff
cmp dword [esp + eax*4 + 0x12c], ebx
je 0x47ddff
inc eax
cmp eax, esi
jb 0x47ddf1
cmp eax, esi
jne 0x47de1e
cmp esi, 0x40
jae 0x47de1e
mov dword [esp + eax*4 + 0x12c], ebx
mov esi, dword [esp + 0x128]
inc esi
mov dword [esp + 0x128], esi
xor eax, eax
test edx, edx
jbe 0x47de2f
cmp dword [esp + eax*4 + 0x28], ebx
je 0x47de2f
inc eax
cmp eax, edx
jb 0x47de24
cmp eax, edx
jne 0x47de45
cmp edx, 0x40
jae 0x47de45
mov dword [esp + eax*4 + 0x28], ebx
mov edx, dword [esp + 0x24]
inc edx
mov dword [esp + 0x24], edx
cmp ebx, dword [esp + 0x10]
jbe 0x47de4f
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x33c]
xor ecx, ecx
mov dword [esp + 0x22c], ecx
cmp edi, 0xffffffff
je 0x47dea7
mov ecx, 1
xor eax, eax
mov dword [esp + 0x230], edi
mov dword [esp + 0x22c], ecx
test edx, edx
jbe 0x47de8c
lea ecx, [ecx]
cmp dword [esp + eax*4 + 0x28], edi
je 0x47de8c
add eax, ecx
cmp eax, edx
jb 0x47de80
cmp eax, edx
jne 0x47de9d
cmp edx, 0x40
jae 0x47de9d
mov dword [esp + eax*4 + 0x28], edi
add dword [esp + 0x24], ecx
cmp edi, dword [esp + 0x10]
jbe 0x47dea7
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x10]
xor edx, edx
cmp dword [esp + 0x340], edx
lea eax, [esp + 0x1c]
setl dl
dec edx
and edx, eax
mov edi, edx
inc ebx
jmp 0x47dee0
mov ecx, dword [esp + 0x22c]
mov esi, dword [esp + 0x128]
mov edi, edi
mov eax, dword [esp + 0x340]
xor edx, edx
cmp eax, edx
jle 0x47df14
mov eax, 0x10624dd3
imul ebp
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, eax, 0x3e8
mov edx, ebp
sub edx, eax
imul edx, edx, 0x3e8
jmp 0x47df1a
jne 0x47df1e
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
neg ecx
sbb ecx, ecx
push edi
lea edx, [esp + 0x230]
and ecx, edx
lea eax, [esp + 0x28]
push eax
neg esi
sbb esi, esi
lea eax, [esp + 0x130]
push ecx
and esi, eax
push esi
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x47df9f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x47df66
cmp dword [0x4e5708], 0
jne 0x47dfa3
cmp eax, 0x2714
jne 0x47dfa3
cmp dword [esp + 0x340], 0
jle 0x47ded0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00488530
push edx
push eax
call fcn.00488560
mov ebp, dword [esp + 0x350]
sub ebp, eax
add esp, 0x10
test ebp, ebp
jle 0x47dfb3
jmp 0x47ded0
test eax, eax
jge 0x47dfb1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x320
ret
jne 0x47dfc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x320
ret
mov edi, dword [esp + 0x334]
xor esi, esi
cmp edi, 0xffffffff
je 0x47dff7
lea eax, [esp + 0x128]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47dfe5
mov esi, 1
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47dff7
or esi, 4
mov edi, dword [esp + 0x338]
cmp edi, 0xffffffff
je 0x47e02a
lea edx, [esp + 0x128]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47e018
or esi, 8
lea eax, [esp + 0x24]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47e02a
or esi, 4
mov edi, dword [esp + 0x33c]
cmp edi, 0xffffffff
je 0x47e05d
lea ecx, [esp + 0x22c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47e04b
or esi, 2
lea edx, [esp + 0x24]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47e05d
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret