Function at 0x1400493a0
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rdi, rcx
lea r15, vtable.ATL::CAcl.0
mov qword [rsp + 0x50], r15
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov byte [rsp + 0x60], r12b
mov dword [rsp + 0x64], 2
lea r13, vtable.ATL::CDacl.0
mov qword [rsp + 0x50], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], r12d
lea rcx, [rbp + 0x30]
call fcn.140039dc0
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140039f30
nop
lea rcx, [rbp + 0x30]
call fcn.140034f20
lea rcx, [rbp + 0xb0]
call fcn.140039bd0
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140039f30
nop
lea rcx, [rbp + 0xb0]
call fcn.140034f20
lea r14, vtable.ATL::CSecurityDesc.0
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r12
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.1400398e0
mov dword [rbp - 0x68], 0x18
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], r12d
mov rax, qword [rdi]
lea rdx, [rbp + 0x20]
mov rcx, rdi
call qword [rax + VariantCopy]
mov rcx, rax
lea rdx, [rbp - 0x48]
call fcn.1400376c0
nop
mov r8, rax
lea rdx, str.GlobalSC_FileMapping_
lea rcx, [rbp - 0x38]
call fcn.140036910
nop
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100000
xor r9d, r9d
lea r8d, [r12 + 4]
lea rdx, [rbp - 0x68]
or rbx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x10], rax
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004951e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004953c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov esi, r12d
cmp qword [rdi + 0x10], rsi
setne sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140049559
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x140049573
mov dword [rsp + 0x48], eax
lea rdx, [0x140176950]
lea rcx, [rsp + 0x48]
call fcn.1400de560
int3
mov qword [rsp + 0x20], 0x100000
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x18], rax
mov esi, r12d
test rax, rax
setne sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400495b0
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x1400495ca
mov dword [rsp + 0x40], eax
lea rdx, [0x140176950]
lea rcx, [rsp + 0x40]
call fcn.1400de560
int3
mov rax, qword [rdi]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [rax + VariantCopy]
mov rcx, rax
lea rdx, [rbp - 0x28]
call fcn.1400376c0
nop
mov r8, rax
lea rdx, str.GlobalSC_SharedMemoryMutex_
lea rcx, [rbp - 0x30]
call fcn.140036910
nop
mov r8, qword [rax]
xor edx, edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 0x20], rax
mov esi, r12d
test rax, rax
setne sil
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140049634
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140049652
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140049664
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x14004967e
mov dword [rsp + 0x44], eax
lea rdx, [0x140176950]
lea rcx, [rsp + 0x44]
call fcn.1400de560
int3
mov rax, qword [rdi]
lea rdx, [rbp]
mov rcx, rdi
call qword [rax + VariantCopy]
mov rcx, rax
lea rdx, [rbp - 0x20]
call fcn.1400376c0
nop
mov r8, rax
lea rdx, str.GlobalSC_DataAvaliableEvent_
lea rcx, [rbp - 0x40]
call fcn.140036910
nop
mov r9, qword [rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x28], rax
mov esi, r12d
test rax, rax
setne sil
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400496eb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140049709
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14004971b
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x140049735
mov dword [rsp + 0x34], eax
lea rdx, [0x140176950]
lea rcx, [rsp + 0x34]
call fcn.1400de560
int3
mov rax, qword [rdi]
lea rdx, [rbp + 0x10]
mov rcx, rdi
call qword [rax + VariantCopy]
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.1400376c0
nop
mov r8, rax
lea rdx, str.GlobalSC_DataConsumedEvent_
lea rcx, [rbp - 0x50]
call fcn.140036910
nop
mov r9, qword [rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x30], rax
mov edi, r12d
test rax, rax
setne dil
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400497a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400497c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400497d2
movzx eax, ax
or eax, 0x80070000
test edi, edi
jne 0x1400497ec
mov dword [rsp + 0x30], eax
lea rdx, [0x140176950]
lea rcx, [rsp + 0x30]
call fcn.1400de560
nop
mov qword [rbp - 0x78], r14
lea rcx, [rbp - 0x78]
call fcn.140039ae0
nop
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140049822
mov rdx, qword [rsp + 0x70]
call fcn.14003aa00
mov rcx, qword [rsp + 0x68]
call fcn.1400d6134
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov rcx, qword [rsp + 0x58]
call fcn.1400d6134
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
call fcn.14003aa60
nop
mov qword [rsp + 0x50], r15
mov rcx, qword [rsp + 0x58]
call fcn.1400d6134
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret