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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b96ad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b0
mov eax, dword [0x624040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x24], ecx
mov edi, dword [ebx + 0x10]
lea eax, [ebp - 0x2b0]
push 0x48
push 0
push eax
mov dword [ebp - 0x2b8], edi
mov byte [ebp - 0x2b1], 0
call fcn.00591a40
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
add esp, 0xc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0x2b0]
push 0x40
push eax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x48], 0
push eax
mov dword [ebp - 0x44], 0x186a0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x290], 1
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x3c], 0xffffffff
call fcn.0048afa0
add esp, 0xc
test eax, eax
jne 0x416240
lea eax, [ebp - 0x3c]
push eax
push 0x416280
push 2
push dword [ebp - 0x24]
push dword [ebp - 0x264]
call fcn.0048a7e0
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4160b3
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x4160b3
push 0
push 0x3e8
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.005b83b0
push edx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.005b83b0
mov dword [ebp - 0x24], edx
jmp 0x4160c4
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0
push eax
push dword [ebp - 0x264]
mov dword [ebp - 0x158], 0
call fcn.0048a6a0
add esp, 0xc
test eax, eax
je 0x4161dd
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
push ecx
push 0
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call fcn.0048d000
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x416172
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
je 0x416172
push 0
push 0x3e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.005b83b0
push edx
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.005b83b0
jmp 0x416189
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c0], xmm0
mov edx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2c0]
sub eax, edi
sbb edx, dword [ebp - 0x24]
mov dword [ebp - 0x2bc], edx
jne 0x4161d7
jb 0x41619f
cmp eax, 0x3e8
ja 0x4161d7
lea eax, [ebp - 0x158]
mov dword [ebp - 0x260], 0
push eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x158], 0
push eax
push dword [ebp - 0x264]
call fcn.0048a6a0
add esp, 0xc
test eax, eax
jne 0x416102
mov edi, dword [ebp - 0x2b8]
push dword [ebp - 0x264]
call fcn.0048abc0
add esp, 4
cmp dword [ebp - 0x3c], 0
jne 0x416240
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov byte [ebp - 0x2b1], 1
mov dword [ebp - 0x2b8], eax
cmp esi, eax
je 0x416240
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
je 0x41622c
movups xmm0, xmmword [esi]
movups xmmword [ecx], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ecx + 0x10], xmm0
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x18], eax
add dword [edi + 4], 0x1c
jmp 0x416235
push esi
push ecx
mov ecx, edi
call fcn.00415c00
add esi, 0x1c
cmp esi, dword [ebp - 0x2b8]
jne 0x416208
lea ecx, [ebp - 0x34]
call fcn.00407ea0
mov al, byte [ebp - 0x2b1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret