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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
xor r15d, r15d
mov rsi, rcx
cmp qword [rcx + 0x118], r15
jne 0x1400213b4
cmp byte [rcx + 0xd8], r15b
jne 0x1400213b4
cmp byte [rcx + 0xd9], r15b
jne 0x1400213b4
movzx ebx, byte [rcx + 0xe3]
mov r14b, 1
mov rdi, qword [rcx + 0x128]
lea rcx, [0x140099930]
mov byte [0x140099fd8], bl
mov dword [0x140099958], r15d
mov dword [0x14009995c], r15d
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x1400cf0a0], r14b
test rdi, rdi
je 0x140021399
test bl, bl
jne 0x1400217a9
lea rdx, [0x140089170]
mov rcx, rdi
call fcn.1400147d0
mov qword [0x140099928], rax
test rax, rax
je 0x140021799
jmp 0x14002139d
test bl, bl
je 0x1400213b7
mov edx, 4
mov dword [rbp + 0x67], 0x2ad1ffe
lea rcx, [rbp + 0x67]
call fcn.140023c60
jmp 0x1400213b7
xor r14b, r14b
cmp byte [0x140099b70], r15b
je 0x140021416
lea rax, str.DriverInitData
mov dword [rbp - 0x11], r15d
xorps xmm0, xmm0
mov qword [rbp - 9], rax
lea rcx, [rbp + 0x6f]
mov dword [rbp + 0x17], 0x32
movdqu xmmword [rbp - 1], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400217b6
mov rax, qword [rbp + 0x6f]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
div qword [0x140099f80]
add rax, qword [0x140099f90]
mov qword [rbp + 0xf], rax
mov rcx, rsi
call fcn.14003a390
test al, al
jne 0x14002143d
lea rcx, [rbp - 0x11]
call fcn.140001250
xor al, al
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14b, r14b
je 0x140021508
cmp byte [rsi + 0xe6], r15b
jne 0x140021475
mov rdx, qword [rsi + 0xb8]
mov eax, r15d
add rdx, 0x98
sub eax, dword [rdx]
movsxd rcx, dword [rdx]
add rcx, rdx
neg eax
sbb rax, rax
and rcx, rax
call fcn.140013bd0
mov rax, qword [rsi + 0xb8]
mov r8d, dword [rsi + 0xf4]
inc r8d
mov edx, dword [rax + 8]
call fcn.140024060
mov rcx, qword [rsi + 0xb8]
mov eax, r15d
add rcx, 0x78
sub eax, dword [rcx]
movsxd rbx, dword [rcx]
add rbx, rcx
lea rcx, [rbp - 0x49]
neg eax
sbb rax, rax
and rbx, rax
mov rdx, rbx
call fcn.140027500
movsd xmm0, qword [rax + 0x10]
mov eax, dword [rax]
movsd qword [rbp - 0x21], xmm0
test al, 1
je 0x1400214f0
mov rax, qword [rsi + 0xb8]
mov rcx, rbx
sub rax, 0xffffffffffffff80
movsxd rdx, dword [rax]
add rdx, rax
cmp dword [rax], r15d
cmove rdx, r15
call fcn.1400146c0
test al, al
je 0x1400217c3
mov rcx, qword [rsi + 0xb8]
mov eax, r15d
sub rcx, 0xffffffffffffff80
movsxd r9, dword [rcx]
add r9, rcx
sub eax, dword [rcx]
jmp 0x14002151e
mov rdx, qword [rsi + 0xb8]
mov eax, r15d
add rdx, 0x78
movsxd r9, dword [rdx]
add r9, rdx
sub eax, dword [rdx]
neg eax
lea r8, [rsi + 0xc8]
lea rdx, [rsi + 0x78]
sbb rax, rax
and r9, rax
mov rcx, r9
call fcn.140022c00
mov rcx, qword [rsi + 0xb8]
mov eax, r15d
add rcx, 0x8c
sub eax, dword [rcx]
movsxd rdx, dword [rcx]
add rdx, rcx
lea rcx, [rsi + 0x230]
neg eax
sbb rax, rax
and rdx, rax
call fcn.14001f750
mov rcx, qword [rsi + 0xb8]
mov eax, r15d
add rcx, 0x84
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], r15
sub eax, dword [rcx]
movsxd rdi, dword [rcx]
add rdi, rcx
lea rcx, [rbp - 0x31]
neg eax
sbb rax, rax
and rdi, rax
mov rdx, rdi
call fcn.14003b820
mov rbx, qword [rbp - 0x31]
mov r8, rdi
mov ecx, 8
test rbx, rbx
je 0x14002165c
mov r14, qword [rbp - 0x29]
lea rdx, str._s:_successfully_mapped_at__p___d_bytes_
mov r9, rbx
mov dword [rsp + 0x20], r14d
call fcn.140013ae0
cmp r14, 0x18
jae 0x1400215f7
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.140013ae0
jmp 0x140021668
cmp dword [rbx], 0x6d072211
je 0x140021620
mov r9d, dword [rbx]
lea rdx, str._s:_Bad_magic_number__08x___current_is__08x
mov r8, rdi
mov dword [rsp + 0x20], 0x6d072211
mov ecx, 8
call fcn.140013ae0
jmp 0x140021668
cmp dword [rbx + 0x14], 0x6d072211
je 0x14002163a
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 0x140021663
movups xmm0, xmmword [rbp - 0x31]
mov qword [rsi + 0xd0], rbx
movups xmm1, xmmword [rbp - 0x21]
movups xmmword [rsi + 0x98], xmm0
movups xmmword [rsi + 0xa8], xmm1
jmp 0x140021716
lea rdx, str._s:_mmap_failed
call fcn.140013ae0
lea rcx, [rbp + 0x77]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400217e6
mov rax, qword [rbp + 0x77]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
div qword [0x140099f80]
mov rdi, rax
add rdi, qword [0x140099f90]
test rbx, rbx
je 0x1400216d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400217f3
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax]
lea rcx, [rbp + 0x7f]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14002178c
mov rax, qword [rbp + 0x7f]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
div qword [0x140099f80]
sub rax, rdi
add rax, qword [0x140099f90]
lock inc dword [0x140099870]
lock add qword [0x140099878], rax
mov r14, qword [rsi + 0xd0]
mov qword [rsi + 0x178], r14
test r14, r14
je 0x140021771
movsxd rdi, dword [r14 + 4]
mov rbx, qword [rsi + 0x188]
lea rcx, [rdi + 8]
call fcn.140058a4c
mov qword [rax], rdi
lock add qword [rbx], rdi
lea rbx, [rax + 8]
mov r8, rdi
mov rcx, rbx
xor edx, edx
call fcn.14004e520
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.140013ae0
lea rcx, [rbp - 0x11]
call fcn.140001250
mov al, 1
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3
mov rdx, rdi
lea rcx, str.failed_to_open_binlog_file_at__s
call fcn.1400139e0
int3
lea rcx, str.If_you_pass___ipc__you_cannot_pass_a_binglog_path
call fcn.1400139e0
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3
mov rcx, qword [rsi + 0xb8]
sub rcx, 0xffffffffffffff80
call fcn.1400032c0
mov r8, rax
lea rcx, str.Unable_to_rename_state_file__s____s
mov rdx, rbx
call fcn.1400139e0
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3
lea rcx, str.UnMapViewOfFile___failed
call fcn.140013a60
int3