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

Disassembly:
sub esp, 0x334
push ebx
mov ebx, dword [esp + 0x33c]
push ebp
push esi
push edi
mov edi, eax
xor eax, eax
xor ebp, ebp
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x432411
cmp dword [esp + 0x34c], ebx
jne 0x432411
cmp edi, eax
je 0x432633
jge 0x4323fe
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret
push edi
call sub.KERNEL32.dll_Sleep
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret
cmp edi, eax
jle 0x43243f
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov ebp, edx
mov dword [esp + 0x24], ecx
xor ecx, ecx
xor eax, eax
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x130], eax
je 0x432473
mov ecx, 1
mov dword [esp + 0x134], ebx
mov dword [esp + 0x130], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
mov edx, ebx
mov ebx, dword [esp + 0x34c]
cmp ebx, 0xffffffff
mov dword [esp + 0x238], eax
je 0x4324ce
test ecx, ecx
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x238], 1
jbe 0x4324b4
lea esp, [esp]
mov ebx, dword [esp + 0x34c]
cmp dword [esp + eax*4 + 0x2c], ebx
je 0x4324b4
add eax, 1
cmp eax, ecx
jb 0x4324a0
cmp eax, ecx
jne 0x4324c6
cmp ecx, 0x40
jae 0x4324c6
mov dword [esp + eax*4 + 0x2c], ebx
add dword [esp + 0x28], 1
xor eax, eax
cmp ebx, edx
jbe 0x4324ce
mov edx, ebx
xor ecx, ecx
cmp edi, eax
setl cl
lea ebx, [esp + 0x10]
sub ecx, 1
and ecx, ebx
add edx, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jmp 0x4324f2
xor eax, eax
cmp edi, eax
jle 0x432521
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x14], edx
jmp 0x43252b
jne 0x43252b
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x13c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4325b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x432568
cmp eax, 0x2714
jne 0x4325b9
test edi, edi
jle 0x4324f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
sub ecx, dword [esp + 0x24]
mov esi, ebp
sub esi, edx
mov eax, 0x10624dd3
imul esi, esi, 0x3e8
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
add esi, edi
test esi, esi
jg 0x4324f0
test ebx, ebx
jl 0x4323f0
je 0x432404
mov edi, dword [esp + 0x348]
xor esi, esi
cmp edi, 0xffffffff
je 0x4325fe
lea edx, [esp + 0x130]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4325ec
mov esi, 1
lea eax, [esp + 0x28]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4325fe
or esi, 4
mov edi, dword [esp + 0x34c]
cmp edi, 0xffffffff
je 0x432631
lea ecx, [esp + 0x238]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43261f
or esi, 2
lea edx, [esp + 0x28]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x432631
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret