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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x33c
mov eax, dword [0x4ad0cc]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x44033c
cmp ebx, 0xffffffff
jne 0x44033c
test edi, edi
je 0x440325
jns 0x44031e
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x440370
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, edx
shr eax, 6
imul ecx, eax, 0x3e8
mov dword [esp + 0x14], eax
sub esi, ecx
imul eax, esi, 0x3e8
mov esi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x238], ecx
mov dword [esp + 0x28], ecx
cmp eax, 0xffffffff
je 0x4403b0
mov ecx, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 1
mov edx, eax
mov dword [esp + 0x23c], eax
mov dword [esp + 0x238], ecx
jmp 0x4403b0
mov dword [esp + 0x130], 0
cmp ebx, 0xffffffff
je 0x44040a
xor eax, eax
mov dword [esp + 0x134], ebx
mov dword [esp + 0x130], 1
test ecx, ecx
je 0x4403ee
jmp 0x4403e0
cmp dword [esp + eax*4 + 0x23c], ebx
je 0x4403ee
inc eax
cmp eax, ecx
jb 0x4403e0
cmp eax, ecx
jne 0x440405
cmp ecx, 0x40
jae 0x440405
mov dword [esp + eax*4 + 0x23c], ebx
inc dword [esp + 0x238]
cmp ebx, edx
cmova edx, ebx
xor ecx, ecx
lea eax, [esp + 0x1c]
test edi, edi
cmovs eax, ecx
lea ecx, [edx + 1]
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], ecx
test edi, edi
jle 0x440453
mov eax, 0x10624dd3
mov ecx, esi
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
jmp 0x440465
jne 0x440465
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
push eax
xor ecx, ecx
lea eax, [esp + 0x23c]
cmp dword [esp + 0x134], ecx
push eax
lea eax, [esp + 0x138]
cmove eax, ecx
cmp dword [esp + 0x30], ecx
push eax
lea eax, [esp + 0x34]
cmove eax, ecx
push eax
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x440521
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4404c3
cmp dword [0x4b21fc], 0
jne 0x440306
cmp eax, 0x2714
jne 0x440306
mov eax, dword [esp + 0xc]
test edi, edi
jle 0x440453
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [esp + 0x14]
shr edx, 6
imul ecx, edx, 0x3e8
sub eax, edx
sub esi, ecx
imul ecx, esi, 0x3e8
imul esi, eax, 0x3e8
mov eax, 0x10624dd3
sub ecx, dword [esp + 0x18]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, edi
test esi, esi
jle 0x440325
mov eax, dword [esp + 0xc]
jmp 0x440420
test eax, eax
js 0x440306
je 0x440325
mov eax, dword [esp + 0x10]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmp eax, 0xffffffff
je 0x440567
lea ecx, [esp + 0x28]
push ecx
push eax
call edi
test eax, eax
mov ecx, 1
lea eax, [esp + 0x238]
push eax
push dword [esp + 0x14]
cmovne esi, ecx
call edi
test eax, eax
je 0x440567
or esi, 4
cmp ebx, 0xffffffff
je 0x440590
lea eax, [esp + 0x130]
push eax
push ebx
call edi
test eax, eax
je 0x44057e
or esi, 2
lea eax, [esp + 0x238]
push eax
push ebx
call edi
test eax, eax
je 0x440590
or esi, 4
mov ecx, dword [esp + 0x344]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048079e
mov esp, ebp
pop ebp
ret