Function at 0x1400a4bd0
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, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140231040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs r14, 0x7fffffffffffffff
mov dword [rsp + 0x74], 4
mov rbx, qword [rdx]
movabs rcx, 0xaaaaaaaaaaaaaaaa
movabs r12, 0x20c49ba5e353f7cf
cmp rbx, r14
je 0x1400a4cb0
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x80], rcx
test rax, rax
je 0x1400a5227
xor ecx, ecx
cmp rbx, rax
setns cl
add rcx, r14
sub rbx, rax
cmovo rbx, rcx
lea rax, [r14 + rbx]
add rax, 2
cmp rax, 2
jb 0x1400a4c8f
mov rax, rbx
imul r12
mov rax, rdx
shr rax, 0x3f
sar rdx, 7
add rdx, rax
imul rax, rdx, 0x3e8
xor ecx, ecx
cmp rbx, rax
setg cl
add rcx, rdx
mov rbx, rcx
xor eax, eax
test rbx, rbx
setns al
neg eax
mov rcx, rbx
shr rcx, 0x20
cmovne ebx, eax
mov dword [rsp + 0x70], ebx
test ebx, ebx
jne 0x1400a4cb8
jmp 0x1400a50d6
mov dword [rsp + 0x70], 0xffffffff
mov eax, dword [0x1402403d8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r15, [rax + 0x160]
lea rcx, [0x140122590]
movaps xmm6, xmmword [0x1401fd000]
xor ebx, ebx
lea r13, [rsp + 0x70]
lea rbp, [rsp + 0x74]
mov rax, qword [rdi + 0x10]
mov r12, qword [rax]
mov rax, qword [r12]
mov rax, qword [rax + 0x18]
cmp rax, rcx
jne 0x1400a52c2
cmp byte [r12 + 0xd0], 0
jne 0x1400a52bf
cmp byte [r12 + 0x138], 0
jne 0x1400a52de
mov rax, qword [r12 + 0xf0]
mov ecx, dword [rax]
lea edx, [rcx + 1]
cmp edx, 1
adc ecx, 1
mov dword [rax], ecx
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [r12 - 0xd8]
mov byte [rsp + 0x30], bl
mov byte [rsp + 0x38], bl
mov qword [rsp + 0x40], rax
add r12, 0xffffffffffffff30
mov rcx, r12
lea rdx, [rsp + 0x30]
call fcn.1400a6120
mov rcx, r13
call fcn.1400ab2c0
mov rcx, rbp
call fcn.1400ab2c0
mov dword [rsp + 0x6c], 0xaaaaaaaa
mov eax, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
xor ecx, ecx
xor edx, edx
mov r9d, 0x1cff
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov ebp, eax
mov dword [rsp + 0x6c], eax
test eax, eax
jne 0x1400a5102
mov rax, qword [rdi + 0x10]
mov r12, qword [rax]
mov rax, qword [r12]
mov rax, qword [rax + 0x30]
lea rcx, [0x1400aad20]
cmp rax, rcx
jne 0x1400a52d0
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [r12 - 0xd8]
mov byte [rsp + 0x30], bl
mov byte [rsp + 0x38], bl
mov qword [rsp + 0x40], rax
cmp byte [r12 + 0x138], bl
je 0x1400a4e70
cmp byte [r12 + 0x120], 0
je 0x1400a4e70
mov r14, qword [r15]
test r14, r14
je 0x1400a4e70
mov rax, qword [r14 + 0x10]
test rax, rax
js 0x1400a531b
cmp dword [r14 + 0x24], 1
jne 0x1400a5413
cmp qword [r14 + 0x18], 0
jne 0x1400a54ad
movabs rax, 0xbfffffffffffffff
lock and qword [r14 + 0x10], rax
mov r13, qword [r12 + 0x128]
cmp qword [r14 + 0x18], 0
jne 0x1400a551f
mov rax, qword [r14 + 0x10]
movabs rcx, 0x4000000000000000
and rax, rcx
movabs rcx, 0xffffffffffffff
and r13, rcx
or r13, rax
mov qword [r14 + 0x10], r13
dec dword [r14 + 0x24]
mov qword [r12 + 0x128], 0
mov byte [r12 + 0x130], bl
mov byte [r12 + 0x120], bl
mov byte [r12 + 0x138], 1
mov rax, qword [r12 + 0xf0]
mov ecx, dword [rax]
lea edx, [rcx + 1]
cmp edx, 1
adc ecx, 1
mov dword [rax], ecx
lea rcx, [r12 - 0xd0]
lea rdx, [rsp + 0x30]
call fcn.1400a4220
mov rcx, qword [r12 + 0x70]
mov eax, dword [rcx + 0x60]
add rcx, 0x60
nop dword [rax + rax]
mov edx, eax
and edx, 0xfffffffd
lock cmpxchg dword [rcx], edx
jne 0x1400a4ed0
test al, 4
jne 0x1400a5280
mov rax, qword [r12]
mov rax, qword [rax + 0x28]
lea rcx, [0x1400a8b50]
cmp rax, rcx
jne 0x1400a52f9
mov rax, qword [r12 - 0x10]
sub rax, qword [r12 - 0x18]
shr rax, 3
imul r13d, eax, 0xc4ec4ec5
mov qword [rsp + 0x80], 0xaa
mov al, byte [0x14024362a]
test al, al
jne 0x1400a53bf
mov ecx, 0x40
call qword [sym.imp.USER32.dll_GetQueueStatus]
mov r14d, eax
mov qword [rsp + 0x80], 0xaa
mov al, byte [0x14024362a]
test al, al
jne 0x1400a5371
bt r14d, 0x16
jb 0x1400a4fbd
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x78], 0xaa
mov al, byte [0x14024362a]
test al, al
jne 0x1400a53e9
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_PeekMessageW]
mov r14d, eax
mov qword [rsp + 0x78], 0xaa
mov al, byte [0x14024362a]
test al, al
jne 0x1400a5398
test r14d, r14d
je 0x1400a533d
test r12, r12
je 0x1400a50d6
mov rax, qword [r12]
mov rax, qword [rax + 0x38]
lea rcx, [0x1400aab30]
cmp rax, rcx
jne 0x1400a530a
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [r12 - 0xd8]
xor ecx, ecx
mov byte [rsp + 0x30], cl
mov byte [rsp + 0x38], cl
mov qword [rsp + 0x40], rax
cmp byte [r12 + 0x138], cl
je 0x1400a5083
cmp byte [r12 + 0x120], 0
je 0x1400a5083
mov rsi, qword [r15]
test rsi, rsi
je 0x1400a5083
mov rax, qword [rsi + 0x10]
test rax, rax
js 0x1400a532c
cmp dword [rsi + 0x24], 1
jne 0x1400a5460
cmp qword [rsi + 0x18], 0
jne 0x1400a54d3
movabs rax, 0xbfffffffffffffff
lock and qword [rsi + 0x10], rax
mov rdi, qword [r12 + 0x128]
cmp qword [rsi + 0x18], 0
jne 0x1400a54f9
mov rax, qword [rsi + 0x10]
movabs rcx, 0x4000000000000000
and rax, rcx
movabs rcx, 0xffffffffffffff
and rdi, rcx
or rdi, rax
mov qword [rsi + 0x10], rdi
dec dword [rsi + 0x24]
mov qword [r12 + 0x128], 0
xor eax, eax
mov byte [r12 + 0x130], al
mov byte [r12 + 0x120], al
mov byte [r12 + 0x138], 1
mov rax, qword [r12 + 0xf0]
mov ecx, dword [rax]
lea edx, [rcx + 1]
cmp edx, 1
adc ecx, 1
mov dword [rax], ecx
add r12, 0xffffffffffffff30
lea rdx, [rsp + 0x30]
mov rcx, r12
mov r8d, r13d
call fcn.1400a39b0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14012d2c0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x78], 0xa
mov al, byte [0x14024358a]
test al, al
jne 0x1400a554c
mov r12, qword [rsi]
cmp r12, r14
je 0x1400a5201
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
mov rax, qword [fcn.140116a00]
lea rcx, [0x140116ab0]
cmp rax, rcx
jne 0x1400a528a
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1400a557d
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e8]
xor ecx, ecx
cmp r12, rax
setns cl
add rcx, r14
sub r12, rax
cmovo r12, rcx
lea rax, [r14 + r12]
add rax, 2
cmp rax, 2
jb 0x1400a51dd
mov rax, r12
movabs rcx, 0x20c49ba5e353f7cf
imul rcx
mov rax, rdx
shr rax, 0x3f
sar rdx, 7
add rdx, rax
imul rax, rdx, 0x3e8
xor ecx, ecx
cmp r12, rax
setg cl
add rcx, rdx
mov r12, rcx
xor eax, eax
test r12, r12
setns al
neg eax
mov rcx, r12
shr rcx, 0x20
cmovne r12d, eax
mov dword [rsp + 0x70], r12d
test r12d, r12d
jne 0x1400a5209
jmp 0x1400a50d6
mov dword [rsp + 0x70], 0xffffffff
test ebp, ebp
lea rcx, [0x140122590]
lea r13, [rsp + 0x70]
lea rbp, [rsp + 0x74]
je 0x1400a4cec
jmp 0x1400a4d65
mov r15, r14
mov rax, qword [fcn.140116a00]
lea rcx, [0x140116ab0]
cmp rax, rcx
jne 0x1400a52a9
lea r14, [rsp + 0x30]
mov qword [r14], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r14]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1400a55a4
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e8]
mov r14, r15
jmp 0x1400a4c46
call fcn.140001960
jmp 0x1400a4ee3
mov r13, r14
lea r14, [rsp + 0x80]
mov rcx, r14
call qword [0x1402233e0]
mov rax, qword [r14]
mov r14, r13
jmp 0x1400a518a
lea r14, [rsp + 0x80]
mov rcx, r14
call qword [0x1402233e0]
mov rax, qword [r14]
jmp 0x1400a5278
int3
mov rcx, r12
call qword [0x1402233e0]
jmp 0x1400a4d65
mov rcx, r12
call qword [0x1402233e0]
jmp 0x1400a4ee3
lea rcx, [r12 + 0x120]
call fcn.14010e140
mov byte [r12 + 0x138], 0
jmp 0x1400a4d22
mov rcx, r12
call qword [0x1402233e0]
mov r13d, eax
jmp 0x1400a4f10
mov rcx, r12
mov edx, r13d
call qword [0x1402233e0]
jmp 0x1400a50d6
mov rcx, qword [0x140243b48]
call fcn.14018e6f0
jmp 0x1400a4e0f
mov rcx, qword [0x140243b48]
call fcn.14018e6f0
jmp 0x1400a5024
mov dword [rsp + 0x74], 0
test r12, r12
movabs r14, 0x7fffffffffffffff
je 0x1400a5119
mov rax, qword [r12]
mov rax, qword [rax + 0x38]
mov rcx, r12
mov edx, r13d
call qword [0x1402233e0]
jmp 0x1400a5119
movzx ecx, al
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea rdx, [rsp + 0x80]
mov r9d, 2
call fcn.14009d110
jmp 0x1400a4f52
movzx ecx, al
lea r8, [rsp + 0x80]
mov qword [r8], 0
lea rdx, [rsp + 0x78]
mov r9d, 2
call fcn.14009d110
jmp 0x1400a4fb4
movzx ecx, al
lea rax, str.MessagePumpForUI::WaitForWork_GetQueueStatus
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rdx, [rsp + 0x80]
mov r9d, 1
call fcn.1400b6b10
jmp 0x1400a4f2a
movzx ecx, al
lea rax, str.MessagePumpForUI::WaitForWork_PeekMessage
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x78]
mov r9d, 1
call fcn.1400b6b10
jmp 0x1400a4f7f
cmp byte [r12 + 0x130], 0
je 0x1400a4e34
cmp qword [r14 + 0x18], 0
jne 0x1400a543d
movabs rax, 0x4000000000000000
lock or qword [r14 + 0x10], rax
jmp 0x1400a4e34
lea rcx, [r14 + 0x18]
mov r13, qword [r14 + 0x10]
call fcn.14018e740
movabs rcx, 0xff00000000000000
and rcx, r13
or rcx, rax
mov qword [r14 + 0x10], rcx
jmp 0x1400a5429
cmp byte [r12 + 0x130], 0
je 0x1400a5048
cmp qword [rsi + 0x18], 0
jne 0x1400a548a
movabs rax, 0x4000000000000000
lock or qword [rsi + 0x10], rax
jmp 0x1400a5048
lea rcx, [rsi + 0x18]
mov rdi, qword [rsi + 0x10]
call fcn.14018e740
movabs rcx, 0xff00000000000000
and rcx, rdi
or rcx, rax
mov qword [rsi + 0x10], rcx
jmp 0x1400a5476
lea rcx, [r14 + 0x18]
mov r13, qword [r14 + 0x10]
call fcn.14018e740
movabs rcx, 0xff00000000000000
and rcx, r13
or rcx, rax
mov qword [r14 + 0x10], rcx
jmp 0x1400a4e25
lea rcx, [rsi + 0x18]
mov rdi, qword [rsi + 0x10]
call fcn.14018e740
movabs rcx, 0xff00000000000000
and rcx, rdi
or rcx, rax
mov qword [rsi + 0x10], rcx
jmp 0x1400a5039
lea rcx, [rsi + 0x18]
mov rbx, qword [rsi + 0x10]
call fcn.14018e740
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rsi + 0x10], rcx
jmp 0x1400a505b
lea rcx, [r14 + 0x18]
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x28], rax
call fcn.14018e740
movabs rcx, 0xff00000000000000
and rcx, qword [rsp + 0x28]
or rcx, rax
mov qword [r14 + 0x10], rcx
jmp 0x1400a4e47
movzx ecx, al
lea rax, [rsp + 0x6c]
lea r9, [rsp + 0x30]
mov qword [r9], rax
lea rax, str.MessagePumpForUI::WaitForWork_Spurious_Wakeup
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x78]
call fcn.140183ee0
jmp 0x1400a5119
mov rcx, qword [0x1402439e8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400a518a
mov rcx, qword [0x1402439e8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400a5278