Function at 0x1402afcf0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rdi, rcx
mov rsi, rdx
test rcx, rcx
je 0x1402afe90
test rdx, rdx
je 0x1402afd68
cmp qword [rdx], 0
lea rax, str._error__error__NULL
je 0x1402afd68
mov qword [rsp + 0x20], rax
lea r9, str.g_mapped_file_new
lea r8, [0x140481380]
mov edx, 8
lea rcx, [0x14048139a]
call fcn.1400d2190
xor r14d, r14d
mov rax, r14
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r8d, r8d
mov edx, 0x8000
mov rcx, rdi
call fcn.1400e47f0
mov ebx, eax
cmp eax, 0xffffffff
je 0x1402afeb8
mov ecx, 0x28
call fcn.1400e69e0
pxor xmm0, xmm0
lea rdx, [rsp + 0x70]
mov ecx, ebx
movups xmmword [rax + 0x10], xmm0
mov r14, rax
mov qword [rax + 0x20], 0
mov dword [rax + 0x18], 1
movups xmmword [rax], xmm0
mov rax, qword [0x14048d6c0]
mov qword [r14 + 0x10], rax
call qword [sym.imp.msvcrt.dll__fstat64]
cmp eax, 0xffffffff
je 0x1402aff70
mov rax, qword [rsp + 0x88]
test rax, rax
jne 0x1402afded
movzx edx, word [rsp + 0x76]
and dx, 0xf000
cmp dx, 0x8000
je 0x1402afea0
mov ecx, ebx
mov qword [r14], 0xffffffffffffffff
mov qword [r14 + 8], rax
call qword [sym.imp.msvcrt.dll__get_osfhandle]
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [r14 + 0x20], rax
mov rcx, rax
test rax, rax
je 0x1402afe89
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [r14], rax
test rax, rax
je 0x1402afe70
cmp rax, 0xffffffffffffffff
je 0x1402b0070
mov ecx, ebx
call sub.msvcrt.dll__close_1
jmp 0x1402afd4b
mov qword [r14], 0xffffffffffffffff
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14 + 0x20], 0
mov rax, qword [r14]
jmp 0x1402afe53
lea rax, str.filename___NULL
jmp 0x1402afd24
mov qword [r14 + 8], 0
mov qword [r14], 0
jmp 0x1402afe5d
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, rdi
mov ebx, dword [rax]
call fcn.1400c69f0
mov ecx, ebx
mov rdi, rax
call fcn.1400e79b0
mov rcx, qword [0x14048def0]
mov rbp, rax
mov rax, qword [rcx]
test rax, rax
je 0x1402b00d0
lea rdx, str.Failed_to_open_file__s:_open___failed:__s
lea rcx, [0x14048168d]
sub ebx, 1
mov r13d, 0x18
call fcn.1400c7f40
mov r12, rax
cmp ebx, 0x8a
jbe 0x1402aff58
mov rbx, qword [0x14048eef0]
mov edx, dword [rbx]
test edx, edx
jne 0x1402aff2c
lea rcx, [0x140482990]
call fcn.1400daa90
mov dword [rbx], eax
mov edx, eax
mov qword [rsp + 0x28], rbp
mov rcx, rsi
mov r9, r12
mov r8d, r13d
mov qword [rsp + 0x20], rdi
call fcn.1400cab90
mov rcx, rdi
call fcn.14034efb0
jmp 0x1402afd48
mov rax, qword [0x14048b530]
movzx r13d, byte [rax + rbx]
jmp 0x1402aff0f
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, rdi
mov ebp, dword [rax]
call fcn.1400c69f0
mov ecx, ebp
mov rdi, rax
call fcn.1400e79b0
mov r12, rax
test rdi, rdi
je 0x1402b0117
mov qword [rsp + 0x58], rdi
lea r13, [0x14048292a]
lea r15, [0x14048292d]
mov qword [rsp + 0x50], rdi
mov rcx, qword [0x14048def0]
mov rax, qword [rcx]
test rax, rax
je 0x1402b00f0
lea rdx, str.Failed_to_get_attributes_of_file__s_s_s_s:_fstat___failed:__s
lea rcx, [0x14048168d]
sub ebp, 1
call fcn.1400c7f40
mov r8d, 0x18
mov r9, rax
cmp ebp, 0x8a
ja 0x1402afff4
mov rax, qword [0x14048b530]
movzx r8d, byte [rax + rbp]
mov rbp, qword [0x14048eef0]
mov edx, dword [rbp]
test edx, edx
jne 0x1402b0027
lea rcx, [0x140482990]
mov qword [rsp + 0x68], r9
mov dword [rsp + 0x64], r8d
call fcn.1400daa90
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x64]
mov dword [rbp], eax
mov edx, eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], r12
mov rcx, rsi
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.1400cab90
mov rcx, rdi
call fcn.14034efb0
mov rdx, r14
mov ecx, 0x28
xor r14d, r14d
call fcn.1400e6130
jmp 0x1402afe5d
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, rdi
mov ebp, dword [rax]
call fcn.1400c69f0
mov ecx, ebp
mov rdi, rax
call fcn.1400e79b0
mov r12, rax
test rdi, rdi
je 0x1402b0137
mov qword [rsp + 0x58], rdi
lea r13, [0x14048292a]
lea r15, [0x14048292d]
mov qword [rsp + 0x50], rdi
mov rcx, qword [0x14048def0]
mov rax, qword [rcx]
test rax, rax
je 0x1402b0107
lea rdx, str.Failed_to_map__s_s_s_s:_mmap___failed:__s
jmp 0x1402affc8
call fcn.1400e7370
test eax, eax
je 0x1402afee8
call fcn.1400cb3d0
jmp 0x1402afee8
call fcn.1400e7370
test eax, eax
je 0x1402affc1
call fcn.1400cb3d0
jmp 0x1402affc1
call fcn.1400e7370
test eax, eax
je 0x1402b00bd
call fcn.1400cb3d0
jmp 0x1402b00bd
lea r13, [0x14048292f]
lea rax, [0x140482930]
mov qword [rsp + 0x58], r13
mov r15, r13
mov qword [rsp + 0x50], rax
jmp 0x1402affae
lea r13, [0x14048292f]
lea rax, [0x140482930]
mov qword [rsp + 0x58], r13
mov r15, r13
mov qword [rsp + 0x50], rax
jmp 0x1402b00ae