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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
xor r15d, r15d
mov rsi, rcx
cmp qword [rcx + 0x118], r15
jne 0x14002265a
cmp byte [rcx + 0xd8], r15b
jne 0x14002265a
cmp byte [rcx + 0xd9], r15b
jne 0x14002265a
movzx ebx, byte [rcx + 0xe3]
mov r14b, 1
mov rdi, qword [rcx + 0x128]
lea rcx, [0x1400988c0]
mov byte [0x140098f68], bl
mov dword [0x1400988e8], r15d
mov dword [0x1400988ec], r15d
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x1400ce030], r14b
test rdi, rdi
je 0x140022639
test bl, bl
jne 0x140022b72
lea rdx, [0x140088db0]
mov rcx, rdi
call fcn.140014890
mov qword [0x1400988b8], rax
test rax, rax
je 0x140022b62
jmp 0x14002263d
test bl, bl
je 0x14002265d
mov edx, 4
mov dword [rbp + 0xb0], 0x2ad1ffe
lea rcx, [rbp + 0xb0]
call fcn.1400251b0
jmp 0x14002265d
xor r14b, r14b
cmp byte [0x140098b00], r15b
je 0x1400226c4
lea rax, str.DriverInitData
mov dword [rsp + 0x70], r15d
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
lea rcx, [rbp + 0xc0]
mov dword [rbp - 0x68], 0x32
movdqu xmmword [rbp - 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140022b7f
mov rax, qword [rbp + 0xc0]
xor edx, edx
sub rax, qword [0x140098f18]
imul rax, rax, 0xf4240
div qword [0x140098f10]
add rax, qword [0x140098f20]
mov qword [rbp - 0x70], rax
mov rcx, rsi
call fcn.14003af70
test al, al
jne 0x1400226ec
lea rcx, [rsp + 0x70]
call fcn.140001250
xor al, al
add rsp, 0x178
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14b, r14b
je 0x1400228c1
cmp byte [rsi + 0xe6], r15b
jne 0x140022724
mov rax, qword [rsi + 0xb8]
add rax, 0x98
movsxd rdx, dword [rax]
lea rcx, [rax + rdx]
mov eax, r15d
sub eax, edx
neg eax
sbb rax, rax
and rcx, rax
call fcn.140013d40
mov edi, dword [rsi + 0xf4]
mov rax, qword [rsi + 0xb8]
inc edi
cmp byte [0x140098b00], r15b
mov rbx, qword [0x140098f60]
mov r14d, dword [rax + 8]
je 0x1400227a3
lea rax, str.EmitBuildStart
mov dword [rbp - 0x60], r15d
xorps xmm0, xmm0
mov qword [rbp - 0x58], rax
lea rcx, [rbp + 0xc8]
mov dword [rbp - 0x38], 0x32
movdqu xmmword [rbp - 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140022b8c
mov rax, qword [rbp + 0xc8]
xor edx, edx
sub rax, qword [0x140098f18]
imul rax, rax, 0xf4240
div qword [0x140098f10]
add rax, qword [0x140098f20]
mov qword [rbp - 0x40], rax
cmp qword [0x1400988b8], r15
jne 0x1400227b9
cmp byte [0x140098f68], r15b
je 0x14002283b
lea rcx, [0x1400988c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x1400988ec]
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], edi
test rbx, rbx
jne 0x1400227e6
mov dword [rbp - 0x30], r15d
mov eax, r15d
mov ecx, r15d
jmp 0x1400227ff
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], r15b
jne 0x1400227f0
mov dword [rbp - 0x30], ecx
lea eax, [rdx + 0x18]
add edx, 0x1d
mov dword [rbp + 0x4c], 1
add edx, ecx
mov qword [rbp - 8], rbx
mov r9d, 1
mov dword [rbp + 0x48], edx
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rcx, [rbp - 0x30]
lea r8d, [r9 + 0xb]
call fcn.140025270
lea rcx, [0x1400988c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbp - 0x60]
call fcn.140001250
mov rax, qword [rsi + 0xb8]
add rax, 0x78
movsxd rcx, dword [rax]
lea rbx, [rax + rcx]
mov eax, r15d
sub eax, ecx
lea rcx, [rbp + 0x50]
neg eax
sbb rax, rax
and rbx, rax
mov rdx, rbx
call fcn.140028b60
movsd xmm0, qword [rax + 0x10]
mov eax, dword [rax]
movsd qword [rsp + 0x40], xmm0
test al, 1
je 0x1400228a8
mov rax, qword [rsi + 0xb8]
sub rax, 0xffffffffffffff80
movsxd rcx, dword [rax]
test ecx, ecx
lea rdx, [rax + rcx]
mov rcx, rbx
cmove rdx, r15
call fcn.140014780
test al, al
je 0x140022b99
mov rax, qword [rsi + 0xb8]
sub rax, 0xffffffffffffff80
movsxd rcx, dword [rax]
lea r9, [rax + rcx]
mov eax, r15d
sub eax, ecx
jmp 0x1400228d8
mov rax, qword [rsi + 0xb8]
add rax, 0x78
movsxd rdx, dword [rax]
lea r9, [rax + rdx]
mov eax, r15d
sub eax, edx
neg eax
lea r8, [rsi + 0xc8]
lea rdx, [rsi + 0x78]
sbb rax, rax
and r9, rax
mov rcx, r9
call fcn.140024130
mov rax, qword [rsi + 0xb8]
add rax, 0x8c
movsxd rcx, dword [rax]
lea rdx, [rax + rcx]
mov eax, r15d
sub eax, ecx
lea rcx, [rsi + 0x230]
neg eax
sbb rax, rax
and rdx, rax
call fcn.140020a00
mov rax, qword [rsi + 0xb8]
add rax, 0x84
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
movsxd rcx, dword [rax]
lea rdi, [rax + rcx]
mov eax, r15d
sub eax, ecx
lea rcx, [rsp + 0x30]
neg eax
sbb rax, rax
and rdi, rax
mov rdx, rdi
call fcn.14003bd00
mov rbx, qword [rsp + 0x30]
mov r8, rdi
mov ecx, 8
test rbx, rbx
je 0x140022a20
mov r14, qword [rsp + 0x38]
lea rdx, str._s:_successfully_mapped_at__p___d_bytes_
mov r9, rbx
mov dword [rsp + 0x20], r14d
call fcn.140013c50
cmp r14, 0x18
jae 0x1400229b8
mov r9d, r14d
mov dword [rsp + 0x20], 0x18
mov r8, rdi
lea rdx, str._s:_Bad_mmap_size__d___need_at_least__d_bytes
mov ecx, 2
call fcn.140013c50
jmp 0x140022a2c
mov r9d, dword [rbx]
cmp r9d, 0x6d072211
je 0x1400229e2
mov r8, rdi
mov dword [rsp + 0x20], 0x6d072211
lea rdx, str._s:_Bad_magic_number__08x___current_is__08x
mov ecx, 8
call fcn.140013c50
jmp 0x140022a2c
cmp dword [rbx + 0x14], 0x6d072211
je 0x1400229fc
mov r8, rdi
lea rdx, str.Did_not_find_expected_magic_number_marker_at_the_end_of__s._This_most_likely_means_data_writing_code_for_that_file_is_writing_too_much_or_too_little_data
mov ecx, 1
jmp 0x140022a27
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsi + 0xd0], rbx
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x98], xmm0
movups xmmword [rsi + 0xa8], xmm1
jmp 0x140022ada
lea rdx, str._s:_mmap_failed
call fcn.140013c50
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140022bbc
mov rax, qword [rsp + 0x60]
xor edx, edx
sub rax, qword [0x140098f18]
imul rax, rax, 0xf4240
div qword [0x140098f10]
mov rdi, rax
add rdi, qword [0x140098f20]
test rbx, rbx
je 0x140022a91
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x140022bc9
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140022b55
mov rax, qword [rsp + 0x68]
xor edx, edx
sub rax, qword [0x140098f18]
imul rax, rax, 0xf4240
div qword [0x140098f10]
sub rax, rdi
add rax, qword [0x140098f20]
lock inc dword [0x140098800]
lock xadd qword [0x140098808], rax
mov r14, qword [rsi + 0xd0]
mov qword [rsi + 0x178], r14
test r14, r14
je 0x140022b39
movsxd rdi, dword [r14 + 4]
mov rbx, qword [rsi + 0x188]
lea rcx, [rdi + 8]
call fcn.140057c1c
mov rdx, rdi
mov qword [rax], rdi
lock xadd qword [rbx], rdx
lea rbx, [rax + 8]
mov r8, rdi
mov rcx, rbx
xor edx, edx
call fcn.14004f130
mov qword [rsi + 0x1b0], rbx
lea rdx, str.Scan_cache_initialized_from_frozen_data____u_entries
mov r8d, dword [r14 + 4]
mov ecx, 8
call fcn.140013c50
lea rcx, [rsp + 0x70]
call fcn.140001250
mov al, 1
add rsp, 0x178
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
int3
mov rdx, rdi
lea rcx, str.failed_to_open_binlog_file_at__s
call fcn.140013b50
int3
lea rcx, str.If_you_pass___ipc__you_cannot_pass_a_binglog_path
call fcn.140013b50
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
int3
mov rcx, qword [rsi + 0xb8]
sub rcx, 0xffffffffffffff80
call fcn.1400032d0
mov r8, rax
lea rcx, str.Unable_to_rename_state_file__s____s
mov rdx, rbx
call fcn.140013b50
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013bd0
int3
lea rcx, str.UnMapViewOfFile___failed
call fcn.140013bd0
int3