Function at 0x1400ca110
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, 0x5f8
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x5f0], rax
cmp qword [rcx + 0x28], 0
je 0x1400ca747
mov rsi, rcx
lea rdi, [rsp + 0xb0]
mov r8d, 0x540
mov rcx, rdi
mov dl, 0xaa
call fcn.14016a6d0
mov qword [rsp + 0xa8], 0
cmp qword [rsi + 0x10], 0
je 0x1400ca747
xor r15d, r15d
lea r12, [0x14018d450]
mov rax, qword [rsi]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
cmp rdx, r8
mov rcx, rdx
cmove rcx, r15
cmp r8, rcx
jbe 0x1400ca8fb
mov rbx, qword [rax + 0x18]
imul r14, rcx, 0xa8
mov rcx, qword [rbx + r14 + 0x78]
test rcx, rcx
je 0x1400ca26d
mov rax, qword [rcx + 0x18]
cmp rax, r12
jne 0x1400ca250
add rbx, r14
cmp qword [rbx + 0xa0], 0
jne 0x1400ca22d
mov rax, qword [rsp + 0xa8]
cmp rax, 2
jae 0x1400ca44f
cmp rax, 2
setae sil
test rax, rax
jne 0x1400ca208
mov rcx, qword [rsp + 0x5f0]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x1400ca217
call fcn.1401363f0
int3
lea rcx, [rsp + 0xa8]
call fcn.1400cad50
jmp 0x1400ca1ee
mov eax, esi
add rsp, 0x5f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x1400ca260
mov al, byte [rax + 4]
test al, al
je 0x1400ca1cf
jmp 0x1400ca260
xor edx, edx
call qword [0x14021e390]
test al, al
je 0x1400ca1c2
mov rax, qword [rsi]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
cmp rdx, r8
mov r9d, 0
cmovne r9, rdx
cmp r8, r9
jbe 0x1400ca8fe
mov rcx, qword [rsp + 0xa8]
mov r8d, 8
test cl, 1
je 0x1400ca29e
mov r8, qword [rsp + 0xb8]
imul rdx, r9, 0xa8
add rdx, qword [rax + 0x18]
mov rax, rcx
shr rax, 1
cmp rax, r8
je 0x1400ca43d
mov r8, rdi
test cl, 1
je 0x1400ca2c8
mov r8, qword [rsp + 0xb0]
imul rax, rax, 0xa8
add rax, r8
je 0x1400ca8f9
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movups xmm2, xmmword [rdx + 0x40]
movups xmm3, xmmword [rdx + 0x50]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm1
movups xmmword [rax + 0x40], xmm2
movups xmmword [rax + 0x50], xmm3
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rax + 0x60], xmm0
mov rcx, qword [rdx + 0x6d]
mov qword [rax + 0x6d], rcx
mov rcx, qword [rdx + 0x78]
mov qword [rax + 0x78], rcx
mov qword [rdx + 0x78], 0
movzx ecx, byte [rdx + 0x82]
mov byte [rax + 0x82], cl
movzx ecx, word [rdx + 0x80]
mov word [rax + 0x80], cx
mov rcx, qword [rdx + 0x88]
mov qword [rax + 0x88], rcx
mov qword [rdx + 0x88], 0
mov rcx, qword [rdx + 0x90]
mov qword [rax + 0x90], rcx
mov rcx, qword [rdx + 0x98]
mov qword [rax + 0x98], rcx
mov qword [rdx + 0x98], 0
mov rcx, qword [rdx + 0xa0]
mov qword [rax + 0xa0], rcx
add qword [rsp + 0xa8], 2
mov rax, qword [rsi]
mov rdx, qword [rax]
mov r8, qword [rax + 0x20]
inc rdx
cmp rdx, r8
mov ecx, 0
cmovne rcx, rdx
mov qword [rax], rcx
cmp r8, rcx
jbe 0x1400ca901
mov r13, qword [rax + 0x18]
imul rbx, rcx, 0xa8
mov rcx, qword [r13 + rbx + 0x98]
test rcx, rcx
jne 0x1400ca420
add r13, rbx
mov rbx, qword [r13 + 0x88]
test rbx, rbx
jne 0x1400ca415
mov rcx, qword [r13 + 0x78]
test rcx, rcx
jne 0x1400ca42c
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
cmp rcx, qword [rax]
jne 0x1400ca406
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x1400ca71b
dec qword [rsi + 0x10]
jne 0x1400ca17c
jmp 0x1400ca1cf
lock dec dword [rbx + 8]
jne 0x1400ca3e4
jmp 0x1400ca75c
lock dec dword [rcx]
jne 0x1400ca3d5
call fcn.140133b2c
jmp 0x1400ca3d5
lock dec dword [rcx]
jne 0x1400ca3ed
mov rax, qword [rcx + 0x10]
call qword [0x14021e390]
jmp 0x1400ca3ed
lea rcx, [rsp + 0xa8]
call fcn.1400cb7c0
jmp 0x1400ca398
cmp qword [rsi + 0x10], 0
jne 0x1400ca6e9
movabs r13, 0xaaaaaaaaaaaaaaaa
movabs r12, 0x8637bd05af7
cmp dword [rsi + 0x70], 0
jne 0x1400ca642
mov rbp, qword [rsi + 0x30]
cmp qword [rsi + 8], 0
je 0x1400ca523
mov qword [rsp + 0x58], r13
mov rax, qword [0x14022e6d0]
lea rcx, [0x140124260]
cmp rax, rcx
jne 0x1400ca857
lea rdi, [rsp + 0x80]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r12
jge 0x1400cac27
imul rax, rax, 0xf4240
cqo
idiv qword [0x14023e460]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x1400ca523
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x18], rcx
test rax, rax
je 0x1400ca523
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400ca50d
cmp rcx, r8
jb 0x1400ca7fc
lea rdi, [rbp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400ca74e
mov rax, qword [rsi]
mov rcx, qword [rbp + 0x30]
mov qword [rsi], rcx
mov qword [rbp + 0x30], rax
mov rax, qword [rsi + 8]
mov rcx, qword [rbp + 0x38]
mov qword [rsi + 8], rcx
mov qword [rbp + 0x38], rax
mov rax, qword [rsi + 0x10]
mov rcx, qword [rbp + 0x40]
mov qword [rsi + 0x10], rcx
mov qword [rbp + 0x40], rax
mov rax, qword [rsi + 0x18]
mov rcx, qword [rbp + 0x48]
mov qword [rsi + 0x18], rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rsi + 0x20]
mov rcx, qword [rbp + 0x50]
mov qword [rsi + 0x20], rcx
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x1400ca8b5
cmp byte [rbp + 0x148], 1
je 0x1400ca904
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x1400ca887
mov rcx, qword [rbp + 0xa8]
cmp qword [rcx + 0x10], 0
sete byte [rbp + 0x58]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x1400ca89e
mov cl, byte [rbp + 0x118]
mov byte [rbp + 0x5b], cl
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x1400ca8c6
cmp qword [rbp + 0x98], 0
jne 0x1400ca86d
mov rax, qword [rbp]
mov rcx, qword [rbp + 0x18]
lea rdx, [0x140132c40]
cmp qword [rax + 0x10], rdx
mov ebx, dword [rcx + 8]
jne 0x1400ca825
test ebx, ebx
jne 0x1400ca8d7
cmp byte [rbp + 0x118], 1
jne 0x1400ca83a
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x1400ca8e8
mov al, byte [rbp + 0x138]
xor al, 1
mov byte [rbp + 0x59], al
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi + 8], 0
je 0x1400ca6e9
mov qword [rsp + 0x58], r13
mov rax, qword [0x14022e6d0]
lea rcx, [0x140124260]
cmp rax, rcx
jne 0x1400ca841
lea rdi, [rsp + 0x80]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r12
jge 0x1400cac00
imul rax, rax, 0xf4240
cqo
idiv qword [0x14023e460]
mov qword [rsp + 0x58], rax
cmp rax, qword [rsi + 0x20]
jl 0x1400ca6e9
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 5
mov edx, 4
cmovae rdx, rax
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x18], rcx
test rax, rax
je 0x1400ca6e9
lea rcx, [rdx + 0x10]
xor r8d, r8d
add r8, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400ca6d3
cmp rcx, r8
jb 0x1400ca7d3
cmp qword [rsi + 0x40], 0xffffffffffffffff
je 0x1400ca6fc
mov rcx, qword [rsi + 0x28]
mov rdx, rsi
call fcn.1400caeb0
mov rdi, qword [rsi + 0x30]
mov al, byte [0x14023e068]
test al, al
jne 0x1400caaeb
mov rax, qword [rsp + 0xa8]
jmp 0x1400ca1e1
mov qword [rax + 0x28], 0
mov rbx, qword [rsi]
mov qword [rsi], rcx
test rbx, rbx
je 0x1400ca406
mov rcx, rbx
call fcn.14010f820
mov rcx, rbx
call fcn.140133b2c
jmp 0x1400ca406
xor esi, esi
jmp 0x1400ca1ee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400ca538
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
lea rdx, [0x140189e50]
cmp qword [rcx + 0x10], rdx
jne 0x1400ca77c
lea rcx, [0x14019e130]
cmp rax, rcx
je 0x1400ca78f
mov rcx, rbx
mov edx, 1
call qword [0x14021e390]
jmp 0x1400ca3e4
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400ca79d
lock dec dword [rcx]
je 0x1400ca7cc
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x1400ca7ac
lock dec dword [r14]
je 0x1400ca7b9
mov rcx, rbx
call fcn.140133b2c
jmp 0x1400ca3e4
lea rcx, [r14 + 8]
call fcn.1400dbf70
mov rcx, r14
call fcn.140133b2c
jmp 0x1400ca7ac
call fcn.140133b2c
jmp 0x1400ca79d
mov rcx, rsi
call fcn.1400d3e20
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x1400ca6e9
mov rcx, rsi
call fcn.1400d3e20
mov eax, 0x4c4b40
add rax, qword [rsp + 0x58]
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [rsi + 0x20], rcx
jmp 0x1400ca523
test ebx, ebx
jne 0x1400cacc4
cmp byte [rbp + 0x118], 0
jne 0x1400ca61f
xor eax, eax
jmp 0x1400ca636
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x14021e390]
mov rax, qword [rdi]
jmp 0x1400ca6a2
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [0x14021e390]
mov rax, qword [rdi]
jmp 0x1400ca4dc
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x1400cac4e
mov al, byte [rbp + 0x118]
jmp 0x1400ca636
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x1400cac64
mov rax, qword [rbp + 0x18]
jmp 0x1400ca5b1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x1400cac67
mov rax, qword [rbp + 0x18]
jmp 0x1400ca5cc
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x1400ca595
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x1400ca5e0
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x1400ca612
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x1400ca62e
int3
ud2
int3
int3
int3
movaps xmm0, xmmword [0x1401fa990]
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm0
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.14019e250
mov rax, qword [rbx]
test rax, rax
je 0x1400ca98d
mov qword [rsp + 0x50], 0
mov r15, qword [rsp + 0x78]
cmp qword [rax + 0x20], r15
jbe 0x1400cac6a
mov r14, qword [rax + 0x18]
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x1400cacb3
mov al, byte [rbp + 0x148]
test al, al
je 0x1400cac5f
imul r15, r15, 0xa8
mov rcx, qword [r14 + r15 + 0x20]
cmp rcx, qword [rbp + 0x140]
jge 0x1400ca99b
lea rcx, [rsp + 0x70]
call fcn.14019d090
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x1400ca92f
jmp 0x1400caac0
mov qword [rsp + 0x50], 0
jmp 0x1400caac0
mov rcx, qword [rbp + 0x18]
mov ebx, dword [rcx + 8]
test ebx, ebx
jne 0x1400cacd5
add r14, r15
test al, 1
je 0x1400ca9b8
mov byte [rbp + 0x148], 0
lea rbx, [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
call fcn.1400d80b0
lea rcx, [rsp + 0x80]
mov rdx, rbx
call fcn.1400a1280
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x1400cacea
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rbp + 0x120], xmm0
mov eax, dword [rsp + 0x90]
mov dword [rbp + 0x130], eax
cmp byte [rbp + 0x138], 0
jne 0x1400caa13
mov byte [rbp + 0x138], 1
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x1400cacfb
mov rbx, qword [rbp + 0xa8]
mov r14d, dword [rax + 8]
test r14d, r14d
jne 0x1400cad12
cmp byte [rbp + 0x138], 0
je 0x1400ca8f9
lea r14, [rbp + 0x120]
mov eax, dword [r14 + 0x10]
lea rdx, [rsp + 0x80]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [r14]
movaps xmmword [rdx], xmm0
mov rcx, rbx
call fcn.14019eef0
mov rax, qword [rbp + 0x18]
mov ebx, dword [rax + 8]
test ebx, ebx
jne 0x1400cad24
mov rbx, qword [rbp + 0xa0]
mov r15d, dword [rax + 8]
test r15d, r15d
jne 0x1400cad3b
cmp byte [rbp + 0x138], 0
je 0x1400ca8f9
mov eax, dword [r14 + 0x10]
lea rdx, [rsp + 0x80]
mov dword [rdx + 0x10], eax
movups xmm0, xmmword [r14]
movaps xmmword [rdx], xmm0
mov rcx, rbx
call fcn.14019eef0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
movabs rax, 0xfffffffc00000000
and rax, qword [rsp + 0x50]
cmp rax, qword [0x14022e648]
jne 0x1400ca5a2
mov rcx, qword [rsp + 0x50]
call fcn.140003910
jmp 0x1400ca5a2
mov rcx, qword [rdi + 0x18]
call fcn.1401331b0
test al, al
je 0x1400ca70e
lea rsi, [rdi + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1400cab16
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x40]
mov ebp, dword [rax + 8]
test ebp, ebp
jne 0x1400cac7c
mov rcx, qword [rdi + 0xa8]
mov r14, qword [rcx + 0x10]
mov ebp, dword [rax + 8]
test ebp, ebp
jne 0x1400cac8f
mov rcx, qword [rdi + 0xa0]
mov r15, qword [rcx + 0x10]
mov ebp, dword [rax + 8]
test ebp, ebp
jne 0x1400caca2
mov r13, qword [rdi + 0xb8]
mov r12, qword [rdi + 0xc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x70], 0xe8
mov al, byte [0x14023e068]
test al, al
je 0x1400ca70e
movzx esi, al
add r14d, ebx
sub r12, r13
shr r12, 3
imul ebx, r12d, 0x3cf3cf3d
add ebx, r15d
add ebx, r14d
mov ecx, dword [rdi + 8]
call fcn.14019e220
lea r8, [rsp + 0x58]
mov qword [r8], rax
lea rax, [rsp + 0xa4]
mov dword [rax], ebx
lea rcx, [0x140200a84]
lea rdx, [rsp + 0x80]
mov qword [rdx], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
lea rax, [0x140200608]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0x43
lea rdx, [rsp + 0x70]
mov ecx, esi
xor r9d, r9d
call fcn.140041b90
jmp 0x1400ca70e
mov rcx, qword [0x14023e460]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400ca69d
mov rcx, qword [0x14023e460]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400ca4d7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x1400ca87c
int3
call fcn.14016ab00
int3
int3
int3
int3
int3
int3
int3
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x1400cac6d
mov rax, qword [rdi + 0x18]
jmp 0x1400cab29
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x1400cac70
mov rax, qword [rdi + 0x18]
jmp 0x1400cab3f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
je 0x1400cab55
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x1400ca951
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x1400ca82d
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x1400cac73
mov al, byte [rbp + 0x148]
jmp 0x1400ca9aa
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x1400ca9e7
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x1400cac76
mov rax, qword [rbp + 0x18]
jmp 0x1400caa22
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp r14d, eax
je 0x1400caa36
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x1400cac79
mov rax, qword [rbp + 0x18]
jmp 0x1400caa77
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp r15d, eax
je 0x1400caa8b
int3