Function at 0x1400244f0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea r14, [rcx + 0x10]
mov rbx, rcx
mov rcx, qword [r14]
xor r15d, r15d
movzx ebp, r8b
mov rdi, rdx
test rcx, rcx
je 0x14002452c
jle 0x140024529
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r14], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140024541
jle 0x14002453d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], r15
mov rcx, qword [rbx]
test rcx, rcx
je 0x140024554
jle 0x140024551
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140024569
jle 0x140024565
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], r15
lea rsi, [rbx + 0xf8]
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r15
cmp rsi, rdi
je 0x140024596
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14002458a
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rsi
call fcn.1400023c0
mov byte [rbx + 0x1c], r15b
cmp qword [rdi + 0x18], 8
jb 0x1400245a4
mov rdi, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov edx, 0x120089
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx]
mov rdi, rax
cmp rax, rcx
je 0x1400245e7
test rcx, rcx
jle 0x1400245e1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rcx, rdi
test rcx, rcx
jle 0x140024723
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r15d
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rdi, rax
cmp rax, rcx
je 0x140024629
test rcx, rcx
jle 0x140024622
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, rdi
xor r9d, r9d
test rcx, rcx
jle 0x14002467d
xor r8d, r8d
mov byte [rbx + 0x18], r15b
lea edx, [r9 + 4]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, r14
je 0x140024673
mov rcx, qword [r14]
cmp rdi, rcx
je 0x1400246f4
test rcx, rcx
jle 0x14002466b
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r14], rdi
jmp 0x1400246f4
test rdi, rdi
jle 0x1400246f4
mov rcx, rdi
jmp 0x1400246ee
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x28], r15
mov byte [rbx + 0x18], 1
mov dword [rsp + 0x20], r15d
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rdi, rax
cmp rax, rcx
je 0x1400246b8
test rcx, rcx
jle 0x1400246b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, rdi
test rcx, rcx
jle 0x1400246f4
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rdx, [rsp + 0x70]
mov rcx, r14
mov qword [rsp + 0x70], rax
call fcn.140025e30
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jle 0x1400246f4
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [r14], r15
je 0x140024723
xor edx, edx
mov rcx, rbx
call fcn.140024840
test eax, eax
js 0x140024732
test bpl, bpl
jne 0x140024732
cmp qword [rsi + 0x18], 8
jb 0x140024716
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rbx
call fcn.140025910
jmp 0x140024732
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret