Function at 0x14005b510
Capabilities:
Read file via mapping

Disassembly:
mov rcx, rdx
xor edx, edx
jmp 0x14005b520
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov r12, qword [0x1401054a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov ebx, 0xc000000d
test r8d, r8d
jne 0x14005b94f
mov ebp, dword [rsp + 0x170]
cmp ebp, 0x4000
ja 0x14005b94f
mov rsi, r9
mov r15, rdx
mov r14, rcx
test rcx, rcx
je 0x14005b583
cmp word [r14], 0
je 0x14005b94f
call fcn.1400683e0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140071370
mov ebx, 0xc0000022
test al, al
je 0x14005b94f
call fcn.140068500
test rax, rax
je 0x14005b94f
mov rdi, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x20], ebp
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 + 0x90]
mov rdx, rax
call fcn.1400235b0
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14005b629
mov eax, ebp
mov qword [rsp + 0x20], rax
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14005b651
mov rax, qword [rsp + 0x90]
inc rax
cmp rax, 2
jae 0x14005b65b
mov ebx, 0xc000000d
jmp 0x14005b907
mov ebx, 0xc000000d
jmp 0x14005b90d
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x68], 0
test r14, r14
je 0x14005b6c1
movzx r15d, word [r14]
test r15, r15
je 0x14005b70c
mov rbx, qword [r14 + 8]
mov r14, r15
shr r14, 1
cmp r15w, 0x16
jae 0x14005b716
lea eax, [r14 + r14]
mov byte [rsp + 0xa0], al
lea rax, [rsp + 0xa2]
mov rcx, rax
cmp r15w, 2
jae 0x14005b749
jmp 0x14005b7c6
mov qword [rsp + 0x68], r15
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xf0], 0
lea rcx, [rsp + 0x58]
mov rdx, rdi
call fcn.14006c460
jmp 0x14005b868
mov ebx, 0xc000000d
jmp 0x14005b8fa
mov r13, r14
or r13, 7
lea rcx, [r13 + 2]
add rcx, r13
call fcn.1400d4140
mov qword [rsp + 0xb0], rax
add r13, 2
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r14
dec r14
movabs r8, 0x7fffffffffffffff
and r8, r14
cmp r8, 0xf
jb 0x14005b7a6
mov rcx, rax
sub rcx, rbx
cmp rcx, 0x20
jb 0x14005b7a6
inc r8
mov r9, r8
and r9, 0xfffffffffffffff0
lea rcx, [rax + r9*2]
lea rdx, [rbx + r9*2]
xor r10d, r10d
movups xmm0, xmmword [rbx + r10*2]
movups xmm1, xmmword [rbx + r10*2 + 0x10]
movups xmmword [rax + r10*2], xmm0
movups xmmword [rax + r10*2 + 0x10], xmm1
add r10, 0x10
cmp r9, r10
jne 0x14005b780
cmp r8, r9
jne 0x14005b7ac
jmp 0x14005b7c6
mov rcx, rax
mov rdx, rbx
and r15d, 0xfffffffe
add rbx, r15
movzx eax, word [rdx]
mov word [rcx], ax
add rdx, 2
add rcx, 2
cmp rdx, rbx
jne 0x14005b7b3
mov word [rcx], 0
mov rbx, qword [rsp + 0xb0]
mov qword [rsp + 0x80], rbx
movzx eax, byte [rsp + 0xa0]
mov byte [rsp + 0x70], al
mov rax, qword [rsp + 0xa1]
mov qword [rsp + 0x71], rax
mov eax, dword [rsp + 0xa9]
mov dword [rsp + 0x79], eax
movzx eax, word [rsp + 0xad]
mov word [rsp + 0x7d], ax
movzx eax, byte [rsp + 0xaf]
mov byte [rsp + 0x7f], al
movzx r14d, byte [rsp + 0x70]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xf0], 0
lea rcx, [rsp + 0x58]
mov rdx, rdi
call fcn.14006c460
test r14b, 1
jne 0x14005b86d
lea rbx, [rsp + 0x72]
mov qword [rsp + 0x50], rbx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], ebp
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x68]
mov edx, 0x1b
call fcn.14005cfa0
mov ebx, 0xc0000022
test eax, eax
jne 0x14005b8e6
mov ebx, dword [rsp + 0xa8]
test ebx, ebx
jne 0x14005b8e6
mov rdx, qword [rsp + 0x98]
mov r8d, ebp
mov rcx, rsi
call sub.ntdll.dll_memcpy
xor ebx, ebx
test byte [rsp + 0x70], 1
je 0x14005b8fa
mov rcx, qword [rsp + 0x80]
call fcn.1400d4220
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14005b90d
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rsi, qword [rsp + 0x90]
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14005b94f
mov rdi, qword [rsp + 0x148]
call fcn.140023340
lea rdx, [rsp + 0x90]
mov rcx, rsi
mov r8, rdi
mov r9, rax
call fcn.1400454e0
mov rcx, qword [rsp + 0x90]
call fcn.140045470
mov rax, qword [rsp + 0x100]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14005b979
mov eax, ebx
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d58e0
int3