Function at 0x43d620
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 [0x4aa0cc]
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 0x43d6ac
cmp ebx, 0xffffffff
jne 0x43d6ac
test edi, edi
je 0x43d695
jns 0x43d68e
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.0047db8e
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.0047db8e
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x43d6e0
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 0x43d720
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 0x43d720
mov dword [esp + 0x130], 0
cmp ebx, 0xffffffff
je 0x43d77a
xor eax, eax
mov dword [esp + 0x134], ebx
mov dword [esp + 0x130], 1
test ecx, ecx
je 0x43d75e
jmp 0x43d750
cmp dword [esp + eax*4 + 0x23c], ebx
je 0x43d75e
inc eax
cmp eax, ecx
jb 0x43d750
cmp eax, ecx
jne 0x43d775
cmp ecx, 0x40
jae 0x43d775
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 0x43d7c3
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 0x43d7d5
jne 0x43d7d5
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 0x43d891
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x43d833
cmp dword [0x4aefdc], 0
jne 0x43d676
cmp eax, 0x2714
jne 0x43d676
mov eax, dword [esp + 0xc]
test edi, edi
jle 0x43d7c3
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 0x43d695
mov eax, dword [esp + 0xc]
jmp 0x43d790
test eax, eax
js 0x43d676
je 0x43d695
mov eax, dword [esp + 0x10]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmp eax, 0xffffffff
je 0x43d8d7
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 0x43d8d7
or esi, 4
cmp ebx, 0xffffffff
je 0x43d900
lea eax, [esp + 0x130]
push eax
push ebx
call edi
test eax, eax
je 0x43d8ee
or esi, 2
lea eax, [esp + 0x238]
push eax
push ebx
call edi
test eax, eax
je 0x43d900
or esi, 4
mov ecx, dword [esp + 0x344]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret