Function at 0x1400c1a7c
Capabilities:
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 ebp, r9d
mov rbx, r8
mov r15, rdx
mov r12, rcx
mov r14, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0xc0]
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea eax, [rcx + rbp]
lea rdi, [r12 + 0x28]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
xor r13d, r13d
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rdi
mov rdx, rax
call fcn.140001fa0
mov rsi, qword [r12 + 0x28]
lea rax, [rsi + 1]
cmp rax, 1
ja 0x1400c1b2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov ebx, 0x19
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401207e0
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], rbp
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x48]
mov qword [r14], rax
mov rbp, qword [r12]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 7
mov rcx, rax
mov rdx, rsi
mov r8, rbp
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400c1c84
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1400c1c9e
mov r14, rax
mov ebp, dword [rsp + 0x40]
mov eax, dword [rsp + 0xc0]
mov esi, eax
test rbx, rbx
je 0x1400c1be7
test eax, eax
je 0x1400c1be7
lea rdi, [r14 + rbp]
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call fcn.140123290
xor eax, eax
mov rcx, qword [rdi + rax*8]
test rcx, rcx
je 0x1400c1bde
sub rcx, rbx
mov qword [rdi + rax*8], rcx
inc rax
cmp rax, 0x40
jne 0x1400c1bce
mov rax, qword [rsp + 0x48]
mov qword [0x1401a3110], rax
lea r8, [0x1401a3110]
mov r9d, 8
mov rcx, r12
call fcn.1400c19f4
mov qword [0x1401a3110], 0
test eax, eax
jne 0x1400c1c6d
mov qword [0x1401a3ec8], rbp
lea r8, [0x1401a3ec8]
mov r9d, 8
mov rcx, r12
call fcn.1400c19f4
mov qword [0x1401a3ec8], 0
test eax, eax
jne 0x1400c1c6d
mov qword [0x1401a3ed0], rsi
lea r8, [0x1401a3ed0]
mov r9d, 8
mov rcx, r12
call fcn.1400c19f4
mov qword [0x1401a3ed0], 0
test eax, eax
je 0x1400c1cb8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
jmp 0x1400c1b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1a
jmp 0x1400c1b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1b
jmp 0x1400c1b0e
lea rsi, [r12 + 0x38]
mov ecx, 0x40
call fcn.140120368
mov rdi, rax
mov r9, qword [r12 + 0x40]
mov r8d, dword [r12 + 0x10]
mov rdx, qword [r12]
mov qword [rsp + 0x20], r15
mov rcx, rax
call fcn.1400e3124
mov rcx, rsi
mov rdx, rdi
call fcn.1400c15d6
mov rcx, qword [r12 + 0x38]
mov rdx, r14
mov r8, qword [rsp + 0x40]
mov r9d, 0x400
call fcn.1400e31d4
mov ebx, 4
test al, al
je 0x1400c1b0e
mov rcx, r12
call fcn.14009d0d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x1400c1b0e