Function at 0x1400295ec
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400893e8]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [rbp + 0x70]
mov r12, r9
mov r15, rdx
mov rbx, rcx
cmp esi, 0x4000
ja 0x14002987d
xor r13d, r13d
test r8d, r8d
jne 0x14002987d
test rcx, rcx
je 0x140029649
cmp word [rcx], r13w
je 0x14002987d
call fcn.140031eb0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140039ea0
test al, al
je 0x140029876
call fcn.140032704
mov r14, rax
test rax, rax
je 0x140029876
xorps xmm0, xmm0
mov qword [rsp + 0x28], r13
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
movdqu xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001977c
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400296da
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov qword [rsp + 0x48], rax
jmp 0x1400296df
mov rdi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14002982c
test rdi, rdi
je 0x14002982c
mov qword [rbp - 0x70], r13
mov eax, 7
mov qword [rbp - 0x68], rax
mov word [rbp - 0x80], r13w
mov qword [rsp + 0x58], r13
test rbx, rbx
je 0x140029734
cmp word [rbx], r13w
jne 0x140029726
mov ebx, 0xc000000d
jmp 0x1400297d5
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.140029a30
jmp 0x140029739
mov qword [rsp + 0x58], r15
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x58]
call sub.VCRUNTIME140.dll_memset
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.14003651c
mov rax, qword [rsp + 0x40]
lea r9, [rsp + 0x58]
cmp qword [rbp - 0x68], 8
lea r8, [rsp + 0x68]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x70]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x50], esi
cmovae rax, qword [rbp - 0x80]
mov edx, 0x1a
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140028f38
mov rdi, qword [rsp + 0x48]
test eax, eax
je 0x1400297bc
mov ebx, 0xc0000022
jmp 0x1400297d1
mov ebx, dword [rbp - 0x58]
test ebx, ebx
jne 0x1400297d1
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x68]
cmp rax, 8
jb 0x140029819
mov rcx, qword [rbp - 0x80]
lea rdx, [rax*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002980f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002980f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064280
mov rdi, qword [rsp + 0x48]
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
jmp 0x140029831
mov ebx, 0xc000000d
test rdi, rdi
je 0x14002983f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x40]
dec rcx
cmp rcx, 0xfffffffffffffffd
ja 0x140029872
call fcn.14003e760
mov r8, qword [rbp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov r9, rax
call fcn.14003e9b0
mov rcx, qword [rsp + 0x40]
call fcn.14003e930
mov eax, ebx
jmp 0x140029882
mov eax, 0xc0000022
jmp 0x140029882
mov eax, 0xc000000d
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400707e0
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdx
xor edx, edx
jmp 0x1400295ec