Function at 0x1400068c0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r12d, r12d
mov rbx, rcx
mov r15d, r12d
mov r14d, r12d
mov edi, r12d
cmp qword [rcx + 0x18], r12
je 0x140006a75
cmp byte [rcx + 0x10], dil
je 0x140006a4d
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
cmp r15d, 0x500
jne 0x140006913
cmp r14d, 0x2d0
je 0x140006954
mov rcx, qword [rbx + 0x18]
mov edx, 0x500
mov r8d, 0x2d0
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001d9d0.0]
test al, al
je 0x140006a2e
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x14001d9d0.0]
mov r15d, 0x500
mov r14d, 0x2d0
cmp qword [rbx + 0x20], r12
jne 0x140006979
xor edx, edx
lea r8, str.GlobalVirtualCamDeviceStreamNotify
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x140006a12
cmp qword [rbx + 0x28], r12
jne 0x14000699a
xor edx, edx
lea r8, str.GlobalVirtualCamDeviceStream
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x140006a12
test rdi, rdi
jne 0x1400069c3
mov rcx, qword [rbx + 0x20]
lea edx, [rdi + 2]
xor r9d, r9d
mov qword [rsp + 0x20], 0xf
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x1400069c6
mov byte [rdi], 1
mov rax, qword [rbx + 0x30]
test rax, rax
jne 0x140006a8a
mov rcx, qword [rbx + 0x28]
lea edx, [rax + 4]
xor r9d, r9d
mov qword [rsp + 0x20], 0x10
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140006a8a
mov rcx, qword [rbx + 0x18]
mov edx, 0xe
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14001d9d0.0]
mov rcx, qword [rbx + 0x18]
mov r9d, r14d
xor edx, edx
mov r8d, 0x500
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [case.0x14001d9d0.0]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x10], r12b
jne 0x140006901
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov qword [rbx + 0x38], r12
test rdi, rdi
je 0x140006a62
mov rcx, rdi
mov byte [rdi], r12b
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140006a75
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x30], r12
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
mov rsi, qword [rax]
test rsi, rsi
je 0x140006a12
cmp qword [rbx + 0x38], rsi
je 0x140006ad3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 0x28]
lea rax, [rsi + 0x10]
xor r9d, r9d
mov qword [rbx + 0x30], r12
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x30], rax
test rax, rax
je 0x1400069fc
mov qword [rbx + 0x38], rsi
mov rcx, qword [rbx + 0x18]
mov r9d, r14d
mov rdx, qword [rbx + 0x30]
mov r8d, 0x500
add rdx, 0x10
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [case.0x14001d9d0.0]
test eax, eax
je 0x140006a2e
mov rcx, qword [rbx + 0x18]
mov edx, 0xe
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14001d9d0.0]
jmp 0x140006a2e