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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
xor r14d, r14d
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000b0017
mov eax, 0x88760389
jmp 0x1000b0216
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x48], eax
cmp eax, 0xffffffff
jne 0x1000b0041
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x1000b0216
cmp qword [rsp + 0x48], 0x20
mov rcx, rsi
jb 0x1000b0031
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
lea r8d, [r9 + 2]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1000b002e
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
cmp rax, r14
jne 0x1000b0098
mov edi, 0x8876038f
jmp 0x1000b0150
lea rdx, [0x100002840]
mov ecx, 0xa8
call fcn.10007b104
mov rbx, rax
cmp rax, r14
je 0x1000b013a
mov rax, qword [rsp + 0x48]
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], r14
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], r14
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x50], r14
mov qword [rbx + 0x58], r14
mov byte [rbx + 0x60], r14b
lea rcx, [0x10002e720]
mov qword [rbx], rcx
mov qword [rbx + 0x68], r14
mov qword [rbx + 0x70], r14
mov qword [rbx + 0x78], 0x64
mov qword [rbx + 0x80], r14
mov qword [rbx + 0x88], r14
mov qword [rbx + 0x90], r14
mov qword [rbx + 0x98], 0xa
mov qword [rbx + 0xa0], r14
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 8]
jmp 0x1000b013d
mov rbx, r14
cmp rbx, r14
jne 0x1000b0169
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, 0x8007000e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1000b0216
mov rcx, rbx
call fcn.1000af014
cmp eax, r14d
mov edi, eax
jge 0x1000b0183
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
jmp 0x1000b0162
mov rdx, qword [rbx + 0x30]
mov rax, qword [rdx + 0x10]
lea rcx, [rdx + 0x20]
lea rsi, [rdx + rax]
mov qword [rsp + 0x40], rcx
cmp rcx, rsi
jae 0x1000b01bb
lea rdx, [rsp + 0x40]
mov r8, rsi
mov rcx, rbx
call fcn.1000af0a8
cmp eax, r14d
mov edi, eax
jl 0x1000b01be
cmp qword [rsp + 0x40], rsi
jb 0x1000b019d
mov edi, r14d
cmp edi, r14d
jl 0x1000b0202
mov rcx, qword [rbx + 0x38]
mov rax, qword [rbx + 0x50]
lea r8, [rcx + rax]
mov qword [rsp + 0x40], rcx
mov rax, r8
sub rax, rcx
cmp rax, 8
jae 0x1000b01e7
mov edi, 0x8876038f
jmp 0x1000b0202
lea r9, [rbx + 0x88]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1000b04f8
cmp eax, r14d
mov edi, eax
jge 0x1000b0210
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x1000b0162
mov qword [r13], rbx
xor eax, eax
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret