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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
mov eax, dword [0x4d8c20]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
cmp ecx, edi
je 0x44adbd
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, edi
jbe 0x44adbd
cmp dword [ecx + eax*8], 0xffffffff
jne 0x44add9
inc eax
cmp eax, edx
jb 0x44adb2
mov eax, esi
call fcn.0044aa00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
cmp esi, edi
jle 0x44adee
mov dword [esp + 0x10], esi
call fcn.0044b9d0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x138], ebx
mov dword [esp + 0x240], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax + esi*8 + 6], cx
mov ecx, dword [eax + esi*8]
cmp ecx, 0xffffffff
je 0x44aeed
movzx edx, word [eax + esi*8 + 4]
test dl, 7
je 0x44aeed
cmp ecx, dword [esp + 0xc]
jbe 0x44ae3f
mov dword [esp + 0xc], ecx
test dl, 1
je 0x44ae70
mov esi, dword [esp + 0x30]
xor eax, eax
test esi, esi
je 0x44ae5b
mov edi, edi
cmp dword [esp + eax*4 + 0x34], ecx
je 0x44ae5b
inc eax
cmp eax, esi
jb 0x44ae50
cmp eax, esi
jne 0x44ae6c
cmp esi, 0x40
jae 0x44ae6c
mov dword [esp + eax*4 + 0x34], ecx
inc dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
test dl, 4
je 0x44aead
xor eax, eax
test ebx, ebx
je 0x44ae8e
jmp 0x44ae80
cmp dword [esp + eax*4 + 0x13c], ecx
je 0x44ae8e
inc eax
cmp eax, ebx
jb 0x44ae80
cmp eax, ebx
jne 0x44aead
cmp ebx, 0x40
jae 0x44aead
mov dword [esp + eax*4 + 0x13c], ecx
mov ebx, dword [esp + 0x138]
inc ebx
mov dword [esp + 0x138], ebx
test dl, 2
je 0x44aeed
xor eax, eax
test edi, edi
je 0x44aece
jmp 0x44aec0
cmp dword [esp + eax*4 + 0x244], ecx
je 0x44aece
inc eax
cmp eax, edi
jb 0x44aec0
cmp eax, edi
jne 0x44aeed
cmp edi, 0x40
jae 0x44aeed
mov dword [esp + eax*4 + 0x244], ecx
mov edi, dword [esp + 0x240]
inc edi
mov dword [esp + 0x240], edi
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [ebp + 8]
jb 0x44ae10
mov esi, dword [esp + 0xc]
mov ebx, dword [sym.imp.WS2_32.dll_select]
xor edx, edx
cmp dword [esp + 0x14], edx
lea eax, [esp + 0x28]
setl dl
lea edi, [edx - 1]
and edi, eax
inc esi
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, ecx
jle 0x44af4d
mov ecx, dword [esp + 0x10]
mov eax, 0x10624dd3
imul dword [esp + 0x10]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
jmp 0x44af53
jne 0x44af57
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
push edi
lea edx, [esp + 0x244]
push edx
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
call ebx
cmp eax, 0xffffffff
jne 0x44afd9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x44af8f
cmp dword [0x4de148], 0
jne 0x44afdd
cmp eax, 0x2714
jne 0x44afdd
cmp dword [esp + 0x14], 0
jle 0x44af18
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.0044b9d0
push edx
push eax
call fcn.0044ba00
mov ecx, dword [esp + 0x24]
sub ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
test ecx, ecx
jg 0x44af18
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
test eax, eax
jns 0x44aff5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
jne 0x44b00e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov dword [esp + 0xc], 0
add esi, 6
mov eax, dword [esi - 6]
xor ecx, ecx
mov word [esi], cx
cmp eax, 0xffffffff
je 0x44b079
lea edx, [esp + 0x30]
push edx
push eax
call edi
test eax, eax
je 0x44b043
or word [esi], 1
mov ecx, dword [esi - 6]
lea eax, [esp + 0x138]
push eax
push ecx
call edi
test eax, eax
je 0x44b059
or word [esi], 4
mov eax, dword [esi - 6]
lea edx, [esp + 0x240]
push edx
push eax
call edi
test eax, eax
je 0x44b06f
or word [esi], 2
cmp word [esi], 0
je 0x44b079
inc dword [esp + 0xc]
add esi, 8
dec ebx
jne 0x44b026
mov ecx, dword [esp + 0x34c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004751dc
mov esp, ebp
pop ebp
ret