Function at 0x1800211a0
Capabilities:
Get file size
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x360
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov r12, rdx
mov r15, rcx
mov qword [rsp + 0x50], rdx
xor dil, dil
mov byte [rsp + 0x40], dil
xor r14b, r14b
mov byte [rsp + 0x41], dil
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rsi, rax
mov qword [rsp + 0x60], rax
xor edx, edx
mov r8d, 0x228
lea rcx, [rsp + 0x110]
call fcn.18004c900
mov rcx, r15
call sym.TitanEngine.dll_LibrarianGetLibraryInfoEx
mov qword [rsp + 0x58], r12
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], rcx
test rax, rax
jne 0x18002135e
mov qword [rsp + 0x118], r15
mov r9d, 0x104
lea r8, [rsp + 0x234]
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
mov r9d, 0x104
lea r8, [rsp + 0x130]
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x110], rax
cmp rax, 0xffffffffffffffff
je 0x180021902
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x120], rax
test rax, rax
je 0x1800218f4
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x128], rax
test rax, rax
jne 0x180021357
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x120]
jmp 0x1800218fc
mov byte [rsp + 0x41], 1
jmp 0x180021376
mov r8d, 0x228
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.18004c130
xor ebx, ebx
xor edx, edx
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x44], eax
mov r9d, 0x18
lea r8, [rsp + 0x80]
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
nop
mov rdx, qword [rsp + 0x128]
movsxd r15, dword [rdx + 0x3c]
add r15, rdx
mov qword [rsp + 0x68], r15
mov r13, r15
mov qword [rsp + 0x70], r15
movzx eax, word [r15 + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x1800213da
xor dil, dil
mov byte [rsp + 0x40], dil
jmp 0x1800213f6
mov ecx, 0x20b
cmp ax, cx
jne 0x1800213ee
mov dil, 1
mov byte [rsp + 0x40], dil
jmp 0x1800213f6
mov r14b, 1
mov byte [rsp + 0x42], r14b
jmp 0x18002141b
test r14b, r14b
jne 0x1800218cd
test dil, dil
jne 0x180021682
mov eax, dword [r15 + 0x78]
test eax, eax
je 0x180021678
mov r9d, eax
mov r8d, dword [r15 + 0x34]
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov edi, dword [rsp + 0x44]
mov edx, edi
mov rcx, qword [rsp + 0x128]
call sym.TitanEngine.dll_ConvertVAtoFileOffsetEx
mov r13, rax
test rax, rax
je 0x180021678
mov r9d, dword [rax + 0x1c]
mov r8d, dword [r15 + 0x34]
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov edx, edi
mov rcx, qword [rsp + 0x128]
call sym.TitanEngine.dll_ConvertVAtoFileOffsetEx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov r8, qword [rsp + 0x118]
nop dword [rax + rax]
cmp ebx, dword [r13 + 0x14]
jae 0x180021678
mov ecx, ebx
lea r14, [rax + rcx*4]
mov edx, dword [r14]
add rdx, r8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xe
lea r8, [rsp + 0x340]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180021660
movzx eax, byte [rsp + 0x340]
add al, 0x18
cmp al, 1
ja 0x180021660
mov edx, dword [r14]
add rdx, qword [rsp + 0x118]
xor r8d, r8d
mov rcx, rsi
call sym.TitanEngine.dll_GetJumpDestinationEx
mov r8, qword [rsp + 0x118]
cmp rax, r8
jb 0x180021668
mov ecx, dword [rsp + 0x88]
add rcx, r8
cmp rax, rcx
ja 0x180021668
test r12, r12
je 0x180021668
mov ecx, 3
cmp byte [rsp + 0x340], 0xe9
mov edx, 1
cmove ecx, edx
mov dword [rsp + 0xa2], 5
mov byte [rsp + 0xa1], cl
mov byte [rsp + 0xde], dl
mov qword [rsp + 0xae], rax
mov eax, dword [r14]
add rax, r8
mov qword [rsp + 0xa6], rax
mov r9d, dword [r14]
mov r8d, dword [r15 + 0x34]
mov byte [rsp + 0x28], dl
mov byte [rsp + 0x20], dl
mov edx, edi
mov rcx, qword [rsp + 0x128]
call sym.TitanEngine.dll_ConvertVAtoFileOffsetEx
mov rdi, rax
xor eax, eax
mov qword [rsp + 0xb6], rax
mov dword [rsp + 0xbe], eax
mov word [rsp + 0xc2], ax
mov r8d, dword [rsp + 0xa2]
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0xb6]
call fcn.18004c130
xor eax, eax
mov qword [rsp + 0xc4], rax
mov dword [rsp + 0xcc], eax
mov word [rsp + 0xd0], ax
mov r8d, dword [rsp + 0xa2]
mov rdx, rdi
lea rcx, [rsp + 0xc4]
call fcn.18004c130
mov ecx, dword [r15 + 0x34]
mov edx, dword [r14]
add rdx, rcx
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0xa2]
lea r8, [rsp + 0xc4]
mov rcx, qword [rsp + 0x128]
call sym.TitanEngine.dll_RelocaterRelocateMemoryBlock
mov r9d, dword [rsp + 0x88]
lea r8, [rsp + 0x110]
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call qword [rsp + 0x58]
test al, al
je 0x180021678
mov edi, dword [rsp + 0x44]
mov r8, qword [rsp + 0x118]
inc ebx
mov dword [rsp + 0x48], ebx
mov rax, qword [rsp + 0x50]
jmp 0x1800214a0
jmp 0x1800218cd
mov eax, dword [r13 + 0x88]
test eax, eax
je 0x1800218cb
mov r9d, eax
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r8, qword [r13 + 0x30]
mov edi, dword [rsp + 0x44]
mov edx, edi
mov rcx, qword [rsp + 0x128]
call sym.TitanEngine.dll_ConvertVAtoFileOffsetEx
mov r15, rax
test rax, rax
je 0x1800218cb
mov r9d, dword [rax + 0x1c]
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r8, qword [r13 + 0x30]
mov edx, edi
mov rcx, qword [rsp + 0x128]
call sym.TitanEngine.dll_ConvertVAtoFileOffsetEx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov r8, qword [rsp + 0x118]
cmp ebx, dword [r15 + 0x14]
jae 0x1800218cb
mov ecx, ebx
lea r14, [rax + rcx*4]
mov edx, dword [r14]
add rdx, r8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xe
lea r8, [rsp + 0x340]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800218b3
movzx eax, byte [rsp + 0x340]
add al, 0x18
cmp al, 1
ja 0x1800218b3
mov edx, dword [r14]
add rdx, qword [rsp + 0x118]
xor r8d, r8d
mov rcx, rsi
call sym.TitanEngine.dll_GetJumpDestinationEx
mov r8, qword [rsp + 0x118]
cmp rax, r8
jb 0x1800218bb
mov ecx, dword [rsp + 0x88]
add rcx, r8
cmp rax, rcx
ja 0x1800218bb
test r12, r12
je 0x1800218bb
mov ecx, 3
cmp byte [rsp + 0x340], 0xe9
mov edx, 1
cmove ecx, edx
mov dword [rsp + 0xa2], 5
mov byte [rsp + 0xa1], cl
mov byte [rsp + 0xde], dl
mov qword [rsp + 0xae], rax
mov eax, dword [r14]
add rax, r8
mov qword [rsp + 0xa6], rax
mov r9d, dword [r14]
mov byte [rsp + 0x28], dl
mov byte [rsp + 0x20], dl
mov r8, qword [r13 + 0x30]
mov edx, edi
mov rcx, qword [rsp + 0x128]
call sym.TitanEngine.dll_ConvertVAtoFileOffsetEx
mov rdi, rax
xor eax, eax
mov qword [rsp + 0xb6], rax
mov dword [rsp + 0xbe], eax
mov word [rsp + 0xc2], ax
mov r8d, dword [rsp + 0xa2]
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0xb6]
call fcn.18004c130
xor eax, eax
mov qword [rsp + 0xc4], rax
mov dword [rsp + 0xcc], eax
mov word [rsp + 0xd0], ax
mov r8d, dword [rsp + 0xa2]
mov rdx, rdi
lea rcx, [rsp + 0xc4]
call fcn.18004c130
mov rcx, qword [r13 + 0x30]
mov edx, dword [r14]
add rdx, rcx
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0xa2]
lea r8, [rsp + 0xc4]
mov rcx, qword [rsp + 0x128]
call sym.TitanEngine.dll_RelocaterRelocateMemoryBlock
mov r9d, dword [rsp + 0x88]
lea r8, [rsp + 0x110]
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call qword [rsp + 0x58]
test al, al
je 0x1800218cb
mov edi, dword [rsp + 0x44]
mov r8, qword [rsp + 0x118]
inc ebx
mov dword [rsp + 0x48], ebx
mov rax, qword [rsp + 0x50]
jmp 0x1800216f3
jmp 0x1800218cd
cmp byte [rsp + 0x41], 0
je 0x180021902
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x180021902
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.180049ad0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret