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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
mov eax, dword [0x1007f098]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebx + 0x24], 3
mov dword [esp + 0x28], ebx
jae 0x100151a5
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
call fcn.100242a0
sub esp, 8
lea eax, [esp + 0x34]
movsd qword [esp], xmm0
push str._0.3lf
push 0x10
push eax
call fcn.10019b10
add esp, 0x14
lea edx, [esp + 0x2c]
mov ecx, 0x100824a8
call fcn.10002460
mov edx, str.__INFO_
mov ecx, eax
call fcn.10002460
sub esp, 0x18
lea ecx, [ebx + 0xc]
mov edx, esp
mov esi, eax
push ecx
mov ecx, edx
call fcn.1000d180
mov ecx, esi
call fcn.10024bc0
mov edx, str._DebugWrapperCaptureClient::GetNextPacketSize
mov ecx, eax
call fcn.10002460
push eax
call fcn.10002700
mov ecx, dword [ebx + 8]
add esp, 0x1c
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x14]
mov ebx, eax
test ebx, ebx
js 0x1001525a
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
call fcn.100242a0
sub esp, 8
lea eax, [esp + 0x34]
movsd qword [esp], xmm0
push str._0.3lf
push 0x10
push eax
call fcn.10019b10
add esp, 0x14
lea edx, [esp + 0x2c]
mov ecx, 0x100824a8
call fcn.10002460
mov edx, str.__INFO_
mov ecx, eax
call fcn.10002460
mov edx, str.__pNumFramesInNextPacket:
mov ecx, eax
call fcn.10002460
push dword [edi]
mov ecx, eax
call fcn.10007ed0
jmp 0x100152e4
mov ecx, dword [ebx + 8]
push edi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ebx, eax
test ebx, ebx
jns 0x100152ef
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.100242a0
sub esp, 8
lea eax, [esp + 0x34]
movsd qword [esp], xmm0
push str._0.3lf
push 0x10
push eax
call fcn.10019b10
add esp, 0x14
lea edx, [esp + 0x2c]
mov ecx, 0x100824a8
call fcn.10002460
mov edx, str.__INFO_
mov ecx, eax
call fcn.10002460
mov ecx, dword [esp + 0x28]
sub esp, 0x18
add ecx, 0xc
mov esi, esp
mov edi, eax
push ecx
mov ecx, esi
call fcn.1000d180
mov ecx, edi
call fcn.10024bc0
mov edx, str._DebugWrapperCaptureClient::GetNextPacketSize
mov ecx, eax
call fcn.10002460
push eax
call fcn.10002700
add esp, 0x1c
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.100242a0
sub esp, 8
lea eax, [esp + 0x34]
movsd qword [esp], xmm0
push str._0.3lf
push 0x10
push eax
call fcn.10019b10
add esp, 0x14
lea edx, [esp + 0x2c]
mov ecx, 0x100824a8
call fcn.10002460
mov edx, str.__INFO_
mov ecx, eax
call fcn.10002460
mov edx, str.__hr:
mov ecx, eax
call fcn.10002460
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov ecx, eax
call fcn.10024ee0
push eax
call fcn.10002700
mov eax, ebx
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret 8