Function at 0x10015b00
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4c8
mov r15, rcx
lea rcx, [rsp + 0xc0]
call fcn.10013140
mov r14, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xc8]
test rbx, rbx
je 0x10016166
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rbx
cmp rax, 4
jb 0x10015b90
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rbx]
je 0x10016019
cmp rcx, qword [rbx]
je 0x10016019
cmp rax, 0xf8
jae 0x10015c15
cmp word [rbx + 2], 0x3a
jne 0x10015bee
movzx eax, word [rbx + 4]
jmp 0x10015bbd
cmp rax, 3
je 0x10015bad
cmp rax, 2
je 0x10015bee
cmp rax, 1
jne 0x10015c15
cmp word [rbx], 0
jne 0x10015c15
jmp 0x10016019
cmp word [rbx + 2], 0x3a
jne 0x10015bee
movzx eax, word [rbx + 4]
test ax, ax
je 0x10015bdd
cmp ax, 0x2f
je 0x10015bcb
movzx eax, ax
cmp eax, 0x5c
jne 0x10015bee
movzx eax, word [rbx]
cmp eax, 0x2f
je 0x10015bf1
cmp eax, 0x5c
je 0x10015bf1
jmp 0x10016019
movzx eax, word [rbx]
cmp eax, 0x2f
je 0x10015bee
cmp eax, 0x5c
jne 0x10016019
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x10015bff
movzx eax, ax
cmp eax, 0x2f
jne 0x10015c15
movzx eax, word [rbx + 2]
cmp eax, 0x2f
je 0x10016019
cmp eax, 0x5c
je 0x10016019
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 2
mov qword [rsp + 0x88], 0
mov ebp, 0x200
mov eax, 2
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov edi, 0xffffffff
xor r15d, r15d
xor ebx, ebx
cmp rbp, 0x201
jae 0x10015ca0
jmp 0x10015c7f
jae 0x10015d67
cmp rbp, 0x201
jae 0x10015ca0
lea r13, [rsp + 0xc0]
mov esi, 0x200
mov r12, rbp
jmp 0x10015cf6
sub rbp, rbx
sub r15, rbx
cmp r15, rbp
jae 0x10015cd2
lea rcx, [rsp + 0x78]
mov rdx, rbx
mov r8, rbp
call fcn.10013580
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
mov r15, qword [rsp + 0x60]
cmp r15, rdi
mov ebx, 0xffffffff
cmovb rbx, r15
mov qword [rsp + 0x88], rbx
mov r13, qword [rsp + 0x58]
mov rsi, rbx
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x68]
mov edx, r12d
mov r8, r13
xor r9d, r9d
call sub.KERNEL32.dll_GetFullPathNameW
mov r14d, eax
test eax, eax
jne 0x10015d24
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x10015db2
mov ebp, r14d
cmp r12, rbp
jne 0x10015c70
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1001626f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovae r12, rax
mov rbp, r12
cmp rbp, 0x201
jb 0x10015c7f
jmp 0x10015ca0
cmp rsi, rbp
jb 0x10016289
mov qword [rsp + 0x48], 0
cmp r14d, 2
mov r15, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
jbe 0x10015dd8
movzx eax, word [r13 + 2]
cmp eax, 0x3a
jne 0x10015de4
cmp word [r13 + 4], 0x5c
jne 0x10015de4
mov r12d, 4
lea r14, [0x1003a270]
mov rbx, qword [rsp + 0x50]
jmp 0x10015e7e
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov r15, qword [rsp + 0x70]
cmp qword [rsp + 0x60], 0
jne 0x10015fd2
jmp 0x10015fe1
mov rbx, qword [rsp + 0x50]
je 0x10015e4a
jmp 0x10015e74
cmp r14d, 4
mov rbx, qword [rsp + 0x50]
jb 0x10015e4a
lea r14, str.Index_out_of_bounds
cmp word [r13], 0x5c
jne 0x10015e7b
cmp eax, 0x3f
je 0x10015e19
cmp eax, 0x5c
jne 0x10015e57
movzx eax, word [r13 + 4]
cmp eax, 0x2e
je 0x10015e2b
cmp eax, 0x3f
je 0x10015e21
jmp 0x10015e4a
cmp word [r13 + 4], 0x3f
jne 0x10015e4a
cmp word [r13 + 6], 0x5c
jne 0x10015e4a
jmp 0x10015e7b
cmp word [r13 + 6], 0x5c
jne 0x10015e4a
add rbp, 0xfffffffffffffffc
add r13, 8
mov r12d, 4
lea r14, [0x1003a270]
jmp 0x10015e7e
cmp word [r13], 0x5c
jne 0x10015e74
movzx eax, word [r13 + 2]
cmp ax, 0x5c
jne 0x10015e74
add rbp, 0xfffffffffffffffe
add r13, 4
mov r12d, 8
lea r14, [0x1003a278]
jmp 0x10015e7e
lea r14, str.Index_out_of_bounds
xor r12d, r12d
lea rsi, [r12 + rbp]
inc rsi
cmp rsi, rbx
jbe 0x10015f0e
lea rdx, [rsi + rsi]
test rbx, rbx
je 0x10015eb9
lea rax, [rbx + rbx]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 2
jmp 0x10015ec5
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0xa8]
lea r9, [rsp + 0x90]
mov r8d, 2
call fcn.100134f0
cmp qword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0xb0]
je 0x10015f3a
mov rdx, qword [rsp + 0xb8]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x1001629d
cmp r12, rbx
jbe 0x10015f33
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8, r12
call fcn.10013580
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
jmp 0x10015f49
mov rsi, rbx
xor ebx, ebx
jmp 0x10015f49
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
xor ebx, ebx
mov rdi, rcx
lea r8, [r12 + r12]
lea rcx, [rdi + rbx*2]
mov rdx, r14
call sub.ntdll.dll_memcpy
add rbx, r12
mov qword [rsp + 0x48], rbx
mov rax, rsi
sub rax, rbx
cmp rax, rbp
jae 0x10015f8b
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r8, rbp
call fcn.10013580
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r8, rbp
add r8, rbp
lea rcx, [rdi + rbx*2]
mov rdx, r13
call sub.ntdll.dll_memcpy
add rbx, rbp
mov qword [rsp + 0x48], rbx
cmp rbx, rsi
jne 0x10015fc1
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.10013430
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov word [rdi + rbx*2], 0
xor r14d, r14d
cmp qword [rsp + 0x60], 0
je 0x10015fe1
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.10008370
test r14, r14
je 0x10016006
cmp qword [rsp + 0x38], 0
je 0x10016166
mov rcx, qword [rsp + 0x40]
mov edx, 2
call fcn.10008370
jmp 0x10016166
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x10016166
mov rdi, r14
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
mov rsi, rax
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x10016067
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test rdi, rdi
je 0x10016079
mov edx, 2
mov rcx, rbx
call fcn.10008370
cmp rsi, 0xffffffffffffffff
je 0x10016166
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0xf0], 0
lea rdx, [rsp + 0xc0]
mov rcx, r14
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x10016189
test byte [rsp + 0xc1], 4
je 0x100160fa
mov qword [rsp + 0x90], 0
lea r8, [rsp + 0x90]
mov rcx, r14
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x10016189
mov r12, r15
mov r15d, dword [rsp + 0xe0]
mov ebx, dword [rsp + 0xe4]
test r14, r14
je 0x100161c0
mov qword [rsp + 0xc0], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
mov rcx, rax
mov rdx, r14
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x10016248
mov rsi, qword [rsp + 0xc0]
jmp 0x100161c2
mov rcx, r14
call fcn.10010250
mov qword [r15], 0
add rsp, 0x4c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, rax
call fcn.10010250
mov qword [r15], 0
mov rcx, r14
add rsp, 0x4c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
xor esi, esi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x10016236
mov rdi, rax
shl r15, 0x20
or r15, rbx
mov qword [rsp + 0x20], r15
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov rbx, rax
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
test rbx, rbx
je 0x10016236
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], r15
mov qword [r12], 1
jmp 0x10016262
mov qword [r12], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
jmp 0x10016262
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.10010250
mov qword [r12], 0
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
jmp 0x10016175
lea rcx, str.internal_error:_entered_unreachable_code_rustc_8bdcc62cb0362869f0e7b43a6ae4f96b953d3cbclibrary_alloc_srccollections_btree_navigate.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.10002f00
jmp 0x100162ae
lea r8, str.library_std_src_syswindowsmod.rs
mov rcx, rbp
mov rdx, rsi
call fcn.10002b20
jmp 0x100162ae
test rdx, rdx
jne 0x100162a9
call fcn.100019a0
jmp 0x100162ae
call fcn.100019f0
ud2