Function at 0x18002fcb0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.18004c900
test rdi, rdi
je 0x18002ff62
mov qword [rsp + 0x2c8], rbp
mov rcx, rdi
mov qword [rsp + 0x288], r12
mov qword [rsp + 0x280], r13
mov qword [rsp + 0x278], r14
mov qword [rsp + 0x270], r15
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rcx
mov r8, rdi
xor edx, edx
xor ecx, ecx
lea r9d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edi, edi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18002ff36
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rdi + 2]
mov rcx, r14
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r15, rax
test rax, rax
je 0x18002ff14
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [rdi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
je 0x18002ff14
mov r9, rax
mov byte [rsp + 0x20], 1
xor r8d, r8d
mov rdx, r14
call fcn.180007830
test al, al
je 0x18002fe89
movsxd rax, dword [rbp + 0x3c]
mov edx, 0x10b
add rax, rbp
movzx ecx, word [rax + 0x18]
cmp cx, dx
jne 0x18002fea6
mov ecx, dword [rax + 0xc0]
test ecx, ecx
je 0x18002fe89
mov edx, dword [rax + 0x34]
mov r8b, 1
add rdx, rcx
mov rcx, rbp
call sym.TitanEngine.dll_ConvertVAtoFileOffset
test rax, rax
je 0x18002fe89
mov eax, dword [rax + 0xc]
test eax, eax
je 0x18002fe89
mov edx, eax
mov r8b, 1
mov rcx, rbp
mov r13d, edi
call sym.TitanEngine.dll_ConvertVAtoFileOffset
test rax, rax
je 0x18002fe89
cmp qword [rax], rdi
je 0x18002fe6a
nop dword [rax]
test rbx, rbx
je 0x18002fe5f
mov rcx, qword [rax]
mov qword [rbx], rcx
add rbx, 8
add rax, 8
inc edi
cmp qword [rax], r13
jne 0x18002fe50
test rsi, rsi
je 0x18002fe71
mov dword [rsi], edi
mov r9, rbp
mov r8, r15
mov edx, r12d
mov rcx, r14
call fcn.18000dc30
mov al, 1
jmp 0x18002ff38
test rsi, rsi
je 0x18002fe90
mov dword [rsi], edi
mov r9, rbp
mov r8, r15
mov edx, r12d
mov rcx, r14
call fcn.18000dc30
jmp 0x18002ff36
mov edx, 0x20b
cmp cx, dx
jne 0x18002fe90
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x18002fe89
mov edx, ecx
mov r8b, 1
add rdx, qword [rax + 0x30]
mov rcx, rbp
call sym.TitanEngine.dll_ConvertVAtoFileOffset
test rax, rax
je 0x18002fe89
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x18002fe89
mov r8b, 1
mov rcx, rbp
mov r13, rdi
call sym.TitanEngine.dll_ConvertVAtoFileOffset
test rax, rax
je 0x18002fe89
cmp qword [rax], rdi
je 0x18002fe6a
test rbx, rbx
je 0x18002ff04
mov rcx, qword [rax]
mov qword [rbx], rcx
add rbx, 8
add rax, 8
inc edi
cmp qword [rax], r13
jne 0x18002fef5
jmp 0x18002fe6a
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18002ff36
test byte [rsp + 0x40], 2
jne 0x18002ff36
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov r15, qword [rsp + 0x270]
mov r14, qword [rsp + 0x278]
mov r13, qword [rsp + 0x280]
mov r12, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x2c8]
jmp 0x18002ff64
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180049ad0
add rsp, 0x290
pop rdi
pop rsi
pop rbx
ret