Function at 0x1400744a0
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 [0x140166028]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.1400748b0
test eax, eax
jne 0x140074824
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 0x14007454c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jae 0x140074802
mov rax, r14
inc rax
cmp rax, 2
jb 0x140074540
mov qword [rsi + 0x28], r14
call fcn.1400a33d0
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 0x140074828
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 0x140074839
mov r14, rax
mov ebp, edi
mov r12d, r13d
test r15, r15
je 0x1400745cd
test r13d, r13d
je 0x1400745cd
lea r13, [r14 + rbp]
mov rcx, r13
mov rdx, r15
mov r8, r12
call fcn.1400c7420
xor eax, eax
mov rcx, qword [r13 + rax*8]
test rcx, rcx
jne 0x1400745c3
inc rax
cmp rax, 0x40
jne 0x1400745ae
jmp 0x1400745cd
sub rcx, r15
mov qword [r13 + rax*8], rcx
jmp 0x1400745b8
mov qword [0x14017cfc8], rbp
mov rcx, rsi
call fcn.140072e20
test al, al
je 0x140074853
movabs r15, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x48]
mov qword [r13], r15
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r13
lea rdx, [0x14017cfc8]
mov r9d, 8
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14007479e
cmp qword [rsp + 0x48], 8
mov qword [0x14017cfc8], 0
jne 0x14007481d
mov qword [0x14017cfd0], r12
mov rcx, rsi
call fcn.140072e20
test al, al
je 0x14007485d
mov qword [rsp + 0x48], r15
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r13
lea rdx, [0x14017cfd0]
mov r9d, 8
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400747de
cmp qword [rsp + 0x48], 8
mov qword [0x14017cfd0], 0
jne 0x14007481d
mov ebp, dword [rsi + 0x10]
mov r12, qword [rsi]
mov ecx, 0x40
call fcn.1400c4664
mov r15, rax
mov r9, qword [rsi + 0x40]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r12
mov r8d, ebp
call fcn.140089630
mov rbx, qword [rsi + 0x38]
mov qword [rsi + 0x38], r15
test rbx, rbx
jne 0x140074867
mov rcx, r15
mov rdx, r14
mov r8d, edi
mov r9d, 0x400
call fcn.140089740
test al, al
je 0x140074880
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 0x14007488a
mov rax, qword [rsp + 0x40]
mov qword [0x14017bba8], rax
mov rcx, rsi
call fcn.140072e20
test al, al
je 0x1400748a4
mov qword [rsp + 0x48], r15
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r13
lea rdx, [0x14017bba8]
mov r9d, 8
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400747f0
cmp qword [rsp + 0x48], 8
mov qword [0x14017bba8], 0
jne 0x14007481d
mov rcx, rsi
call fcn.140072ff0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
jmp 0x1400747be
mov ebp, 0x39
mov qword [0x14017cfc8], 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.1400c59b0
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 [0x14017cfd0], 0
jmp 0x1400747ae
mov ebp, 0x39
mov qword [0x14017bba8], 0
jmp 0x1400747ae
call fcn.1400a33d0
mov rcx, qword [rsi + 0x28]
call fcn.1400ae980
mov qword [rsi + 0x28], 0
jmp 0x14007452b
mov ebp, 0x3a
jmp 0x1400747ae
mov ebp, eax
jmp 0x1400747be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov ebp, 0x19
jmp 0x1400747be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebp, 0x1b
jmp 0x1400747be
mov ebp, 8
jmp 0x1400747a3
mov ebp, 8
jmp 0x1400747e3
mov rcx, rbx
call fcn.1400896d0
mov rcx, rbx
call fcn.1400c46a0
mov r15, qword [rsi + 0x38]
jmp 0x1400746c8
mov ebp, 4
jmp 0x1400747be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebp, 0x1a
jmp 0x1400747be
mov ebp, 8
jmp 0x1400747f5