Function at 0x43a450
Capabilities:
Check for time delay via queryperformancecounter
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
mov eax, dword [0x4a8800]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x23c], 0
push edi
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ebx
push eax
push dword [ebx + 0x28]
mov dword [esp + 0x140], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
call fcn.004036d0
mov ecx, dword [esp + 0x30]
add esp, 8
test ecx, ecx
js 0x43a4ff
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
cmp eax, 1
jle 0x43a4ed
mov dword [esp + 0x20], 1
jmp 0x43a4ff
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x24c]
push eax
push dword [ebx + 0x28]
call fcn.00403120
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add esp, 0x14
cmp dword [esp + 0xc], 0xffffffff
je 0x43a5b6
add ebx, 0x48
lea esi, [ebx + 8]
push esi
call edi
mov ecx, dword [esi]
sub ecx, dword [ebx]
mov edx, dword [esi + 4]
sbb edx, dword [ebx + 4]
call fcn.0045da7f
mulsd xmm0, qword [0x497fc0]
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
movsd qword [esp + 0x10], xmm0
call fcn.0045da7f
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
push ebx
mov dword [ebx], 0
mov dword [esi], 0
movsd qword [ebx + 0x18], xmm1
call edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x24c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x43a63e
jmp 0x43a668
lea esi, [ebx + 0x50]
push esi
call edi
mov ecx, dword [esi]
sub ecx, dword [ebx + 0x48]
mov edx, dword [esi + 4]
sbb edx, dword [ebx + 0x4c]
call fcn.0045da7f
mulsd xmm0, qword [0x497fc0]
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
movsd qword [esp + 0x10], xmm0
call fcn.0045da7f
movsd xmm1, qword [esp + 0x10]
lea esi, [ebx + 0x50]
divsd xmm1, xmm0
push esi
movsd qword [ebx + 0x60], xmm1
call edi
mov ecx, dword [esi]
sub ecx, dword [ebx + 0x48]
mov edx, dword [esi + 4]
sbb edx, dword [ebx + 0x4c]
call fcn.0045da7f
mulsd xmm0, qword [0x497fc0]
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
movsd qword [esp + 0x10], xmm0
call fcn.0045da7f
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
comisd xmm1, xmmword [0x497fc8]
movsd qword [ebx + 0x60], xmm1
jbe 0x43a642
jmp 0x43a690
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx]
push ebx
push dword [ebx + 0x28]
mov dword [ebx + 4], eax
call fcn.00405010
mov ecx, dword [esp + 0x354]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0045b11a
push 0x49f71c
lea eax, [esp + 0x14]
mov dword [esp + 0x14], vtable.InetErr.0
push eax
mov dword [esp + 0x24], 2
call fcn.0045b204
lea ecx, [esp + 0x10]
call fcn.0045b11a
push 0x49f71c
lea eax, [esp + 0x14]
mov dword [esp + 0x14], vtable.InetErr.0
push eax
mov dword [esp + 0x24], 4
call fcn.0045b204
int3