Function at 0x43d7c0
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 0x43d84c
cmp ebx, 0xffffffff
jne 0x43d84c
test edi, edi
je 0x43d835
jns 0x43d82e
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.0047dbfe
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.0047dbfe
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x43d880
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 0x43d8c0
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 0x43d8c0
mov dword [esp + 0x130], 0
cmp ebx, 0xffffffff
je 0x43d91a
xor eax, eax
mov dword [esp + 0x134], ebx
mov dword [esp + 0x130], 1
test ecx, ecx
je 0x43d8fe
jmp 0x43d8f0
cmp dword [esp + eax*4 + 0x23c], ebx
je 0x43d8fe
inc eax
cmp eax, ecx
jb 0x43d8f0
cmp eax, ecx
jne 0x43d915
cmp ecx, 0x40
jae 0x43d915
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 0x43d963
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 0x43d975
jne 0x43d975
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 0x43da31
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x43d9d3
cmp dword [0x4aefdc], 0
jne 0x43d816
cmp eax, 0x2714
jne 0x43d816
mov eax, dword [esp + 0xc]
test edi, edi
jle 0x43d963
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 0x43d835
mov eax, dword [esp + 0xc]
jmp 0x43d930
test eax, eax
js 0x43d816
je 0x43d835
mov eax, dword [esp + 0x10]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmp eax, 0xffffffff
je 0x43da77
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 0x43da77
or esi, 4
cmp ebx, 0xffffffff
je 0x43daa0
lea eax, [esp + 0x130]
push eax
push ebx
call edi
test eax, eax
je 0x43da8e
or esi, 2
lea eax, [esp + 0x238]
push eax
push ebx
call edi
test eax, eax
je 0x43daa0
or esi, 4
mov ecx, dword [esp + 0x344]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret