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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rsi, rdx
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x1800229e2
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0xc0], eax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r13, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1800229ba
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1800229ba
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xe0000000
lea r8d, [r14 + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
je 0x1800229a3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
mov dword [rsp + 0xc8], eax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [r14 + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r12, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x18002297b
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x18002297b
mov byte [rsp + 0x20], 1
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
call fcn.180007830
test al, al
je 0x180022968
movsxd rdx, dword [rbx + 0x3c]
add rdx, rbx
movzx eax, word [rdx + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x180022828
mov ecx, 0x20b
cmp ax, cx
jne 0x1800227fd
mov r15d, dword [rdx + 0x90]
add r15, qword [rdx + 0x30]
jmp 0x180022833
mov r9, rbx
mov r8, r13
mov edx, dword [rsp + 0xc0]
mov rcx, rdi
call fcn.18000dc30
mov r9, r14
mov r8, r12
mov edx, r15d
mov rcx, rsi
call fcn.18000dc30
jmp 0x1800229e2
mov r15d, dword [rdx + 0x80]
add r15d, dword [rdx + 0x34]
mov rdx, r15
mov rcx, rbx
call sym.TitanEngine.dll_GetPE32SectionNumberFromVA
mov dword [rsp + 0x40], eax
mov r8b, 1
mov rdx, r15
mov rcx, rbx
call sym.TitanEngine.dll_ConvertVAtoFileOffset
mov r15d, dword [rsp + 0x40]
test r15d, r15d
js 0x180022960
mov r8d, 0x2b
mov edx, r15d
mov rcx, r14
call sym.TitanEngine.dll_GetPE32DataFromMappedFile
add rax, r14
mov qword [rsp + 0x48], rax
mov r8d, 0x2b
mov edx, r15d
mov rcx, rbx
call sym.TitanEngine.dll_GetPE32DataFromMappedFile
add rax, rbx
mov qword [rsp + 0x40], rax
mov r8d, 0x2c
mov edx, r15d
mov rcx, r14
call sym.TitanEngine.dll_GetPE32DataFromMappedFile
nop
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.18004c130
xor edx, edx
lea r8d, [rdx + 7]
mov rcx, rbx
call sym.TitanEngine.dll_GetPE32DataFromMappedFile
mov r9d, eax
xor edx, edx
lea r8d, [rdx + 7]
mov rcx, r14
call sym.TitanEngine.dll_SetPE32DataForMappedFile
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, rbx
call sym.TitanEngine.dll_GetPE32DataFromMappedFile
mov r9d, eax
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, r14
call sym.TitanEngine.dll_SetPE32DataForMappedFile
mov r9, rbx
mov r8, r13
mov edx, dword [rsp + 0xc0]
mov rcx, rdi
call fcn.18000dc30
mov r9, r14
mov r8, r12
mov edx, dword [rsp + 0xc8]
mov rcx, rsi
call fcn.18000dc30
mov al, 1
jmp 0x1800229e4
mov r15d, dword [rsp + 0xc8]
mov r9, r14
mov r8, r12
mov edx, r15d
mov rcx, rsi
call fcn.18000dc30
jmp 0x1800229a3
lea rdx, [rsp + 0xc8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1800229a3
test byte [rsp + 0xc8], 2
jne 0x1800229a3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, rbx
mov r8, r13
mov edx, dword [rsp + 0xc0]
mov rcx, rdi
call fcn.18000dc30
jmp 0x1800229e2
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1800229e2
test byte [rsp + 0xc0], 2
jne 0x1800229e2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret