Function at 0x1400ea8a0
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, 0x58
mov edi, r9d
mov r15, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.1400eacb0
test eax, eax
jne 0x1400eac24
mov r13d, dword [rsp + 0xc0]
lea eax, [rdi + r13]
mov dword [rsp + 0x20], eax
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 [rsi + 0x28], rax
je 0x1400ea94c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jae 0x1400eac02
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400ea940
mov qword [rsi + 0x28], r14
call fcn.140119620
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0x28]
mov r12, qword [rsp + 0xc8]
lea rax, [r14 + 1]
cmp rax, 1
jbe 0x1400eac28
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 0x1400eac39
mov r14, rax
mov ebp, edi
mov r12d, r13d
test r15, r15
je 0x1400ea9cd
test r13d, r13d
je 0x1400ea9cd
lea r13, [r14 + rbp]
mov rcx, r13
mov rdx, r15
mov r8, r12
call fcn.14013d5f0
xor eax, eax
mov rcx, qword [r13 + rax*8]
test rcx, rcx
jne 0x1400ea9c3
inc rax
cmp rax, 0x40
jne 0x1400ea9ae
jmp 0x1400ea9cd
sub rcx, r15
mov qword [r13 + rax*8], rcx
jmp 0x1400ea9b8
mov qword [0x140203e88], rbp
mov rcx, rsi
call fcn.1400e9220
test al, al
je 0x1400eac53
movabs r15, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x48]
mov qword [r13], r15
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r13
lea rdx, [0x140203e88]
mov r9d, 8
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400eab9e
cmp qword [rsp + 0x48], 8
mov qword [0x140203e88], 0
jne 0x1400eac1d
mov qword [0x140203e90], r12
mov rcx, rsi
call fcn.1400e9220
test al, al
je 0x1400eac5d
mov qword [rsp + 0x48], r15
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r13
lea rdx, [0x140203e90]
mov r9d, 8
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400eabde
cmp qword [rsp + 0x48], 8
mov qword [0x140203e90], 0
jne 0x1400eac1d
mov ebp, dword [rsi + 0x10]
mov r12, qword [rsi]
mov ecx, 0x40
call fcn.14013a754
mov r15, rax
mov r9, qword [rsi + 0x40]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r12
mov r8d, ebp
call fcn.1400fea20
mov rbx, qword [rsi + 0x38]
mov qword [rsi + 0x38], r15
test rbx, rbx
jne 0x1400eac67
mov rcx, r15
mov rdx, r14
mov r8d, edi
mov r9d, 0x400
call fcn.1400feb30
test al, al
je 0x1400eac80
lea rdi, [rsp + 0x40]
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rdi], r15
mov rbx, qword [rsi]
mov r14, qword [rsi + 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, r14
mov r8, rbx
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400eac8a
mov rax, qword [rsp + 0x40]
mov qword [0x140202a68], rax
mov rcx, rsi
call fcn.1400e9220
test al, al
je 0x1400eaca4
mov qword [rsp + 0x48], r15
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r13
lea rdx, [0x140202a68]
mov r9d, 8
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400eabf0
cmp qword [rsp + 0x48], 8
mov qword [0x140202a68], 0
jne 0x1400eac1d
mov rcx, rsi
call fcn.1400e93f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
jmp 0x1400eabbe
mov ebp, 0x39
mov qword [0x140203e88], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14013bb80
mov eax, ebp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 0x39
mov qword [0x140203e90], 0
jmp 0x1400eabae
mov ebp, 0x39
mov qword [0x140202a68], 0
jmp 0x1400eabae
call fcn.140119620
mov rcx, qword [rsi + 0x28]
call fcn.140124bd0
mov qword [rsi + 0x28], 0
jmp 0x1400ea92b
mov ebp, 0x3a
jmp 0x1400eabae
mov ebp, eax
jmp 0x1400eabbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov ebp, 0x19
jmp 0x1400eabbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebp, 0x1b
jmp 0x1400eabbe
mov ebp, 8
jmp 0x1400eaba3
mov ebp, 8
jmp 0x1400eabe3
mov rcx, rbx
call fcn.1400feac0
mov rcx, rbx
call fcn.14013a790
mov r15, qword [rsi + 0x38]
jmp 0x1400eaac8
mov ebp, 4
jmp 0x1400eabbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebp, 0x1a
jmp 0x1400eabbe
mov ebp, 8
jmp 0x1400eabf5