Function at 0x14015511a
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r15, r9
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x78], r8
call fcn.1401559a2
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x1401556c0
mov rax, qword [rsp + 0x100]
mov ebx, dword [rsp + 0x108]
cmp byte [r15 + 0x10], 0
mov rsi, rbx
je 0x140155182
mov rsi, qword [r15 + 8]
add rsi, rbx
cmp byte [rax + 0x10], 0
jne 0x140155286
mov rax, rsi
shr rax, 0x20
jne 0x140155659
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
cmp qword [rdi + 0x28], rax
mov qword [rsp + 0x38], r12
je 0x140155206
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi + 0x28]
inc rax
cmp rax, 2
jae 0x14015576f
mov rax, r14
inc rax
cmp rax, 2
jb 0x1401551fa
mov qword [rdi + 0x28], r14
call fcn.140096510
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 0x28]
mov r13, qword [rsp + 0x110]
lea rax, [r14 + 1]
cmp rax, 1
mov rbp, qword [rsp + 0x100]
jbe 0x14015566a
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x140155686
mov r12, rax
cmp byte [r15 + 0x10], 0
mov r14, rbx
je 0x14015539e
mov r8, qword [r15 + 8]
test r8, r8
je 0x14015565c
lea r14, [r12 + rbx]
mov r13, qword [r15]
mov rcx, r14
mov rdx, r13
call fcn.140111620
xor eax, eax
pxor xmm0, xmm0
pcmpeqd xmm1, xmm1
jmp 0x1401552c9
add rsi, qword [rax + 8]
jmp 0x14015518c
movq rcx, xmm2
sub rcx, r13
mov qword [r14 + rax*8], rcx
pxor xmm3, xmm1
pextrw ecx, xmm3, 4
test cl, 1
je 0x1401552bb
pshufd xmm2, xmm2, 0xee
movq rcx, xmm2
sub rcx, r13
mov qword [r14 + rax*8 + 8], rcx
add rax, 2
cmp rax, 0x40
je 0x14015538c
movdqu xmm2, xmmword [r14 + rax*8]
movdqa xmm4, xmm2
pcmpeqd xmm4, xmm0
pshufd xmm3, xmm4, 0xb1
pand xmm3, xmm4
movd ecx, xmm3
not ecx
test cl, 1
je 0x14015529b
jmp 0x14015528f
mov rax, qword [rax + 8]
mov qword [0x1403023b0], rax
lea r9, [0x1403023b0]
mov qword [rsp + 0x20], 8
lea r8, str.g_delegate_data_size
lea r15, [rsp + 0x50]
mov rcx, rdi
mov rdx, r15
call fcn.140153392
mov esi, dword [r15]
test bpl, bpl
js 0x1401557d4
mov r14, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x67]
mov qword [rsp + 0x87], rax
mov bpl, byte [rsp + 0x6f]
mov ebx, dword [rsp + 0x70]
mov qword [0x1403023b0], 0
test esi, esi
je 0x1401554a8
jmp 0x140155701
lea rcx, [r12 + r14]
mov rdx, qword [rbp]
mov r8, qword [rbp + 8]
call fcn.140111620
cmp byte [rbp + 0x10], 0
je 0x1401557a0
add r14, qword [rbp + 8]
jmp 0x1401553a4
cmp byte [r15 + 0x10], 0
je 0x140155664
mov r14, qword [r15 + 8]
add r14, rbx
cmp byte [rbp + 0x10], 0
jne 0x14015536b
cmp r14, rsi
jne 0x140155667
mov qword [0x1403023a0], rbx
lea r9, [0x1403023a0]
mov qword [rsp + 0x20], 8
lea r8, str.g_shared_IPC_size
lea r13, [rsp + 0x50]
mov rcx, rdi
mov rdx, r13
call fcn.140153392
mov esi, dword [r13]
mov r14, qword [r13 + 8]
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x80], rax
mov rax, qword [r13 + 0x17]
mov qword [rsp + 0x87], rax
mov bpl, byte [r13 + 0x1f]
mov ebx, dword [r13 + 0x20]
mov qword [0x1403023a0], 0
test esi, esi
jne 0x140155701
cmp byte [r15 + 0x10], 0
je 0x140155496
mov rax, qword [r15 + 8]
mov qword [0x1403023a8], rax
lea r9, [0x1403023a8]
mov qword [rsp + 0x20], 8
lea r8, str.g_shared_policy_size
lea r15, [rsp + 0x50]
mov rcx, rdi
mov rdx, r15
call fcn.140153392
mov esi, dword [r15]
test bpl, bpl
js 0x1401556da
mov r14, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x67]
mov qword [rsp + 0x87], rax
mov bpl, byte [rsp + 0x6f]
mov ebx, dword [rsp + 0x70]
mov qword [0x1403023a8], 0
test esi, esi
jne 0x140155701
mov rax, qword [rsp + 0x100]
cmp byte [rax + 0x10], 0
jne 0x1401552ed
lea r9, [rdi + 0x38]
mov eax, dword [rdi + 0x10]
lea r8, [rsp + 0x4c]
mov dword [r8], eax
mov rax, qword [rdi]
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r15, [rsp + 0x50]
mov rcx, r15
call fcn.14015586e
mov rcx, qword [r15]
mov r15, qword [rdi + 0x30]
mov qword [rdi + 0x30], rcx
test r15, r15
jne 0x140155748
mov rdx, r12
mov r8d, dword [rsp + 0x108]
mov r9d, 0x400
call fcn.140155a90
test al, al
je 0x1401557a3
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx], rax
mov r15, qword [rdi]
mov r12, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 7
mov rcx, rax
mov rdx, r12
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1401557e1
mov rax, qword [rsp + 0x40]
mov qword [0x1402fc9d0], rax
lea r9, [0x1402fc9d0]
mov qword [rsp + 0x20], 8
lea r8, str.g_shared_section
lea rbx, [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
call fcn.140153392
mov esi, dword [rbx]
test bpl, bpl
mov r12, qword [rsp + 0x38]
js 0x1401556e7
mov r14, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x67]
mov qword [rsp + 0x87], rax
mov bpl, byte [rsp + 0x6f]
mov ebx, dword [rsp + 0x70]
mov qword [0x1402fc9d0], 0
test esi, esi
jne 0x14015581c
lea rsi, [r12 + 8]
mov dword [rdi + 0x14], 0
mov rbx, qword [rdi + 8]
mov qword [rdi + 8], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1401555fb
call fcn.140096510
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [r12], 0
pxor xmm0, xmm0
movdqu xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [r12 + 0x20], ebx
test bpl, bpl
js 0x1401556f4
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14010fba0
mov rax, r12
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
xor r14d, r14d
jmp 0x14015539b
int3
int3
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov dword [r13], eax
mov r12, qword [rsp + 0x38]
mov dword [r12], 0x19
jmp 0x1401556a0
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov dword [r13], eax
mov r12, qword [rsp + 0x38]
mov dword [r12], 0x1b
pxor xmm0, xmm0
movdqu xmmword [r12 + 8], xmm0
mov qword [r12 + 0x18], 0
call rsi
mov dword [r12 + 0x20], eax
jmp 0x140155632
mov dword [r12], ebx
pxor xmm0, xmm0
movdqu xmmword [r12 + 8], xmm0
mov qword [r12 + 0x18], 0
jmp 0x1401556b6
mov rcx, r14
call fcn.14010cc0c
jmp 0x14015545b
mov rcx, r14
call fcn.14010cc0c
jmp 0x140155599
mov rcx, r14
call fcn.14010cc0c
jmp 0x140155632
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x110]
mov dword [rcx], eax
mov r12, qword [rsp + 0x38]
mov dword [r12], esi
mov qword [r12 + 8], r14
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x87]
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x17], rcx
mov byte [r12 + 0x1f], bpl
mov dword [r12 + 0x20], ebx
jmp 0x140155632
mov rcx, r15
call fcn.14015ae42
mov rcx, r15
call fcn.14010cc0c
mov rcx, qword [rdi + 0x30]
jmp 0x1401554ed
call fcn.14004ba00
mov rcx, qword [0x1402f4238]
jmp 0x140155784
call fcn.140096510
mov r12, qword [rdi + 0x28]
mov rcx, qword [0x1402f4238]
test rcx, rcx
je 0x140155761
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r12
call qword [0x140318008]
mov qword [rdi + 0x28], 0
jmp 0x1401551e5
int3
mov r12, qword [rsp + 0x38]
mov dword [r12], 4
pxor xmm0, xmm0
movdqu xmmword [r12 + 8], xmm0
mov qword [r12 + 0x18], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 0x20], eax
jmp 0x140155629
mov rcx, r14
call fcn.14010cc0c
jmp 0x14015532b
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov rcx, qword [rsp + 0x110]
mov dword [rcx], eax
mov r12, qword [rsp + 0x38]
mov dword [r12], 0x1a
pxor xmm0, xmm0
movdqu xmmword [r12 + 8], xmm0
mov qword [r12 + 0x18], 0
call rsi
jmp 0x140155622
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x110]
mov dword [rcx], eax
mov dword [r12], esi
mov qword [r12 + 8], r14
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x87]
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x17], rcx
mov byte [r12 + 0x1f], bpl
xor ebp, ebp
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x87], rbp
xor r14d, r14d
jmp 0x140155624