Function at 0x18002b900
Capabilities:
Copy file
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4c0
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov qword [rsp + 0x50], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x2a0]
call fcn.18004c900
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x90]
call fcn.18004c900
cmp byte [0x180081330], sil
je 0x18002b99e
lea rcx, [rsp + 0x90]
call fcn.18000d050
test al, al
je 0x18002b99e
lea r8, [rsp + 0x2a0]
mov rdx, rbx
lea rcx, [rsp + 0x90]
call fcn.18000d3f0
test al, al
jne 0x18002b9c4
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.18004c900
mov rdx, rbx
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov ebx, 1
mov dword [rsp + 0x48], ebx
mov r8d, ebx
mov edx, 0xe0000000
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x18002bcc4
mov qword [rsp + 0x80], rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [rbx + 0x3f]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x18002bca2
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x18002bca2
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x20], bl
mov r9, rax
xor r8d, r8d
mov rdx, r13
call fcn.180007830
test al, al
je 0x18002bc8f
movsxd rsi, dword [r14 + 0x3c]
add rsi, r14
movzx eax, word [rsi + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x18002bab2
xor ebx, ebx
mov dword [rsp + 0x48], ebx
jmp 0x18002bac0
mov ecx, 0x20b
cmp ax, cx
jne 0x18002bc8f
test ebx, ebx
jne 0x18002bafd
mov ecx, dword [rsi + 0x34]
cmp ecx, r12d
jne 0x18002baf3
mov r9, r14
mov r8, rdi
mov edx, r15d
mov rcx, r13
call fcn.18000dc30
mov dl, 1
lea rcx, [rsp + 0x90]
call fcn.18000d220
mov al, 1
jmp 0x18002bcd6
mov edx, dword [rsi + 0xa0]
add edx, ecx
jmp 0x18002bb0f
mov rax, qword [rsi + 0x30]
cmp rax, r12
je 0x18002bacc
mov edx, dword [rsi + 0xb0]
add rdx, rax
mov r8b, 1
mov rcx, r14
call sym.TitanEngine.dll_ConvertVAtoFileOffset
mov rbx, rax
mov edx, 0x8000
mov ecx, 0x3000
cmp dword [rbx], 0
je 0x18002bbf4
mov r15d, dword [rbx]
mov edi, dword [rbx + 4]
add edi, 0xfffffff8
mov dword [rsp + 0x44], edi
add rbx, 8
mov qword [rsp + 0x58], rbx
test edi, edi
je 0x18002bbef
movzx eax, word [rbx]
test ax, ax
je 0x18002bbda
jns 0x18002bb91
xor ax, dx
movzx ecx, ax
mov word [rsp + 0x40], cx
lea edx, [r15 + rcx]
add rdx, qword [rsi + 0x30]
mov r8b, 1
mov rcx, r14
call sym.TitanEngine.dll_ConvertVAtoFileOffset
mov rcx, r12
sub rcx, qword [rsi + 0x30]
add rcx, qword [rax]
mov qword [rsp + 0x88], rcx
mov qword [rax], rcx
jmp 0x18002bbd0
test cx, ax
je 0x18002bbda
xor ax, cx
movzx ecx, ax
mov word [rsp + 0x40], cx
lea edx, [r15 + rcx]
mov eax, dword [rsi + 0x34]
add rdx, rax
mov r8b, 1
mov rcx, r14
call sym.TitanEngine.dll_ConvertVAtoFileOffset
mov ecx, dword [rax]
mov dword [rsp + 0x50], ecx
mov ecx, dword [rsi + 0x34]
mov rdx, r12
sub rdx, rcx
add qword [rsp + 0x50], rdx
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
mov edx, 0x8000
mov ecx, 0x3000
add edi, 0xfffffffe
mov dword [rsp + 0x44], edi
add rbx, 2
mov qword [rsp + 0x58], rbx
jmp 0x18002bb46
jmp 0x18002bb27
cmp dword [rsp + 0x48], 0
jne 0x18002bc01
mov dword [rsi + 0x34], r12d
jmp 0x18002bc05
mov qword [rsi + 0x30], r12
mov r9, r14
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x4c]
mov rcx, r13
call fcn.18000dc30
cmp word [rsp + 0x90], 0
je 0x18002bc5d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dl, 1
lea rcx, [rsp + 0x90]
test eax, eax
je 0x18002bc54
call fcn.18000d220
mov al, 1
jmp 0x18002bcd6
call fcn.18000d220
xor al, al
jmp 0x18002bcd6
mov al, 1
jmp 0x18002bcd6
mov r9, r14
mov r8, rdi
mov edx, r15d
mov rcx, r13
call fcn.18000dc30
jmp 0x18002bcc4
lea rdx, [rsp + 0x44]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18002bcc4
test byte [rsp + 0x44], 2
jne 0x18002bcc4
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, bl
lea rcx, [rsp + 0x90]
call fcn.18000d220
xor al, al
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.180049ad0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret