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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3060
call fcn.005cd210
push ebx
push ebp
push esi
push edi
mov ecx, 0x6f
call fcn.00493a50
test al, al
mov ebp, 1
je 0x516905
mov ecx, 0xb
call fcn.00493a50
test al, al
je 0x516905
mov eax, dword [0x6b82f0]
test eax, eax
jne 0x51690f
mov ecx, dword [0x6b82fc]
mov eax, ebp
sub eax, ecx
mov dword [0x6b82fc], eax
mov dword [0x6b82f0], ebp
jmp 0x51690f
mov dword [0x6b82f0], 0
mov ecx, 0x6f
call fcn.00493a50
test al, al
je 0x51694b
mov ecx, 0xc
call fcn.00493a50
test al, al
je 0x51694b
mov eax, dword [0x6b82f4]
test eax, eax
jne 0x516955
mov eax, dword [0x6b82f8]
mov ecx, ebp
sub ecx, eax
mov dword [0x6b82f8], ecx
mov dword [0x6b82f4], ebp
jmp 0x516955
mov dword [0x6b82f4], 0
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea edx, [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push 0x3e8
push eax
push ecx
call fcn.005d2e50
mov ecx, dword [0x647764]
push ecx
mov ecx, dword [0x647760]
push ecx
push edx
push eax
call fcn.005de0d0
mov ecx, dword [0x6b8300]
mov esi, eax
sub esi, ecx
mov dword [0x6b8300], eax
je 0x5169a9
mov eax, 0x3e8
xor edx, edx
div esi
mov esi, eax
call fcn.00516130
test esi, esi
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
jge 0x5169c0
fadd dword [0x612320]
push ecx
xor ecx, ecx
fstp dword [esp]
call fcn.005167c0
mov al, byte [0x6b82fc]
mov bl, byte [0x6b82f8]
add esp, 4
call fcn.005163d0
call fcn.004daed0
mov al, byte [0x6249c0]
test al, al
je 0x516cd0
mov eax, dword [0x6b81a8]
mov edx, dword [0x637d10]
mov ebx, dword [0x6b81ac]
mov si, word [0x637d06]
sub edx, eax
mov eax, dword [0x637d14]
lea ecx, [esp + 0x10]
sbb eax, ebx
push ecx
mov word [esp + 0x20], 0x64
mov word [esp + 0x22], 0xc8
mov word [esp + 0x24], 0x12c
mov word [esp + 0x26], 0x190
mov word [esp + 0x28], 0x1f4
mov word [esp + 0x2a], 0x258
mov word [esp + 0x2e], 0
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x48], 0x3f28f5c3
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x50], 0x3f28f5c3
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x40], 0x3f800000
mov dword [esp + 0x54], 0x3f800000
mov dword [esp + 0x58], 0x3f800000
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push 0x3e8
push edx
push eax
call fcn.005d2e50
mov ecx, dword [0x647764]
push ecx
mov ecx, dword [0x647760]
push ecx
push edx
push eax
call fcn.005de0d0
mov edi, dword [0x6b81a0]
mov ecx, dword [0x6b81a4]
xor edx, edx
sub eax, edi
sbb edx, ecx
mov ebx, 6
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
lea eax, [esp + 0x1c]
mov ecx, ebx
add word [eax], si
add eax, 2
dec ecx
jne 0x516b01
mov eax, dword [0x637d04]
mov ecx, dword [0x637d08]
push 0
push 5
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, 0x20
add word [esp + 0x20], ax
push 0xffffffffffffffff
mov dword [esp + 0x28], ecx
add word [esp + 0x28], ax
push ebp
call fcn.004973c0
movsx edx, word [0x75dfc4]
push edx
lea eax, [esp + 0x8c]
push str.ntframeratetaverage__of__d_tmintmaxtdropped
push eax
call fcn.005c87a3
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov word [esp + 0x40], si
mov ecx, dword [esp + 0x40]
mov dword [0x67f642], ecx
mov ecx, dword [esp + 0x5c]
mov dword [0x67f634], eax
lea eax, [esp + 0x94]
push eax
mov dword [0x67f638], ecx
lea ecx, [esp + 0x50]
mov dword [0x67f630], edx
mov edx, dword [esp + 0x64]
push 0xfffffffffffffffc
push ecx
xor eax, eax
lea ecx, [esp + 0x40]
mov word [0x67f640], bx
mov dword [0x67f646], edi
mov dword [0x67f64a], ebp
mov dword [0x67f63c], edx
call fcn.005182f0
fld dword [0x75dfd4]
mov edx, dword [esp + 0x5a]
fstp qword [esp + 0x28]
lea eax, [esp + 0xa0]
fld dword [0x75dfd0]
dec edx
fstp qword [esp + 0x20]
mov word [esp + 0x40], dx
fld dword [0x75dfcc]
fstp qword [esp + 0x18]
fild qword [esp + 0x98]
fmul dword [0x612248]
fild qword [esp + 0x90]
fdivp st(1)
fstp qword [esp + 0x10]
fld dword [0x75dfc8]
fstp qword [esp + 8]
fld dword [0x75dfc0]
fstp qword [esp]
push str.t_.0ft_.0f__.0ft_.0ft_.0ft_5.1f__n
push eax
call fcn.005c87a3
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov word [esp + 0x54], si
mov ecx, dword [esp + 0x54]
mov dword [0x67f642], ecx
mov ecx, dword [esp + 0x80]
mov dword [0x67f630], edx
mov edx, dword [esp + 0x84]
mov dword [0x67f634], eax
mov word [0x67f640], bx
mov dword [0x67f646], edi
mov dword [0x67f64a], ebp
mov dword [0x67f638], ecx
mov dword [0x67f63c], edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x64]
push 0xfffffffffffffffc
push ecx
xor eax, eax
lea ecx, [esp + 0x54]
call fcn.005182f0
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov dword [0x67f630], edx
mov edx, dword [esp + 0xa0]
add esp, 0x44
mov word [0x67f640], 0
mov dword [0x67f634], eax
mov dword [0x67f638], ecx
mov dword [0x67f63c], edx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret