Function at 0x1000b022c
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, 0x170
mov rax, qword [0x100190170]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r13, r8
mov r12, rdx
mov rbx, rcx
call fcn.10007b088
xor r14d, r14d
cmp eax, r14d
jne 0x1000b0296
lea rcx, [rsp + 0x50]
mov r8d, 0x104
mov rdx, rbx
call sub.msvcrt.dll_wcstombs
lea rcx, [rsp + 0x50]
mov r8, r13
mov rdx, r12
mov byte [rsp + 0x153], r14b
call fcn.1000affc8
jmp 0x1000b04cf
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000b02d0
mov eax, 0x88760389
jmp 0x1000b04cf
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x48], eax
cmp eax, 0xffffffff
jne 0x1000b02fa
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x1000b04cf
cmp qword [rsp + 0x48], 0x20
mov rcx, rsi
jb 0x1000b02ea
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 0x1000b02e7
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 0x1000b0351
mov edi, 0x8876038f
jmp 0x1000b0409
lea rdx, [0x100002840]
mov ecx, 0xa8
call fcn.10007b104
mov rbx, rax
cmp rax, r14
je 0x1000b03f3
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 0x1000b03f6
mov rbx, r14
cmp rbx, r14
jne 0x1000b0422
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 0x1000b04cf
mov rcx, rbx
call fcn.1000af014
cmp eax, r14d
mov edi, eax
jge 0x1000b043c
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
jmp 0x1000b041b
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 0x1000b0474
lea rdx, [rsp + 0x40]
mov r8, rsi
mov rcx, rbx
call fcn.1000af0a8
cmp eax, r14d
mov edi, eax
jl 0x1000b0477
cmp qword [rsp + 0x40], rsi
jb 0x1000b0456
mov edi, r14d
cmp edi, r14d
jl 0x1000b04bb
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 0x1000b04a0
mov edi, 0x8876038f
jmp 0x1000b04bb
lea r9, [rbx + 0x88]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1000b04f8
cmp eax, r14d
mov edi, eax
jge 0x1000b04c9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x1000b041b
mov qword [r13], rbx
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.10017a260
add rsp, 0x170
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret