Function at 0x140043fb0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rbx, r9
mov r14d, r8d
mov rsi, rcx
xor r15d, r15d
mov dword [rbp + 0xa8], r15d
mov eax, r8d
shl rax, 2
lea r9d, [rdx*4]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r15 + 6]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov rdi, rax
cmp rax, rbx
jne 0x1400440ce
add rsi, 0x50
mov rbx, qword [rsi]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], r15d
mov rcx, rbx
cmp byte [rax + 0x19], r15b
jne 0x14004405e
mov qword [rsp + 0x30], rax
cmp qword [rax + 0x20], rdi
jae 0x14004404a
mov dword [rsp + 0x38], r15d
mov rax, qword [rax + 0x10]
jmp 0x140044058
mov dword [rsp + 0x38], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r15b
je 0x140044034
cmp byte [rcx + 0x19], r15b
jne 0x14004406a
cmp rdi, qword [rcx + 0x20]
jae 0x1400440c6
movabs rax, 0x555555555555555
cmp qword [rsi + 8], rax
je 0x1400443b2
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov ecx, 0x30
call fcn.140138d8c
nop
mov qword [rax + 0x20], rdi
mov dword [rax + 0x28], r14d
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140040a90
mov rax, rdi
jmp 0x140044390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [0x140000000]
lea rcx, [rax + 0x1e6bd0]
mov qword [rsp + 0x70], rcx
lea rcx, [rax + 0x1e6aa8]
mov qword [rbp - 0x80], rcx
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x38], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
mov dword [rbp + 0xa8], 1
lea r12, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + 8], r12
mov dword [rbp + 4], 0x80
mov qword [rsp + 0x78], r15
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 8]
call fcn.140009c10
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], r14
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x7c], edx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rdi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call fcn.140009780
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x10], r15
mov dword [rbp - 8], r15d
lea rdx, str.mapMem
lea rcx, [rbp - 0x80]
call fcn.140003440
mov rcx, rax
lea rdx, [0x1401e68f8]
call fcn.140003440
mov edx, 0xf3
mov rcx, rax
call fcn.140006c40
mov rcx, rax
lea rdx, [0x14017bbd0]
call fcn.140003440
mov rcx, rax
lea rdx, str.Failed_to_create_memory_mapping__err
call fcn.140003440
mov edx, ebx
mov rcx, rax
call fcn.1400151c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1401fb460]
movdqu xmmword [rsp + 0x60], xmm1
mov byte [rsp + 0x50], 0
mov dword [rbp + 0xa8], 0x21
movups xmmword [rsp + 0x30], xmm0
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14004426d
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x14004426d
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x14004429e
test cl, 4
jne 0x140044294
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140044294
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x14004429e
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400442ae
lea rcx, [rsp + 0x50]
call fcn.140009a50
nop
lea rcx, [rsp + 0x50]
call fcn.14003a9c0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400442f7
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400442f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400443ac
call fcn.140138d84
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rdi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call fcn.1400067c0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r14
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x7c], edx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1401379a8
nop
xor eax, eax
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14013fad4
nop
call fcn.14003e3a0
int3