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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [0x140261350]
movups xmmword [rdx + 0x78], xmm6
mov rdx, qword [rcx]
mov r8, qword [rdx + 8]
mov rcx, qword [rdx + 0x18]
inc r8
xor eax, eax
cmp r8, qword [rdx]
cmove r8, rax
imul rdx, r8, 0xa8
mov r8, qword [rcx + rdx]
mov qword [rsi], r8
mov qword [rcx + rdx], 0
movups xmm0, xmmword [rcx + rdx + 8]
movups xmm1, xmmword [rcx + rdx + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov r8, qword [rcx + rdx + 0x75]
mov qword [rsi + 0x75], r8
movups xmm0, xmmword [rcx + rdx + 0x68]
movups xmmword [rsi + 0x68], xmm0
movups xmm0, xmmword [rcx + rdx + 0x28]
movups xmm1, xmmword [rcx + rdx + 0x38]
movups xmm2, xmmword [rcx + rdx + 0x48]
movups xmm3, xmmword [rcx + rdx + 0x58]
movups xmmword [rsi + 0x58], xmm3
movups xmmword [rsi + 0x48], xmm2
movups xmmword [rsi + 0x38], xmm1
movups xmmword [rsi + 0x28], xmm0
movzx r8d, byte [rcx + rdx + 0x82]
mov byte [rsi + 0x82], r8b
movzx r8d, word [rcx + rdx + 0x80]
mov word [rsi + 0x80], r8w
mov r8, qword [rcx + rdx + 0x88]
mov qword [rsi + 0x88], r8
mov qword [rcx + rdx + 0x88], 0
mov r8, qword [rcx + rdx + 0x90]
mov qword [rsi + 0x90], r8
mov r8, qword [rcx + rdx + 0x98]
mov qword [rsi + 0x98], r8
mov qword [rcx + rdx + 0x98], 0
mov rcx, qword [rcx + rdx + 0xa0]
mov qword [rsi + 0xa0], rcx
mov rcx, qword [rdi]
mov rdx, qword [rcx + 8]
mov rbx, qword [rcx + 0x18]
inc rdx
cmp rdx, qword [rcx]
cmove rdx, rax
mov qword [rcx + 8], rdx
imul r14, rdx, 0xa8
mov rcx, qword [rbx + r14 + 0x98]
test rcx, rcx
jne 0x14011a480
lea r15, [rbx + r14]
mov rbx, qword [rbx + r14 + 0x88]
test rbx, rbx
jne 0x14011a493
mov rcx, qword [r15]
test rcx, rcx
jne 0x14011a4f3
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 8]
jne 0x14011a204
mov rcx, qword [rax + 0x20]
test rcx, rcx
jne 0x14011a50b
dec qword [rdi + 0x10]
jne 0x14011a438
movabs r13, 0xaaaaaaaaaaaaaaaa
movabs r12, 0x8637bd05af7
cmp dword [rdi + 0x78], 0
jne 0x14011a38b
mov rbp, qword [rdi + 0x30]
cmp qword [rdi + 8], 0
je 0x14011a2dd
mov qword [rsp + 0x58], r13
mov rax, qword [0x140288f88]
lea rcx, [0x140171950]
cmp rax, rcx
jne 0x14011a60b
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x80]
cmp rax, r12
jge 0x14011a7cd
imul rax, rax, 0xf4240
cqo
idiv qword [0x14029b670]
mov qword [rsp + 0x58], rax
cmp rax, qword [rdi + 0x20]
jl 0x14011a2dd
mov rax, qword [rdi + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x18], rcx
test rax, rax
je 0x14011a2dd
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x14011a2c8
cmp rcx, r8
jb 0x14011a5ac
lea rbx, [rbp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14011a537
mov rax, qword [rdi]
mov rcx, qword [rbp + 0x28]
mov qword [rdi], rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rbp + 0x30]
mov qword [rdi + 8], rcx
mov qword [rbp + 0x30], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rbp + 0x38]
mov qword [rdi + 0x10], rcx
mov qword [rbp + 0x38], rax
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbp + 0x40]
mov qword [rdi + 0x18], rcx
mov qword [rbp + 0x40], rax
mov rax, qword [rdi + 0x20]
mov rcx, qword [rbp + 0x48]
mov qword [rdi + 0x20], rcx
mov qword [rbp + 0x48], rax
cmp byte [rbp + 0x158], 0
jne 0x14011a73f
mov rax, qword [rbp + 0xb8]
cmp qword [rax + 0x10], 0
sete byte [rbp + 0x50]
cmp qword [rbp + 0xa8], 0
movzx eax, byte [rbp + 0x128]
jne 0x14011a37f
test al, al
je 0x14011a5ee
movzx eax, byte [rbp + 0x130]
xor al, 1
mov byte [rbp + 0x51], al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rdi + 8], 0
je 0x14011a438
mov qword [rsp + 0x58], r13
mov rax, qword [0x140288f88]
lea rcx, [0x140171950]
cmp rax, rcx
jne 0x14011a5f5
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x80]
cmp rax, r12
jge 0x14011a7a6
imul rax, rax, 0xf4240
cqo
idiv qword [0x14029b670]
mov qword [rsp + 0x58], rax
cmp rax, qword [rdi + 0x20]
jl 0x14011a438
mov rax, qword [rdi + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x18], rcx
test rax, rax
je 0x14011a438
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x14011a423
cmp rcx, r8
jb 0x14011a57d
mov rcx, qword [rdi + 0x28]
mov rdx, rdi
call fcn.14011a8f0
test byte [0x140289ce0], 9
jne 0x14011a62b
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401756e0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lock dec dword [rcx]
jne 0x14011a1c9
call fcn.140172a44
jmp 0x14011a1c9
lock dec dword [rbx + 8]
jne 0x14011a1de
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x1401d6b00]
cmp qword [rcx + 0x10], rdx
jne 0x14011a5db
lea rcx, [0x1401ed3e0]
cmp rax, rcx
jne 0x14011a5db
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14011a4d7
lock dec dword [rcx]
je 0x14011a621
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x14011a4e6
lock dec dword [r14]
je 0x14011a544
mov rcx, rbx
call fcn.140172a44
jmp 0x14011a1de
lock dec dword [rcx]
jne 0x14011a1ea
mov rax, qword [rcx + 0x10]
call qword [case.0x1401d7990.0]
jmp 0x14011a1ea
mov qword [rax + 0x20], 0
mov rbx, qword [rdi]
mov qword [rdi], rcx
test rbx, rbx
je 0x14011a204
mov rcx, rbx
call fcn.140017270
mov rcx, rbx
call fcn.140172a44
jmp 0x14011a204
mov rcx, rbx
call fcn.1400ec2e0
jmp 0x14011a2f2
mov rcx, qword [r14 + 0x20]
mov rax, qword [0x14028a5a0]
and rax, rcx
cmp rax, qword [0x14028a588]
je 0x14011a8c5
mov qword [r14 + 0x20], 0
lea rcx, [r14 + 8]
call fcn.14000b2f0
mov rcx, r14
call fcn.140172a44
jmp 0x14011a4e6
mov rcx, rdi
call fcn.14000a600
mov rax, qword [rsp + 0x58]
mov ecx, 0x4c4b40
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov qword [rdi + 0x20], rcx
jmp 0x14011a438
mov rcx, rdi
call fcn.14000a600
mov rax, qword [rsp + 0x58]
mov ecx, 0x4c4b40
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov qword [rdi + 0x20], rcx
jmp 0x14011a2dd
mov rcx, rbx
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x14011a1de
xor eax, eax
jmp 0x14011a37f
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [case.0x1401d7990.0]
mov rax, qword [rbx]
jmp 0x14011a3f2
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [case.0x1401d7990.0]
mov rax, qword [rbx]
jmp 0x14011a297
call fcn.140172a44
jmp 0x14011a4d7
mov rbx, qword [rdi + 0x30]
mov rax, qword [rbx + 0x10]
mov edi, dword [rax + 4]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp edi, eax
jne 0x14011a451
lea rdi, [rbx + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14011a8cf
mov r14, qword [rbx + 0x38]
mov rax, qword [rbx + 0xb0]
mov rcx, qword [rbx + 0xb8]
mov r12, qword [rcx + 0x10]
mov r15, qword [rax + 0x10]
mov r13, qword [rbx + 0xd0]
mov rbp, qword [rbx + 0xc8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test byte [0x140289ce0], 0x19
je 0x14011a451
sub r13, rbp
shr r13, 3
imul eax, r13d, 0x3cf3cf3d
add r12d, r14d
add r15d, r12d
add r15d, eax
mov ecx, dword [rbx]
call fcn.1401ed4c0
mov rdi, rax
lea rbx, [rsp + 0x58]
mov rcx, rbx
call fcn.140158d50
call sub.KERNEL32.dll_GetCurrentThreadId
lea r14, [rsp + 0x80]
movaps xmmword [r14], xmm6
movaps xmmword [r14 + 0x10], xmm6
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [r14 + 0x20], rcx
mov word [r14], 0x301
lea rcx, [0x14026226a]
mov qword [r14 + 8], rcx
movsxd rcx, r15d
mov qword [r14 + 0x18], rcx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
lea rdx, [0x140289ce0]
mov cl, 0x43
mov r8, rdi
xor r9d, r9d
call fcn.1400efe20
mov rcx, r14
call fcn.14012f900
jmp 0x14011a451
lea r14, [rsp + 0x70]
movaps xmmword [r14], xmm6
mov rdx, qword [rdi]
mov rcx, r14
call fcn.1401de670
mov rax, qword [r14]
test rax, rax
je 0x14011a8c0
lea r15, [rsp + 0x70]
xor r14d, r14d
cmp byte [rbp + 0x158], 0
je 0x14011a8de
imul rdx, qword [rsp + 0x78], 0xa8
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + rdx + 0x28]
cmp rax, qword [rbp + 0x160]
jge 0x14011a7f4
mov rcx, r15
call fcn.1401dd9d0
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x14011a767
jmp 0x14011a89c
mov rcx, qword [0x14029b670]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14011a3ed
mov rcx, qword [0x14029b670]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14011a292
add rcx, rdx
mov byte [rbp + 0x158], 0
lea r14, [rsp + 0x58]
mov rdx, r14
call fcn.14013b880
lea r15, [rsp + 0x80]
mov rcx, r15
mov rdx, r14
call fcn.1401ed770
lea r14, [rbp + 0x138]
cmp byte [rbp + 0x130], 0
movups xmm0, xmmword [r15]
movups xmmword [rbp + 0x138], xmm0
mov eax, dword [r15 + 0x10]
mov dword [rbp + 0x148], eax
jne 0x14011a84a
mov byte [rbp + 0x130], 1
mov rcx, qword [rbp + 0xb8]
mov eax, dword [r14 + 0x10]
lea rdx, [rsp + 0x80]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [r14]
movaps xmmword [rdx], xmm0
call fcn.1401dda50
cmp byte [rbp + 0x130], 0
je 0x14011a8dc
mov rcx, qword [rbp + 0xb0]
mov eax, dword [r14 + 0x10]
lea rdx, [rsp + 0x80]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [r14]
movaps xmmword [rdx], xmm0
call fcn.1401dda50
mov r14, qword [rsp + 0x70]
mov rax, qword [0x14028a5a0]
and rax, r14
cmp rax, qword [0x14028a588]
jne 0x14011a34d
mov rcx, r14
call fcn.1400ebe70
jmp 0x14011a34d
xor r14d, r14d
jmp 0x14011a89c
call fcn.1400ebe70
jmp 0x14011a55f
mov rcx, rdi
call fcn.1400ec2e0
jmp 0x14011a658
ud2
call fcn.1401b36e0
int3