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

Disassembly:
sub esp, 0x328
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x324], eax
mov eax, dword [esp + 0x338]
push ebx
mov ebx, dword [esp + 0x330]
push ebp
mov ebp, dword [esp + 0x338]
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
cmp ebx, 0xffffffff
jne 0x4d9496
cmp ebp, ebx
jne 0x4d9496
cmp dword [esp + 0x344], ebx
jne 0x4d9496
cmp eax, esi
je 0x4d948f
jge 0x4d9488
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x4d9752
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x4d9752
cmp eax, esi
jle 0x4d94a9
mov edi, eax
call fcn.004e3d20
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x230], edx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x28], esi
cmp ebx, 0xffffffff
je 0x4d94e4
mov esi, 1
mov edx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x234], ebx
mov dword [esp + 0x230], edx
mov dword [esp + 0x10], ebx
cmp ebp, 0xffffffff
je 0x4d954e
xor eax, eax
test esi, esi
je 0x4d94fb
nop
cmp dword [esp + eax*4 + 0x2c], ebp
je 0x4d94fb
inc eax
cmp eax, esi
jb 0x4d94f0
cmp eax, esi
jne 0x4d9511
cmp esi, 0x40
jae 0x4d9511
mov dword [esp + eax*4 + 0x2c], ebp
mov esi, dword [esp + 0x28]
inc esi
mov dword [esp + 0x28], esi
xor eax, eax
test edx, edx
je 0x4d9525
cmp dword [esp + eax*4 + 0x234], ebp
je 0x4d9525
inc eax
cmp eax, edx
jb 0x4d9517
cmp eax, edx
jne 0x4d9544
cmp edx, 0x40
jae 0x4d9544
mov dword [esp + eax*4 + 0x234], ebp
mov edx, dword [esp + 0x230]
inc edx
mov dword [esp + 0x230], edx
cmp ebp, dword [esp + 0x10]
jbe 0x4d954e
mov dword [esp + 0x10], ebp
mov ebx, dword [esp + 0x344]
xor ecx, ecx
mov dword [esp + 0x12c], ecx
cmp ebx, 0xffffffff
je 0x4d95b0
mov ecx, 1
xor eax, eax
mov dword [esp + 0x130], ebx
mov dword [esp + 0x12c], ecx
test edx, edx
je 0x4d958f
lea esp, [esp]
cmp dword [esp + eax*4 + 0x234], ebx
je 0x4d958f
add eax, ecx
cmp eax, edx
jb 0x4d9580
cmp eax, edx
jne 0x4d95a6
cmp edx, 0x40
jae 0x4d95a6
mov dword [esp + eax*4 + 0x234], ebx
add dword [esp + 0x230], ecx
cmp ebx, dword [esp + 0x10]
jbe 0x4d95b0
mov dword [esp + 0x10], ebx
mov ebp, dword [esp + 0x10]
xor ebx, ebx
cmp dword [esp + 0x14], ebx
lea eax, [esp + 0x20]
setl bl
dec ebx
and ebx, eax
inc ebp
jmp 0x4d95e0
mov ecx, dword [esp + 0x12c]
mov esi, dword [esp + 0x28]
jmp 0x4d95e0
mov eax, dword [esp + 0x14]
xor edx, edx
cmp eax, edx
jle 0x4d9611
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
jmp 0x4d9617
jne 0x4d961b
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
neg ecx
sbb ecx, ecx
push ebx
lea edx, [esp + 0x130]
and ecx, edx
lea eax, [esp + 0x234]
push eax
neg esi
sbb esi, esi
lea eax, [esp + 0x30]
push ecx
and esi, eax
push esi
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4d96a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4d966b
cmp dword [0x5c27a4], 0
jne 0x4d9480
cmp eax, 0x2714
jne 0x4d9480
cmp dword [esp + 0x14], 0
jle 0x4d95d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.004e3d20
push edx
push eax
call fcn.004e3d50
mov edi, dword [esp + 0x24]
sub edi, eax
add esp, 0x10
test edi, edi
jle 0x4d948f
jmp 0x4d95d0
test eax, eax
js 0x4d9480
je 0x4d948f
mov edi, dword [esp + 0x33c]
xor esi, esi
cmp edi, 0xffffffff
je 0x4d96e7
lea eax, [esp + 0x28]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d96d2
mov esi, 1
lea ecx, [esp + 0x230]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d96e7
or esi, 4
mov edi, dword [esp + 0x340]
cmp edi, 0xffffffff
je 0x4d971a
lea edx, [esp + 0x28]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d9705
or esi, 8
lea eax, [esp + 0x230]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d971a
or esi, 4
mov edi, dword [esp + 0x344]
cmp edi, 0xffffffff
je 0x4d9750
lea ecx, [esp + 0x12c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d973b
or esi, 2
lea edx, [esp + 0x230]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d9750
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052b755
add esp, 0x328
ret