Function at 0x140031de0
Capabilities:
Read file via mapping

Disassembly:
mov rcx, rdx
xor edx, edx
jmp 0x140031df0
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov ebp, 0xc000000d
test r8d, r8d
jne 0x140031e60
mov r14d, dword [rsp + 0x170]
cmp r14d, 0x4000
ja 0x140031e60
mov rsi, r9
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140031e48
cmp word [rdi], 0
je 0x140031e60
call fcn.1400405b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ebp, 0xc0000022
cmp dword [rax], 2
jge 0x140031e8a
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400477a0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14003a670
test al, al
je 0x140031e60
mov r15, qword [0x1400577e8]
test r15, r15
je 0x140031e60
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rcx, [rsp + 0x60]
mov rdx, rax
call fcn.140018c40
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140031f0c
mov eax, r14d
mov qword [rsp + 0x20], rax
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x60]
mov ebp, 0xc000000d
lea rax, [rcx + 1]
cmp rax, 2
jae 0x140031f3a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140031f2b
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsp + 0x60]
call fcn.140018cd0
jmp 0x140031e60
cmp qword [rsp + 0x68], 0
je 0x140031f1b
movaps xmm6, xmmword [0x140049280]
movups xmmword [rsp + 0xe0], xmm6
mov word [rsp + 0xd0], 0
mov qword [rsp + 0x58], 0
test rdi, rdi
je 0x140031ff0
movzx r8d, word [rdi]
mov ebp, 0xc000000d
test r8, r8
je 0x1400320ae
mov rdx, qword [rdi + 8]
and r8d, 0xfffffffe
add r8, rdx
lea rdi, [rsp + 0x70]
lea r9, [rsp + 0x48]
mov rcx, rdi
call fcn.140018e70
lea rcx, [rsp + 0xd0]
call fcn.1400115c0
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xe0], xmm1
movaps xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0x80], xmm6
mov word [rsp + 0x70], 0
mov rcx, rdi
call fcn.1400115c0
mov rcx, qword [rsp + 0x60]
cmp qword [rsp + 0xe8], 7
seta al
jmp 0x140031ff7
mov qword [rsp + 0x58], rbx
xor eax, eax
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0x48], r15
add r15, qword [r15 + 0x10]
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x44], r14d
mov qword [rsp + 0x38], rcx
test al, al
je 0x140032051
mov rax, qword [rsp + 0xd0]
jmp 0x140032059
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x58]
lea r9, [rsp + 0x38]
call fcn.1400331f0
mov ebp, 0xc0000022
test eax, eax
jne 0x1400320ae
mov ebp, dword [rsp + 0x78]
test ebp, ebp
jne 0x1400320ae
mov rdx, qword [rsp + 0x68]
mov r8d, r14d
mov rcx, rsi
call sub.ntdll.dll_memcpy
xor ebp, ebp
lea rcx, [rsp + 0xd0]
call fcn.1400115c0
jmp 0x140031f1b