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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x101ec05c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x314], edx
mov dword [ebp - 0x328], esi
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x32c], esi
cmp ebx, esi
je 0x1009adc3
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, esi
jbe 0x1009adc3
cmp dword [ebx + eax*8], 0xffffffff
jne 0x1009addc
inc eax
cmp eax, ecx
jb 0x1009adb8
push edx
call fcn.1009a9d0
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
cmp edx, esi
jle 0x1009adf7
mov dword [ebp - 0x32c], edx
call fcn.100a5640
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], edx
push edi
xor ecx, ecx
xor edi, edi
xor eax, eax
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x318], 0xffffffff
mov dword [ebp - 0x31c], eax
xor edx, edx
mov word [ebx + eax*8 + 6], dx
mov edx, dword [ebx + eax*8]
cmp edx, 0xffffffff
je 0x1009af07
movzx ebx, word [ebx + eax*8 + 4]
test bl, 7
je 0x1009aefb
cmp edx, dword [ebp - 0x318]
jbe 0x1009ae4f
mov dword [ebp - 0x318], edx
test bl, 1
je 0x1009ae8b
xor eax, eax
test ecx, ecx
je 0x1009ae6e
lea ebx, [ebx]
cmp dword [ebp + eax*4 - 0x30c], edx
je 0x1009ae6e
inc eax
cmp eax, ecx
jb 0x1009ae60
cmp eax, ecx
jne 0x1009ae8b
cmp ecx, 0x40
jae 0x1009ae8b
mov dword [ebp + eax*4 - 0x30c], edx
mov ecx, dword [ebp - 0x310]
inc ecx
mov dword [ebp - 0x310], ecx
test bl, 4
je 0x1009aec1
xor eax, eax
test esi, esi
je 0x1009aea4
cmp dword [ebp + eax*4 - 0x208], edx
je 0x1009aea4
inc eax
cmp eax, esi
jb 0x1009ae96
cmp eax, esi
jne 0x1009aec1
cmp esi, 0x40
jae 0x1009aec1
mov dword [ebp + eax*4 - 0x208], edx
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
test bl, 2
je 0x1009aefb
xor eax, eax
test edi, edi
je 0x1009aede
lea esp, [esp]
cmp dword [ebp + eax*4 - 0x104], edx
je 0x1009aede
inc eax
cmp eax, edi
jb 0x1009aed0
cmp eax, edi
jne 0x1009aefb
cmp edi, 0x40
jae 0x1009aefb
mov dword [ebp + eax*4 - 0x104], edx
mov edi, dword [ebp - 0x108]
inc edi
mov dword [ebp - 0x108], edi
mov ebx, dword [ebp - 0x320]
mov eax, dword [ebp - 0x31c]
inc eax
mov dword [ebp - 0x31c], eax
cmp eax, dword [ebp + 0xc]
jb 0x1009ae20
test ecx, ecx
jne 0x1009af43
test esi, esi
jne 0x1009af43
test edi, edi
jne 0x1009af43
mov eax, dword [ebp - 0x314]
push eax
call fcn.1009a9d0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x32c]
xor edx, edx
cmp dword [ebp - 0x314], edx
lea eax, [ebp - 0x334]
setl dl
dec edx
and edx, eax
mov dword [ebp - 0x31c], edx
mov edx, dword [ebp - 0x318]
inc edx
mov dword [ebp - 0x318], edx
jmp 0x1009af84
mov edi, dword [ebp - 0x108]
mov esi, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x310]
mov edx, dword [ebp - 0x314]
xor eax, eax
cmp edx, eax
jle 0x1009afbf
mov eax, 0x10624dd3
imul ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x334], eax
imul eax, eax, 0x3e8
mov edx, ebx
sub edx, eax
imul edx, edx, 0x3e8
mov dword [ebp - 0x330], edx
jmp 0x1009afcd
jne 0x1009afcd
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x31c]
neg edi
sbb edi, edi
push eax
lea edx, [ebp - 0x108]
and edi, edx
neg esi
sbb esi, esi
lea eax, [ebp - 0x20c]
and esi, eax
mov eax, dword [ebp - 0x318]
neg ecx
push edi
sbb ecx, ecx
lea edx, [ebp - 0x310]
push esi
and ecx, edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1009b062
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1009b027
cmp dword [0x101f4fb8], 0
jne 0x1009b066
cmp eax, 0x2714
jne 0x1009b066
cmp dword [ebp - 0x314], 0
jle 0x1009af72
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp - 0x328]
push ecx
push edx
call fcn.100a5640
push edx
push eax
call fcn.100a5670
mov ebx, dword [ebp - 0x314]
sub ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x1009b07c
jmp 0x1009af72
test eax, eax
jns 0x1009b07a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
jne 0x1009b08f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x320]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
add esi, 6
lea ecx, [ecx]
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x1009b0f9
lea ecx, [ebp - 0x310]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1009b0c2
or word [esi], 1
mov eax, dword [esi - 6]
lea edx, [ebp - 0x20c]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1009b0da
or word [esi], 4
mov edx, dword [esi - 6]
lea ecx, [ebp - 0x108]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1009b0f2
or word [esi], 2
cmp word [esi], 0
je 0x1009b0f9
inc ebx
add esi, 8
dec edi
jne 0x1009b0a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1017eae7
mov esp, ebp
pop ebp
ret