Function at 0x140011102
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov edi, r9d
mov rbx, r8
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.1400113f0
mov ebp, eax
test eax, eax
jne 0x14001119d
mov r12, qword [rsp + 0xc8]
mov r13d, dword [rsp + 0xc0]
lea eax, [rdi + r13]
lea rbp, [rsi + 0x28]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rbp
mov rdx, rax
call fcn.1400018b4
mov rcx, qword [rsi + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x1400111bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov ebp, 0x19
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140173230
mov eax, ebp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x20], 0
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14001126b
mov r14, rax
mov r12d, edi
mov eax, r13d
mov qword [rsp + 0x40], rax
test rbx, rbx
je 0x140011229
test r13d, r13d
je 0x140011229
lea rbp, [r14 + r12]
mov rcx, rbp
mov rdx, rbx
mov r8, qword [rsp + 0x40]
call fcn.1401e0580
xor eax, eax
mov rcx, qword [rbp + rax*8]
test rcx, rcx
je 0x140011220
sub rcx, rbx
mov qword [rbp + rax*8], rcx
inc rax
cmp rax, 0x40
jne 0x14001120e
mov qword [0x14027e918], r12
lea r8, [0x14027e918]
mov r9d, 8
mov rcx, rsi
call fcn.14001107a
mov qword [0x14027e918], 0
test eax, eax
je 0x14001127f
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
jmp 0x14001119d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov ebp, 0x1b
jmp 0x14001119d
mov rax, qword [rsp + 0x40]
mov qword [0x14027e920], rax
lea r8, [0x14027e920]
mov r9d, 8
mov rcx, rsi
call fcn.14001107a
mov qword [0x14027e920], 0
test eax, eax
mov rbx, qword [rsp + 0xc8]
je 0x1400112c6
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
jmp 0x14001119d
mov r12d, dword [rsi + 0x10]
mov rbp, qword [rsi]
mov ecx, 0x38
call fcn.140172d74
mov rbx, rax
mov r9, qword [rsi + 0x40]
mov qword [rsp + 0x20], r15
mov rcx, rax
mov rdx, rbp
mov r8d, r12d
call fcn.140028e24
lea rax, [rsp + 0x48]
mov qword [rax], rbx
lea rbp, [rsi + 0x38]
cmp rbp, rax
je 0x140011316
mov qword [rsp + 0x48], 0
mov rcx, rbp
mov rdx, rbx
call fcn.140010c40
lea rcx, [rsp + 0x48]
call fcn.140010c6c
mov rcx, qword [rbp]
mov rdx, r14
mov r8d, edi
mov r9d, 0x400
call fcn.140028f42
mov ebp, 4
test al, al
je 0x14001119d
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x48]
mov qword [rdi], rax
mov rbx, qword [rsi]
mov rbp, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 7
mov rcx, rax
mov rdx, rbp
mov r8, rbx
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400113d5
mov rax, qword [rsp + 0x48]
mov qword [0x14027e710], rax
lea r8, [0x14027e710]
mov r9d, 8
mov rcx, rsi
call fcn.14001107a
mov qword [0x14027e710], 0
test eax, eax
jne 0x140011254
mov rcx, rsi
call fcn.14000f8b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
jmp 0x14001119d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebp, 0x1a
jmp 0x14001119d