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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012e308
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x101791e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
and al, 1
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x10], al
lea eax, [ebp + 0xf]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
mov byte [ebp + 0xf], 0
push ebx
push eax
call fcn.1007b440
add esp, 0x10
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x1007b75a
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x911d
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xf], 1
jne 0x1007b7c0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [edi], 0
mov dword [eax], 0x911a
mov dword [edi + 4], 0
test esi, esi
je 0x1007b7aa
cmp dword [esi + 0x14], 0x10
jb 0x1007b790
push dword [esi]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push esi
mov byte [esi], 0
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0x10]
mov eax, esi
mov edi, dword [ebp + 0x14]
or eax, edi
je 0x1007b8bf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push edi
push esi
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call fcn.10125990
push 0
push 0xf4240
push edx
push eax
call fcn.10125990
mov ecx, dword [ebp - 0x28]
mov edi, eax
mov esi, dword [ebp - 0x24]
add edi, ecx
mov ebx, edx
adc ebx, esi
cmp esi, ebx
jg 0x1007b8bf
jl 0x1007b823
cmp ecx, edi
jae 0x1007b8bf
cmp byte [ebp + 0xf], 0
jne 0x1007b913
call fcn.10001dd0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp + 0xf]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push dword [ebp - 0x14]
push eax
call fcn.1007b440
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov dword [eax + 4], 0
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1007b895
cmp dword [esi + 0x14], 0x10
jb 0x1007b87b
push dword [esi]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push esi
mov byte [esi], 0
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x20]
mov dword [ebp + 0x14], 0
test ecx, ecx
jne 0x1007b8f6
mov esi, dword [ebp - 0x24]
cmp esi, ebx
jge 0x1007b8b2
mov ecx, dword [ebp - 0x28]
jmp 0x1007b823
jg 0x1007b8bf
mov ecx, dword [ebp - 0x28]
cmp ecx, edi
jb 0x1007b823
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x911b
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
lea ecx, [ebp - 0x20]
call fcn.100035b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax], 0x911d
mov dword [esi + 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x1007b8d8
cmp esi, ebx
jg 0x1007b8bf
jl 0x1007b91d
cmp ecx, edi
jae 0x1007b8bf
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x911c
jmp 0x1007b8c8