Function at 0x10011f20
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cda7c
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x10157aa0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
mov esi, dword [ebp + 8]
mov dword [edi], vtable.ToraBase::Channel.0
mov byte [edi + 0xc], 0
mov byte [edi + 0xd], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], esi
mov dword [ebp - 4], 0
mov dword [edi], vtable.ToraBase::TcpTstpClientChannel.0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], vtable.ToraBase::TcpSocket.0
mov byte [edi + 0x24], 0
mov dword [edi + 0x44], 0
mov byte [edi + 0x48], 0
mov dword [edi + 0x68], 0
push 0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push 0x10013da0
push 0x10013d90
lea ecx, [edi + 0x80]
mov dword [ebp - 0x1c], 0x35
call fcn.1000f8e0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xb0], 0
push 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
push 0x10013da0
push 0x10013d90
lea ecx, [edi + 0xc4]
mov dword [ebp - 0x2c], 0x35
call fcn.1000f8e0
mov dword [edi + 0xf8], 0
mov dword [edi + 0xfc], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0xf4], 0
mov byte [ebp - 4], 5
push 0xc
mov dword [edi + 0x74], 0x1408
call fcn.100badd8
add esp, 4
test eax, eax
je 0x100120a5
mov dword [eax], vtable.ToraBase::ChannelInformer.0
mov dword [eax + 4], esi
mov dword [eax + 8], edi
jmp 0x100120a7
xor eax, eax
mov dword [edi + 0x120], eax
mov eax, dword [ebp + 0xc]
push 0x348
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], eax
mov byte [edi + 0x6c], 0
mov dword [edi + 0xc0], 0
call fcn.100badd8
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x1001212c
mov ecx, dword [edi + 0x74]
add ecx, 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebx], vtable.ToraBase::MakeSender.0
push 0
push 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
push 0
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebx + 4]
call fcn.10011550
xor eax, eax
mov dword [ebx], vtable.ToraBase::TstpFlow.1.0
mov dword [ebx + 4], vtable.ToraBase::TstpFlow.0
mov word [ebx + 0x344], ax
jmp 0x1001212e
xor ebx, ebx
mov byte [ebp - 4], 5
push 0x348
mov dword [edi + 0x104], ebx
call fcn.100badd8
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x100121a2
mov ecx, dword [edi + 0x74]
add ecx, 2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebx], vtable.ToraBase::MakeSender.0
push 0
push 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 9
push eax
push 0
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebx + 4]
call fcn.10011550
mov eax, 0x6fff
mov dword [ebx], vtable.ToraBase::TstpFlow.1.0
mov dword [ebx + 4], vtable.ToraBase::TstpFlow.0
mov word [ebx + 0x344], ax
jmp 0x100121a4
xor ebx, ebx
mov byte [ebp - 4], 5
push 0x14bc
mov dword [edi + 0x108], ebx
mov dword [edi + 0x70], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], ebx
call fcn.100badd8
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x10012230
mov ebx, dword [edi + 0x104]
test ebx, ebx
je 0x100121e8
add ebx, 4
jmp 0x100121ea
xor ebx, ebx
mov eax, dword [edi + 0x120]
lea ecx, [esi + 4]
push ebx
mov dword [ecx], vtable.ToraBase::CachedFlow::Iterator.0
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], 0
mov dword [ecx + 0x24], 0
call fcn.100118d0
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x14b8], eax
jmp 0x10012232
xor esi, esi
push esi
push 0
mov byte [ebp - 4], 5
mov ecx, edi
push dword [edi + 0x104]
call fcn.100127d0
mov eax, dword [0x14d11450]
mov ebx, 0x14d11450
or eax, dword [0x14d11454]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jne 0x1001226d
lea eax, [ebp - 0x54]
push eax
call esi
mov ecx, dword [ebp - 0x54]
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x54]
push eax
call ebx
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
call fcn.100cd53f
movsd xmm1, qword [0x100f81d0]
mov edx, dword [0x14d11454]
mov ecx, dword [0x14d11450]
mulsd xmm0, xmm1
movsd qword [ebp - 0x4c], xmm1
movsd qword [ebp - 0x54], xmm0
call fcn.100cd53f
movsd xmm1, qword [ebp - 0x54]
divsd xmm1, xmm0
movsd xmm0, qword [0x100f81c8]
addsd xmm1, xmm0
movsd qword [ebp - 0x54], xmm0
movaps xmm0, xmm1
call fcn.100cd390
mov dword [edi + 0x110], eax
mov dword [edi + 0x114], edx
mov eax, dword [0x14d11450]
or eax, dword [0x14d11454]
jne 0x100122fa
lea eax, [ebp - 0x5c]
push eax
call esi
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov edx, 0x14d11450
lock cmpxchg dword [edx], ecx
lea eax, [ebp - 0x5c]
push eax
call ebx
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
call fcn.100cd53f
mulsd xmm0, qword [ebp - 0x4c]
mov edx, dword [0x14d11454]
mov ecx, dword [0x14d11450]
movsd qword [ebp - 0x5c], xmm0
call fcn.100cd53f
movsd xmm1, qword [ebp - 0x5c]
divsd xmm1, xmm0
addsd xmm1, qword [ebp - 0x54]
movapd xmm0, xmm1
call fcn.100cd390
mov dword [edi + 0x118], eax
mov eax, edi
mov dword [edi + 0x11c], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8