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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1030]
mov eax, 0x1130
call fcn.14014ffe0
sub rsp, rax
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x1020], rax
mov r13d, r9d
mov rsi, rcx
mov rax, qword [rbp + 0x1098]
mov qword [rsp + 0x30], rax
mov r12, qword [rbp + 0x10a0]
mov byte [r12], 0
lea r14, [rcx + 0x34]
cmp r8d, dword [rcx + 0x30]
jne 0x1400a70b4
cmp dword [r14], 3
je 0x1400a70c8
mov dword [rcx + 0x30], r8d
mov dword [r14], 3
add rcx, 8
call fcn.140091970
mov qword [rsp + 0x38], 0
mov rdi, qword [rsi + 0x20]
mov r15, qword [rsi + 0x28]
add r15, rdi
cmp rdi, r15
je 0x1400a718b
nop word [rax + rax]
mov rbx, rdi
shr rbx, 1
mov rax, qword [rsi + 0x18]
dec rax
and rbx, rax
mov rcx, rdi
and ecx, 1
mov rax, qword [rsi + 0x10]
mov rbx, qword [rax + rbx*8]
mov rbx, qword [rbx + rcx*8]
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x1400a7125
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
cmp eax, 2
je 0x1400a714f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
inc rdi
cmp rdi, r15
jne 0x1400a70f0
jmp 0x1400a717f
mov rdi, qword [rsp + 0x38]
cmp rdi, rbx
je 0x1400a7175
mov qword [rsp + 0x38], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
test rdi, rdi
je 0x1400a7175
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
cmp qword [rsp + 0x38], 0
jne 0x1400a741b
movsxd rax, dword [rsi + 0x38]
cmp qword [rsi + 0x28], rax
jae 0x1400a73fc
cmp dword [r14], 3
jne 0x1400a7295
lea rcx, [rbp + 0x7f8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x800]
call fcn.140152140
lea r8, str.Allocate_pool___waiting_for_dx11_finish_queue
mov edx, 0x400
lea rcx, [rbp + 0x800]
call fcn.140155cf8
mov dword [rbp + 0x7f0], 7
mov byte [rbp + 0x1000], 0
movsd xmm0, qword [0x1401f9ca8]
movsd qword [rbp + 0x1008], xmm0
mov byte [rbp + 0x1010], 1
mov rcx, qword [rsi]
mov qword [rsp + 0x40], rcx
test rcx, rcx
je 0x1400a721b
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400a726a
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov edx, 3
call qword [rax + 0x1b0]
test eax, eax
mov rax, qword [rsp + 0x50]
jne 0x1400a7265
test rax, rax
je 0x1400a7265
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
test rax, rax
je 0x1400a727d
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 8]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400a7289
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbp + 0x7f0]
call fcn.140083fb0
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x30]
call fcn.140152140
lea r8, str.Allocate_pool___AllocSurface
mov edx, 0x400
lea rcx, [rbp - 0x30]
call fcn.140155cf8
mov dword [rbp - 0x40], 7
mov byte [rbp + 0x7d0], 0
movsd xmm0, qword [0x1401f9c90]
movsd qword [rbp + 0x7d8], xmm0
mov byte [rbp + 0x7e0], 1
mov rbx, qword [rsi]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400a72fd
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rsp + 0x38], 0
mov r10, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x1090]
mov dword [rsp + 0x20], eax
mov r9d, r13d
mov r8d, dword [rsi + 0x30]
mov edx, dword [r14]
mov rcx, rbx
call qword [r10 + 0x160]
lea r13, [rsi + 8]
cmp qword [rsp + 0x38], 0
je 0x1400a7373
mov byte [r12], 1
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.140091a70
mov eax, dword [0x140230ce8]
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400a7373
mov r8, qword [rsi + 0x28]
lea rdx, str.surface_pool_resized__d
mov ecx, 7
call fcn.140083970
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, qword [rsp + 0x50]
sub rax, qword [rbp - 0x38]
xorps xmm3, xmm3
cvtsi2sd xmm3, rax
mulsd xmm3, qword [0x1401f9d00]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm3, xmm0
comisd xmm3, xmmword [rbp + 0x7d8]
jbe 0x1400a73fa
cmp byte [rbp + 0x7e0], 0
je 0x1400a73d1
mov eax, dword [0x140230ce8]
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400a73fa
movq r9, xmm3
lea r8, [rbp - 0x30]
mov ecx, dword [rbp - 0x40]
cmp byte [rbp + 0x7d0], 0
lea rdx, str._s_end___f_
jne 0x1400a73f4
lea rdx, str._s___f_
call fcn.140083970
nop
jmp 0x1400a741f
mov eax, dword [0x140230ce8]
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400a741b
lea rdx, str.surface_pool_size_reached
mov ecx, 7
call fcn.140083970
lea r13, [rsi + 8]
call fcn.14000c950
mov r12, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
lea ecx, [rax + 0x10]
call fcn.14014f310
mov qword [rax + 8], 0
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x80]
mov qword [rax], rcx
mov r14, qword [rsi + 0x20]
mov r15, qword [rsi + 0x28]
add r15, r14
cmp r14, r15
je 0x1400a7566
mov rbx, qword [rsi + 0x18]
dec rbx
mov rax, r14
shr rax, 1
and rbx, rax
mov rcx, r14
and ecx, 1
mov rax, qword [rsi + 0x10]
mov rbx, qword [rax + rbx*8]
mov rbx, qword [rbx + rcx*8]
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x1400a74a5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
cmp eax, 2
jne 0x1400a7541
xor edi, edi
mov dword [rsp + 0x60], edi
mov rax, qword [rbx]
lea r8, [rsp + 0x60]
lea rdx, str.SurfacePoolLastAccessTime
mov rcx, rbx
call qword [rax + 0x20]
test eax, eax
jne 0x1400a751c
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400a751c
cmp eax, 2
jne 0x1400a74f2
mov rdi, qword [rsp + 0x68]
jmp 0x1400a751c
mov dword [rbp - 0x58], edi
mov r8d, 2
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.14000d3d0
cmp dword [rbp - 0x58], 0
cmovne rdi, qword [rbp - 0x50]
lea rcx, [rbp - 0x58]
call fcn.14000b9c0
nop
lea rcx, [rsp + 0x60]
call fcn.14000b9c0
nop
test rdi, rdi
je 0x1400a7541
mov rax, r12
sub rax, rdi
cmp rax, 0x1c9c380
jle 0x1400a7541
test rbx, rbx
je 0x1400a755a
jmp 0x1400a7550
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140091a70
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
inc r14
cmp r14, r15
jne 0x1400a7470
mov r8, qword [rbp - 0x60]
cmp qword [rsi + 0x28], r8
je 0x1400a7593
mov eax, dword [0x140230ce8]
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400a7593
lea rdx, str.surface_pool_resized__d
mov ecx, 7
call fcn.140083970
mov r8, qword [rbp - 0x60]
lea rax, [rbp - 0x80]
cmp r13, rax
je 0x1400a75e8
mov rdx, qword [rbp - 0x68]
lea rax, [rdx + r8]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.1400a7720
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400a7644
mov dword [rbp - 0x58], 2
mov qword [rbp - 0x50], r12
movups xmm0, xmmword [rbp - 0x58]
movaps xmmword [rsp + 0x60], xmm0
movsd xmm1, qword [rbp - 0x48]
movsd qword [rsp + 0x70], xmm1
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, str.SurfacePoolLastAccessTime
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x58]
call fcn.14000b9c0
nop
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rcx]
call qword [rax]
xor ebx, ebx
jmp 0x1400a7649
mov ebx, 1
lea rcx, [rbp - 0x80]
call fcn.140091970
mov rcx, qword [rbp - 0x80]
mov qword [rbp - 0x80], 0
mov edx, 0x10
call fcn.14014f59c
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400a767a
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x1020]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x1178]
add rsp, 0x1130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret