Function at 0x140083830
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, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov eax, dword [rdx + 8]
cmp eax, 0x401
jne 0x140083bc3
mov rax, qword [rbx]
cmp rax, qword [rsi + 0x20]
jne 0x140083bcc
movabs r13, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x140257270]
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov r14b, byte [0x140291bf0]
test r14b, 0x19
jne 0x140083df4
xor eax, eax
mov qword [rsp + 0x58], rax
mov r15, r13
mov r12, r13
mov rax, qword [rsi + 0x10]
mov rbx, qword [rax]
mov rax, qword [rbx]
mov rax, qword [rax + 0x20]
lea rcx, [0x140084570]
cmp rax, rcx
jne 0x140083e56
mov rax, qword [rbx + 0x118]
mov ecx, dword [rax]
inc ecx
mov edx, 1
cmovne edx, ecx
mov dword [rax], edx
mov rax, qword [rbx + 0xa8]
cmp qword [rbx + 0xa0], rax
je 0x14008392c
mov ecx, dword [rax - 4]
cmp ecx, 2
je 0x140083e8d
mov dword [rax - 4], 2
test ecx, ecx
jne 0x14008392c
test byte [0x140291180], 0x19
jne 0x140083a17
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x90]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_PeekMessageW]
mov ebp, eax
test rbx, rbx
je 0x1400839cd
mov rax, qword [rbx]
mov rax, qword [rax + 0x28]
lea rcx, [0x1400846e0]
cmp rax, rcx
jne 0x140083e83
cmp byte [rbx + 0x148], 0
je 0x140083984
lea rcx, [rbx + 0x150]
call fcn.140084870
mov byte [rbx + 0x148], 0
mov rax, qword [rbx + 0x118]
mov ecx, dword [rax]
inc ecx
mov edx, 1
cmovne edx, ecx
mov dword [rax], edx
mov rdi, qword [rbx + 0xa8]
cmp qword [rbx + 0xa0], rdi
je 0x1400839cd
cmp dword [rdi - 4], 2
jne 0x140083ea9
cmp dword [rdi - 4], 0
mov dword [rdi - 4], 1
jne 0x1400839cd
test byte [0x140291180], 0x19
jne 0x140083a7a
test r14b, 0x19
jne 0x140083e60
xor edi, edi
mov eax, 0
xchg byte [rsi + 8], al
test ebp, ebp
jne 0x140083d4e
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, edi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
mov qword [rsp + 0xc0], r13
mov rax, qword [0x1402910e8]
lea rcx, [0x14005a590]
cmp rax, rcx
jne 0x140083dd6
lea rdi, [rsp + 0x60]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140083ae1
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402979e0]
jmp 0x140083b03
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov qword [rsp + 0xc0], r13
mov rax, qword [0x1402910e8]
lea rcx, [0x14005a590]
cmp rax, rcx
jne 0x140083de5
lea rdi, [rsp + 0x60]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140083b52
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402979e0]
jmp 0x140083b74
mov rcx, qword [0x1402979e0]
cqo
idiv rcx
imul rdi, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rdi
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x140291180]
lea r8, str.ThreadController_active
mov cl, 0x42
xor r9d, r9d
call fcn.14006a790
jmp 0x14008392c
mov rcx, qword [0x1402979e0]
cqo
idiv rcx
imul rdi, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rdi
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x140291180]
lea r8, str.ThreadController_active
mov cl, 0x42
xor r9d, r9d
call fcn.14006a790
jmp 0x1400839cd
cmp eax, 0x12
je 0x140084298
mov rax, qword [rsi + 0x10]
mov r14, qword [rax]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x20]
mov rcx, qword [0x14029b0b8]
test rcx, rcx
je 0x140083da4
test byte [rcx], 0x19
je 0x140083c01
lea rdx, [rsp + 0x90]
mov qword [rdx], rbx
call fcn.14010c340
lea r12, [rsi + 0x60]
lea rdi, [rsp + 0xa0]
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], r15
movaps xmm6, xmmword [0x140257270]
movaps xmmword [rdi], xmm6
movaps xmmword [rdi - 0x10], xmm6
mov rax, qword [rsi + 0x60]
cmp rax, qword [rsi + 0x68]
je 0x140083ec3
lea rcx, [rsp + 0x90]
mov rdx, r12
call fcn.14010c2a0
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], r15
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
mov rcx, rbp
call fcn.140084540
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], 0
mov rax, qword [rsp + 0xa0]
mov r13, r15
test rax, rax
je 0x140083ca3
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 3
mov rdx, qword [rsp + 0xb0]
cmp rcx, rdx
cmovae rcx, rdx
cmp qword [rsp + 0xa8], rcx
jne 0x140083cb6
mov r15, qword [rsp + 0x70]
test r15, r15
je 0x140083f65
jmp 0x140083ee3
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa8]
cmp rax, r15
je 0x140083f0a
mov rax, qword [rax]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov rax, qword [rsp + 0xa0]
test rax, rax
mov r15, r13
je 0x140083c77
mov r8, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
lea rcx, [r8 + 1]
mov qword [rsp + 0xa8], rcx
mov rbp, qword [rax]
mov rdx, qword [rax + 8]
sub rdx, rbp
sar rdx, 3
cmp rdx, rdi
cmovae rdx, rdi
cmp rcx, rdx
jae 0x140083c77
cmp qword [rbp + r8*8 + 8], 0
jne 0x140083c77
add r8, 2
mov qword [rsp + 0xa8], r8
cmp rdx, r8
jne 0x140084464
mov r15, r13
jmp 0x140083c77
mov eax, dword [rsp + 0x98]
cmp eax, 0x113
je 0x140083dbf
cmp eax, 0x12
je 0x140084452
mov cl, 1
xor eax, eax
lock cmpxchg byte [rsi + 8], cl
jne 0x140083d8d
mov rcx, qword [rsi + 0x20]
mov edx, 0x401
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x1400843a6
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.140083830
mov edi, eax
jmp 0x1400839e9
lea rcx, str.base_toplevel
call fcn.1400735f0
mov rcx, rax
mov qword [0x14029b0b8], rax
jmp 0x140083bec
cmp qword [rsp + 0xa0], rsi
jne 0x140083d65
mov rcx, rsi
call fcn.1401af490
jmp 0x14008439e
lea rcx, [rsp + 0xc0]
call rax
jmp 0x140083b0b
lea rcx, [rsp + 0xc0]
call rax
jmp 0x140083b7c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
lea rbx, [rsp + 0x60]
mov qword [rbx], r13
mov rcx, rbx
call fcn.14007b660
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x140291bf0]
lea r15, str.MessagePumpForUI::ProcessPumpReplacementMessage_PeekMessage
mov cl, 0x58
mov qword [rsp + 0x58], rdx
mov r8, r15
xor r9d, r9d
call fcn.14006a790
mov r12, rax
jmp 0x1400838c5
mov rcx, rbx
call rax
jmp 0x14008392c
mov rax, qword [rsp + 0x58]
cmp byte [rax], 0
je 0x1400839d7
mov rcx, qword [rsp + 0x58]
mov rdx, r15
mov r8, r12
call fcn.140079550
jmp 0x1400839d7
mov rcx, rbx
call rax
jmp 0x1400839cd
lea rcx, [rbx + 0xa0]
lea rdx, [rsp + 0x60]
mov dword [rdx], 2
call fcn.1401af9a0
jmp 0x14008392c
add rdi, 0xfffffffffffffffc
mov rcx, rdi
xor edx, edx
call fcn.14011db80
mov qword [rbx + 0xa8], rdi
jmp 0x1400839b3
lea rcx, [rsp + 0x90]
call fcn.140084540
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
jmp 0x140083c47
mov rcx, qword [r15 + 8]
sub rcx, qword [r15]
sar rcx, 3
mov rdx, qword [rsp + 0x80]
cmp rcx, rdx
cmovae rcx, rdx
cmp qword [rsp + 0x78], rcx
jne 0x140083cbb
jmp 0x140083f1d
cmp rcx, qword [rsp + 0x78]
jne 0x140083ccc
mov r15, rax
test rax, rax
je 0x140083f65
mov rax, qword [r15 + 0x20]
cmp rax, qword [r15 + 0x18]
jne 0x140083f53
mov rbp, qword [r15]
mov rdx, qword [r15 + 8]
cmp rbp, rdx
je 0x140083f4b
lea rax, [rdx - 8]
cmp qword [rbp], 0
je 0x14008447b
add rbp, 8
cmp rdx, rbp
jne 0x140083f37
cmp qword [rsp + 0x70], 0
je 0x140083f65
lea rcx, [rsp + 0x60]
mov qword [rcx + 0x10], 0
call fcn.140084550
mov r15, qword [rsp + 0xa0]
test r15, r15
je 0x140083fc0
mov rax, qword [r15 + 0x20]
cmp rax, qword [r15 + 0x18]
jne 0x140083fab
mov rbp, qword [r15]
mov rdx, qword [r15 + 8]
cmp rbp, rdx
je 0x140083fa0
lea rax, [rdx - 8]
cmp qword [rbp], 0
je 0x1400842b1
add rbp, 8
cmp rdx, rbp
jne 0x140083f8c
cmp qword [rsp + 0xa0], 0
je 0x140083fc0
lea rcx, [rsp + 0x90]
mov qword [rcx + 0x10], 0
call fcn.140084550
mov rcx, rbx
call qword [sym.imp.USER32.dll_TranslateMessage]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov r15, r13
mov qword [rsp + 0xb0], r13
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [rsi + 0x60]
cmp rax, qword [rsi + 0x68]
je 0x14008410c
lea rcx, [rsp + 0x90]
mov rdx, r12
call fcn.14010c2a0
lea rsi, [rsp + 0x60]
mov qword [rsi + 0x20], r15
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
mov rcx, rsi
call fcn.140084540
xorps xmm0, xmm0
movaps xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], 0
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x140084063
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 3
mov rdx, qword [rsp + 0xb0]
cmp rcx, rdx
cmovae rcx, rdx
cmp qword [rsp + 0xa8], rcx
jne 0x140084076
mov rbp, qword [rsp + 0x70]
test rbp, rbp
je 0x1400841ba
jmp 0x140084134
mov rbp, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa8]
cmp rax, rbp
je 0x14008415c
mov rax, qword [rax]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x14008403a
mov rcx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
lea rsi, [rcx + 1]
mov qword [rsp + 0xa8], rsi
mov rbp, qword [rax]
mov rdx, qword [rax + 8]
sub rdx, rbp
sar rdx, 3
cmp rdx, rdi
cmovae rdx, rdi
cmp rsi, rdx
jae 0x14008403a
cmp qword [rbp + rcx*8 + 8], 0
jne 0x14008403a
add rcx, 2
mov qword [rsp + 0xa8], rcx
cmp rdx, rcx
jne 0x1400844cc
mov r15, r13
jmp 0x14008403a
lea rcx, [rsp + 0x90]
call fcn.140084540
xorps xmm0, xmm0
lea rax, [rsp + 0xa0]
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
jmp 0x14008400b
mov rcx, qword [rbp + 8]
sub rcx, qword [rbp]
sar rcx, 3
mov rdx, qword [rsp + 0x80]
cmp rcx, rdx
cmovae rcx, rdx
cmp qword [rsp + 0x78], rcx
jne 0x14008407b
jmp 0x14008416f
cmp rcx, qword [rsp + 0x78]
jne 0x14008408c
mov rbp, rax
test rax, rax
je 0x1400841ba
mov rax, qword [rbp + 0x20]
cmp rax, qword [rbp + 0x18]
jne 0x1400841a8
mov rsi, qword [rbp]
mov rdx, qword [rbp + 8]
cmp rsi, rdx
je 0x14008419d
lea rax, [rdx - 8]
cmp qword [rsi], 0
je 0x1400844e4
add rsi, 8
cmp rdx, rsi
jne 0x14008418a
cmp qword [rsp + 0x70], 0
mov r15, r13
je 0x1400841ba
lea rcx, [rsp + 0x60]
mov qword [rcx + 0x10], 0
call fcn.140084550
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x140084214
mov rax, qword [rbx + 0x20]
cmp rax, qword [rbx + 0x18]
jne 0x1400841ff
mov rsi, qword [rbx]
mov rdx, qword [rbx + 8]
cmp rsi, rdx
je 0x1400841f4
lea rax, [rdx - 8]
cmp qword [rsi], 0
je 0x140084302
add rsi, 8
cmp rdx, rsi
jne 0x1400841e1
cmp qword [rsp + 0xa0], 0
je 0x140084214
lea rcx, [rsp + 0x90]
mov qword [rcx + 0x10], 0
call fcn.140084550
mov r8, qword [0x14029b0c0]
test r8, r8
je 0x140084280
test byte [r8], 0x19
je 0x140084266
lea rsi, [rsp + 0x90]
mov qword [rsi + 0x10], r15
movaps xmmword [rsi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r9, [0x140257ad2]
mov rcx, rsi
mov dl, 0x45
call fcn.140086650
cmp qword [rsi], 0
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140084266
mov rax, qword [rcx]
call qword [rax + 8]
mov dil, 1
test r14, r14
je 0x1400839e9
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
jmp 0x1400839e9
lea rcx, str.base_toplevel
call fcn.1400735f0
mov r8, rax
mov qword [0x14029b0c0], rax
jmp 0x140084220
cmp byte [rsi + 0x38], 0
je 0x140084358
mov rax, qword [rsi + 0x10]
mov byte [rax + 8], 1
xor edi, edi
jmp 0x1400839e9
cmp rax, rbp
je 0x1400842d3
lea rax, [rbp + 8]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400842ca
mov qword [rbp], rcx
add rbp, 8
add rax, 8
cmp rdx, rax
jne 0x1400842ba
cmp rbp, rdx
je 0x140083fa0
mov rdi, qword [r15 + 8]
sub rdx, rbp
add rdx, rbp
sub rdi, rdx
je 0x1400842f6
mov rcx, rbp
mov r8, rdi
call fcn.1400cf0a0
add rbp, rdi
mov qword [r15 + 8], rbp
jmp 0x140083fa0
cmp rax, rsi
je 0x140084323
lea rax, [rsi + 8]
mov rcx, qword [rax]
test rcx, rcx
je 0x14008431a
mov qword [rsi], rcx
add rsi, 8
add rax, 8
cmp rdx, rax
jne 0x14008430b
cmp rsi, rdx
mov r15, r13
je 0x1400841f4
mov rdi, qword [rbx + 8]
sub rdx, rsi
add rdx, rsi
sub rdi, rdx
je 0x140084349
mov rcx, rsi
mov r8, rdi
call fcn.1400cf0a0
add rsi, rdi
mov qword [rbx + 8], rsi
mov r15, r13
jmp 0x1400841f4
mov rcx, qword [0x14029b0e8]
test rcx, rcx
jne 0x140084393
mov dword [rsp + 0x20], 1
lea rcx, str.Chrome.MessageLoopProblem
mov edx, 1
mov r8d, 4
mov r9d, 5
call fcn.14007e9f0
mov rcx, rax
mov qword [0x14029b0e8], rax
mov rax, qword [rcx]
mov edx, 3
call qword [rax + 0x28]
mov dil, 1
jmp 0x1400839e9
xor eax, eax
xchg byte [rsi + 8], al
mov rcx, qword [0x14029b0d8]
test rcx, rcx
jne 0x1400843e6
mov dword [rsp + 0x20], 1
lea rcx, str.Chrome.MessageLoopProblem
mov edx, 1
mov r8d, 4
mov r9d, 5
call fcn.14007e9f0
mov rcx, rax
mov qword [0x14029b0d8], rax
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x28]
test byte [0x140291180], 0x19
je 0x140083d8d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
lea rbx, [rsp + 0x60]
mov qword [rbx], r13
mov rcx, rbx
call fcn.14007b660
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 8
mov qword [rsp + 0x40], 0
lea rdx, [0x140291180]
lea r8, str.Chrome.MessageLoopProblem.MESSAGE_POST_ERROR
mov cl, 0x49
xor r9d, r9d
call fcn.14006a790
jmp 0x140083d8d
mov ecx, dword [rsp + 0xa0]
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x14008439e
mov rcx, qword [rax]
cmp qword [rcx + r8*8], 0
lea r8, [r8 + 1]
je 0x140083d35
jmp 0x140083d46
cmp rax, rbp
je 0x14008449d
lea rax, [rbp + 8]
mov rcx, qword [rax]
test rcx, rcx
je 0x140084494
mov qword [rbp], rcx
add rbp, 8
add rax, 8
cmp rdx, rax
jne 0x140084484
cmp rbp, rdx
je 0x140083f4b
mov rdi, qword [r15 + 8]
sub rdx, rbp
add rdx, rbp
sub rdi, rdx
je 0x1400844c0
mov rcx, rbp
mov r8, rdi
call fcn.1400cf0a0
add rbp, rdi
mov qword [r15 + 8], rbp
jmp 0x140083f4b
mov rbp, qword [rax]
cmp qword [rbp + rcx*8], 0
lea rcx, [rcx + 1]
je 0x1400840f3
jmp 0x140084104
cmp rax, rsi
je 0x140084505
lea rax, [rsi + 8]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400844fc
mov qword [rsi], rcx
add rsi, 8
add rax, 8
cmp rdx, rax
jne 0x1400844ed
cmp rsi, rdx
je 0x14008419d
mov rdi, qword [rbp + 8]
sub rdx, rsi
add rdx, rsi
sub rdi, rdx
je 0x140084528
mov rcx, rsi
mov r8, rdi
call fcn.1400cf0a0
add rsi, rdi
mov qword [rbp + 8], rsi
jmp 0x14008419d