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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3060
call fcn.00628480
push ebx
push ebp
push esi
push edi
mov ecx, 0x6f
call fcn.00490c50
test al, al
mov ebp, 1
je 0x513075
mov ecx, 0xb
call fcn.00490c50
test al, al
je 0x513075
mov eax, dword [0x71d048]
test eax, eax
jne 0x51307f
mov ecx, dword [0x71d054]
mov eax, ebp
sub eax, ecx
mov dword [0x71d054], eax
mov dword [0x71d048], ebp
jmp 0x51307f
mov dword [0x71d048], 0
mov ecx, 0x6f
call fcn.00490c50
test al, al
je 0x5130bb
mov ecx, 0xc
call fcn.00490c50
test al, al
je 0x5130bb
mov eax, dword [0x71d04c]
test eax, eax
jne 0x5130c5
mov eax, dword [0x71d050]
mov ecx, ebp
sub ecx, eax
mov dword [0x71d050], ecx
mov dword [0x71d04c], ebp
jmp 0x5130c5
mov dword [0x71d04c], 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.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov ecx, dword [0x71d058]
mov esi, eax
sub esi, ecx
mov dword [0x71d058], eax
je 0x513119
mov eax, 0x3e8
xor edx, edx
div esi
mov esi, eax
call fcn.005128a0
test esi, esi
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
jge 0x513130
fadd dword [0x672bf8]
push ecx
xor ecx, ecx
fstp dword [esp]
call fcn.00512f30
mov al, byte [0x71d054]
mov bl, byte [0x71d050]
add esp, 4
call fcn.00512b40
call fcn.004d7b10
mov al, byte [0x6893e0]
test al, al
je 0x513440
mov eax, dword [0x71cf00]
mov edx, dword [0x69c658]
mov ebx, dword [0x71cf04]
mov si, word [0x69c64e]
sub edx, eax
mov eax, dword [0x69c65c]
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.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov edi, dword [0x71cef8]
mov ecx, dword [0x71cefc]
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 0x513271
mov eax, dword [0x69c64c]
mov ecx, dword [0x69c650]
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.004945c0
movsx edx, word [0x7c2c44]
push edx
lea eax, [esp + 0x8c]
push str.ntframeratetaverage__of__d_tmintmaxtdropped
push eax
call fcn.006238e3
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 [0x6e4672], ecx
mov ecx, dword [esp + 0x5c]
mov dword [0x6e4664], eax
lea eax, [esp + 0x94]
push eax
mov dword [0x6e4668], ecx
lea ecx, [esp + 0x50]
mov dword [0x6e4660], edx
mov edx, dword [esp + 0x64]
push 0xfffffffffffffffc
push ecx
xor eax, eax
lea ecx, [esp + 0x40]
mov word [0x6e4670], bx
mov dword [0x6e4676], edi
mov dword [0x6e467a], ebp
mov dword [0x6e466c], edx
call fcn.00514a50
fld dword [0x7c2c54]
mov edx, dword [esp + 0x5a]
fstp qword [esp + 0x28]
lea eax, [esp + 0xa0]
fld dword [0x7c2c50]
dec edx
fstp qword [esp + 0x20]
mov word [esp + 0x40], dx
fld dword [0x7c2c4c]
fstp qword [esp + 0x18]
fild qword [esp + 0x98]
fmul dword [0x672b20]
fild qword [esp + 0x90]
fdivp st(1)
fstp qword [esp + 0x10]
fld dword [0x7c2c48]
fstp qword [esp + 8]
fld dword [0x7c2c40]
fstp qword [esp]
push str.t_.0ft_.0f__.0ft_.0ft_.0ft_5.1f__n
push eax
call fcn.006238e3
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov word [esp + 0x54], si
mov ecx, dword [esp + 0x54]
mov dword [0x6e4672], ecx
mov ecx, dword [esp + 0x80]
mov dword [0x6e4660], edx
mov edx, dword [esp + 0x84]
mov dword [0x6e4664], eax
mov word [0x6e4670], bx
mov dword [0x6e4676], edi
mov dword [0x6e467a], ebp
mov dword [0x6e4668], ecx
mov dword [0x6e466c], edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x64]
push 0xfffffffffffffffc
push ecx
xor eax, eax
lea ecx, [esp + 0x54]
call fcn.00514a50
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov dword [0x6e4660], edx
mov edx, dword [esp + 0xa0]
add esp, 0x44
mov word [0x6e4670], 0
mov dword [0x6e4664], eax
mov dword [0x6e4668], ecx
mov dword [0x6e466c], edx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret