Function at 0x1400219c0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
add rcx, 0x18
cmp qword [rcx + 0x18], 8
jb 0x1400219db
mov rcx, qword [rcx]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x120089
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
test rax, rax
je 0x140021a94
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], edi
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rbx + 0x48], rax
test rax, rax
je 0x140021a3c
mov byte [rbx + 0x10], dil
jmp 0x140021a65
mov rcx, qword [rbx + 8]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov byte [rbx + 0x10], 1
mov dword [rsp + 0x20], edi
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x48], rax
test rax, rax
je 0x140021a7d
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea edx, [r8 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx], rax
cmp qword [rbx], rdi
je 0x140021a94
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp 0x140021ab0
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x810]
sub rsp, 0x910
mov rbx, rcx
xor r13d, r13d
mov ecx, 8
mov rax, qword gs:[0x58]
mov rsi, qword [rax]
mov eax, dword [rsi + rcx]
cmp dword [0x140054360], eax
jle 0x140021b29
lea rcx, [0x140054360]
call fcn.14003a1f0
cmp dword [0x140054360], 0xffffffff
jne 0x140021b29
call fcn.14001d9c0
lea rcx, [0x14003e140]
call fcn.14003a4a0
nop
lea rcx, [0x140054360]
call fcn.14003a184
mov rdi, qword [0x140054548]
lea rax, str.Parsing_DLL
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0xb
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov eax, dword [rdi + 0x40]
cmp eax, 2
setle r15b
movzx r14d, byte [rdi + 0xd8]
jle 0x140021b6f
test r14b, r14b
je 0x140021c12
lea rcx, [rdi + 8]
cmp qword [rdi + 0x20], 0x10
jb 0x140021b7e
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x58], rcx
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x60], rax
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 2
mov qword [rbp - 0x38], rax
mov ecx, 0x18
mov eax, dword [rcx + rsi]
mov r12d, 0x10
test al, 1
jne 0x140021bcf
or eax, 1
mov dword [rcx + rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
lea rcx, [rsi + r12]
mov qword [rcx], rax
jmp 0x140021bd3
lea rcx, [r12 + rsi]
mov rax, qword [rcx]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x18], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rbp - 8], xmm1
movups xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp], xmm0
movzx r9d, r14b
movzx r8d, r15b
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1400017b0
mov rax, qword [rbx]
test rax, rax
je 0x140021eb8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021ed3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rbx + 0x70], rcx
mov qword [rbx + 0x78], rcx
lea r15, [rbx + 0x80]
lea r12, [rbx + 0x90]
mov eax, 0x20b
mov rdx, rcx
cmp word [rcx + 0x18], ax
jne 0x140021c68
mov byte [rbx + 0x60], 1
mov rax, qword [rcx + 0x30]
lea rdi, [rcx + 0x108]
jmp 0x140021c76
mov byte [rbx + 0x60], 0
mov eax, dword [rcx + 0x34]
lea rdi, [rcx + 0xf8]
mov qword [r15], rax
mov eax, dword [rcx + 0x50]
mov qword [r12], rax
mov eax, dword [rcx + 0x54]
mov qword [rbx + 0x98], rax
mov eax, dword [rcx + 0x28]
mov qword [rbx + 0x88], rax
movzx eax, word [rcx + 0x5c]
mov dword [rbx + 0xa0], eax
mov eax, 0x5e
movzx eax, word [rax + rdx]
mov dword [rbx + 0xa4], eax
mov esi, r13d
cmp r13w, word [rcx + 6]
jae 0x140021d13
nop word [rax + rax]
mov rdx, qword [rbx + 0xb0]
cmp rdx, qword [rbx + 0xb8]
je 0x140021cf2
movups xmm0, xmmword [rdi]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rdi + 0x20]
movsd qword [rdx + 0x20], xmm0
add qword [rbx + 0xb0], 0x28
jmp 0x140021d01
mov r8, rdi
lea rcx, [rbx + 0xa8]
call fcn.140028940
inc esi
add rdi, 0x28
mov rax, qword [rbx + 0x70]
movzx ecx, word [rax + 6]
cmp esi, ecx
jl 0x140021cc0
lea rax, [0x140044704]
lea rdi, [0x140044708]
cmp byte [rbx + 0x60], 0
cmovne rdi, rax
add rbx, 0x18
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x140021d4c
mov rbx, qword [rbx]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x800
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140021d90
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x58]
call fcn.14001d870
nop
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rax, qword [rsp + 0x58]
mov qword [rbp + 0x858], rax
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, 8
mov eax, dword [rax + rdx]
cmp dword [0x140054360], eax
jle 0x140021e10
lea rcx, [0x140054360]
call fcn.14003a1f0
cmp dword [0x140054360], 0xffffffff
jne 0x140021e10
call fcn.14001d9c0
lea rcx, [0x14003e140]
call fcn.14003a4a0
nop
lea rcx, [0x140054360]
call fcn.14003a184
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
lea rax, str.Image____Parsed_n_tImage_Base:_0x:X_n_tImage_Size:_0x:X_n_tType:_
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0x43
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x80], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rbp - 0x70], xmm1
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
lea rax, [rbp + 0x858]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
lea rdx, [rbp - 0x80]
mov rcx, qword [0x140054548]
call fcn.1400296a0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140021eb6
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021eb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021eb1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a138
mov al, 1
mov rbx, qword [rsp + 0x960]
add rsp, 0x910
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx + 0x50]
add rcx, 0xf0
call fcn.140001150
mov dword [rax], 0x700004
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [rbx + 0x50]
add rcx, 0xf0
call fcn.140001150
mov dword [rax + 4], edx
mov rcx, qword [rbx + 0x50]
add rcx, 0xf0
call fcn.140001150
mov dword [rax + 8], r13d
mov rcx, qword [rbx + 0x50]
add rcx, 0xf0
call fcn.140001150
mov dword [rax + 0x41c], 0x7c
mov rcx, qword [rbx + 0x50]
add rcx, 0xf0
call fcn.140001150
lea rcx, [rax + 0xc]
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbx + 0x50]
add rcx, 0xf0
call fcn.140001150
lea rcx, [rax + 0x214]
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x5c
lea rcx, str.C:UserscharhDocumentsShadeCodeThingDontTouchOrElseHeliosV3InjectorMappingMapping.cpp
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rcx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdi, eax
add rdi, rdi
mov edx, 0x5c
lea rcx, str.C:UserscharhDocumentsShadeCodeThingDontTouchOrElseHeliosV3InjectorMappingMapping.cpp
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rdx, [rax + 2]
mov rcx, qword [rbx + 0x50]
add rcx, 0xf0
call fcn.140001150
lea rcx, [rax + 0xc]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, str.mapping::MappedDLL::Parse
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
add r8, r8
mov rcx, qword [rbx + 0x50]
add rcx, 0xf0
call fcn.140001150
lea rcx, [rax + 0x214]
lea rdx, str.mapping::MappedDLL::Parse
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbx + 0x50]
add rdx, 0xf0
lea rcx, [rbp + 0x858]
call fcn.1400281d0
mov rcx, rax
call fcn.140001010
int3