Function at 0x14002c9ec
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 [0x14008a3a8]
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 0x14002cc7d
xor r13d, r13d
test r8d, r8d
jne 0x14002cc7d
test rcx, rcx
je 0x14002ca49
cmp word [rcx], r13w
je 0x14002cc7d
call fcn.140034e88
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14003d130
test al, al
je 0x14002cc76
call fcn.1400356ec
mov r14, rax
test rax, rax
je 0x14002cc76
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.14001cb4c
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002cada
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 0x14002cadf
mov rdi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14002cc2c
test rdi, rdi
je 0x14002cc2c
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 0x14002cb34
cmp word [rbx], r13w
jne 0x14002cb26
mov ebx, 0xc000000d
jmp 0x14002cbd5
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.14002ce30
jmp 0x14002cb39
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.1400397e0
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.14002c338
mov rdi, qword [rsp + 0x48]
test eax, eax
je 0x14002cbbc
mov ebx, 0xc0000022
jmp 0x14002cbd1
mov ebx, dword [rbp - 0x58]
test ebx, ebx
jne 0x14002cbd1
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x68]
cmp rax, 8
jb 0x14002cc19
mov rcx, qword [rbp - 0x80]
lea rdx, [rax*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002cc0f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002cc0f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006b030
mov rdi, qword [rsp + 0x48]
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
jmp 0x14002cc31
mov ebx, 0xc000000d
test rdi, rdi
je 0x14002cc3f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x40]
dec rcx
cmp rcx, 0xfffffffffffffffd
ja 0x14002cc72
call fcn.140041a40
mov r8, qword [rbp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov r9, rax
call fcn.140041c30
mov rcx, qword [rsp + 0x40]
call fcn.140041bb0
mov eax, ebx
jmp 0x14002cc82
mov eax, 0xc0000022
jmp 0x14002cc82
mov eax, 0xc000000d
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400722b0
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 0x14002c9ec