Function at 0x140009e84
Capabilities:
Check for time delay via queryperformancecounter
Create thread

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14001e818]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rsi, r9
mov qword [rsp + 0x60], r9
mov dword [rsp + 0x50], r8d
mov qword [rbp - 0x40], rdx
mov r15, rcx
mov qword [rsp + 0x68], rcx
mov r13, qword [rbp + 0x80]
mov qword [rsp + 0x70], r13
call qword [sym.imp.USER32.dll_CreatePopupMenu]
nop dword [rax + rax]
mov r12, rax
neg rax
sbb edi, edi
not edi
mov ebx, 0x8007000e
and edi, ebx
test r12, r12
je 0x14000a41b
mov edx, 8
lea ecx, [rdx + 0x28]
call qword [sym.imp.COMCTL32.dll_DSA_Create]
nop dword [rax + rax]
mov rcx, rax
mov qword [r13], rax
neg rax
sbb edi, edi
not edi
and edi, ebx
xor r13d, r13d
test rcx, rcx
je 0x14000a40c
mov rcx, qword [r15 + 0x10]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
lea r9, [0x14001ac50]
lea r8, [0x140010d40]
xor edx, edx
mov rax, qword [rax + 0x18]
call qword [0x140010b20]
mov edi, eax
test eax, eax
js 0x14000a40c
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
mov dword [rbp - 0x48], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [rax + rax]
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x7c], ebx
xor r9d, r9d
xor r8d, r8d
lea ebx, [r13 + 1]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rbp - 0x68], rax
mov r14d, 0x80070000
test rax, rax
jne 0x140009feb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14000a06a
lea rcx, [rbp - 0x80]
call fcn.140003c68
mov ecx, eax
test eax, eax
js 0x14000a06a
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
lea r9, [rbp - 0x80]
lea r8, [0x140003b90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14000a053
mov edx, 0xea60
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov ecx, r13d
sub ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x80004005
jmp 0x14000a06a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070005
jne 0x14000a0a4
mov rax, qword [r15 + 0x20]
mov dword [rax + 0x7104], 2
lea r8, str.Please_run_this_app_elevated_if_you_want_it_to_detect_file_IO_caused_by_context_menu_handler
xor edx, edx
mov rcx, qword [r15 + 0x20]
call fcn.14000151c
lea r8, str.Please_run_this_app_elevated_if_you_want_it_to_detect_file_IO_caused_by_context_menu_handler
mov edx, ebx
mov rcx, qword [r15 + 0x20]
call fcn.14000151c
mov dword [rsp + 0x40], 0x7901
mov r14d, dword [rsi]
dec r14d
test r14d, r14d
js 0x14000a349
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp + 8], xmm0
mov r15d, ebx
mov esi, r13d
jmp 0x14000a32e
test r15d, r15d
je 0x14000a336
cmp r13d, dword [rsp + 0x50]
jae 0x14000a336
mov edx, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
nop dword [rax + rax]
test rax, rax
je 0x14000a326
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea r9, [0x14001acb8]
xor edx, edx
mov r8d, 0x401
mov rcx, rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop dword [rax + rax]
test eax, eax
js 0x14000a326
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop dword [rax + rax]
mov eax, r13d
mov rcx, qword [rbp - 0x40]
mov rbx, qword [rcx + rax*8]
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x14001ae18]
mov rax, qword [rax]
call qword [0x140010b20]
test eax, eax
js 0x14000a2a4
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov r9, rbx
mov r8, rdi
xor edx, edx
mov rax, qword [rax + 0x18]
call qword [0x140010b20]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x140010b20]
xor edi, edi
test ebx, ebx
js 0x14000a2a4
mov rcx, r12
call qword [sym.imp.USER32.dll_GetMenuItemCount]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x7aff
mov edi, dword [rsp + 0x40]
mov r9d, edi
mov r8d, esi
mov rdx, r12
call qword [0x140010b20]
movzx ecx, ax
xor edx, edx
test eax, eax
js 0x14000a2a1
test ecx, ecx
je 0x14000a2a1
lea eax, [rcx + rdi]
cmp eax, 0x7aff
jbe 0x14000a231
xor r8d, r8d
lea rdx, [rbp + 8]
mov rcx, qword [rsp + 0x68]
call fcn.140009c74
xor ecx, ecx
mov r15d, ecx
jmp 0x14000a2a4
mov dword [rsp + 0x40], eax
mov rax, qword [rbp + 8]
cmp rax, qword [0x14001afb8]
jne 0x14000a27f
mov rax, qword [rbp + 0x10]
cmp rax, qword [0x14001afc0]
jne 0x14000a27f
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r12
call qword [sym.imp.USER32.dll_GetMenuDefaultItem]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000a2a4
mov rcx, r12
call qword [sym.imp.USER32.dll_GetMenuItemCount]
nop dword [rax + rax]
sub eax, ebx
add esi, eax
jmp 0x14000a2a4
test esi, esi
jne 0x14000a2a1
xor r8d, r8d
lea ebx, [rsi + 1]
mov edx, ebx
mov rcx, r12
call qword [sym.imp.USER32.dll_GetMenuDefaultItem]
nop dword [rax + rax]
xor edx, edx
test eax, eax
cmove esi, ebx
mov r15d, edx
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x28], rax
movups xmm0, xmmword [rbp + 8]
movdqu xmmword [rbp - 0x20], xmm0
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop dword [rax + rax]
mov rax, qword [rbp - 0x38]
mov qword [rbp - 8], rax
xor eax, eax
mov dword [rbp - 0x10], eax
lea r8, [rbp - 0x28]
mov edx, 0x7fffffff
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.COMCTL32.dll_DSA_InsertItem]
nop dword [rax + rax]
mov edi, 0x8007000e
cmp eax, 0xffffffff
mov ecx, 0
cmovne edi, ecx
je 0x14000a314
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140010b20]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140010b20]
mov ebx, 1
add r13d, ebx
test edi, edi
jns 0x14000a0e0
sub r14d, ebx
xor r13d, r13d
test edi, edi
mov rsi, qword [rsp + 0x60]
jns 0x14000a0b2
lea rcx, [rbp - 0x80]
call fcn.140003eb4
mov r14, qword [rbp - 0x58]
mov rsi, qword [rbp - 0x60]
test rsi, rsi
je 0x14000a3da
mov ebx, r13d
mov r15, qword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
xor r8d, r8d
mov rcx, qword [r13]
test rcx, rcx
je 0x14000a37c
mov eax, dword [rcx]
jmp 0x14000a37f
mov eax, r8d
cmp ebx, eax
jge 0x14000a3da
mov edx, ebx
call qword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
nop dword [rax + rax]
xor r8d, r8d
mov edx, r8d
test r14, r14
je 0x14000a3d6
lea rcx, [rsi + 0x10]
lea r9d, [r8 + 1]
mov r8, qword [rcx]
cmp qword [rax + 0x20], r8
jge 0x14000a3b3
cmp qword [rax + 0x28], r8
jg 0x14000a3c1
add rdx, r9
add rcx, 0x70
cmp rdx, r14
jae 0x14000a3d3
jmp 0x14000a3a4
lea rdx, [rax + 8]
mov r8d, 2
mov rcx, r15
call fcn.140009c74
xor r8d, r8d
inc ebx
jmp 0x14000a36f
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140010b20]
nop
lea rcx, [rbp - 0x80]
call fcn.140003eb4
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14000a40c
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
mov rcx, r12
call qword [sym.imp.USER32.dll_DestroyMenu]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.14000ea30
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret