Function at 0x1400255e0
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 r12, rcx
lea rcx, [rsp + 0xc0]
call dbg.inner
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xc8]
test rdi, rdi
je 0x140025b02
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rax
cmp rax, 4
jb 0x140025675
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rdi]
je 0x140025b04
cmp rcx, qword [rdi]
je 0x140025b04
cmp rax, 0xf8
jae 0x1400256fa
cmp word [rdi + 2], 0x3a
jne 0x1400256d3
movzx eax, word [rdi + 4]
jmp 0x1400256a2
cmp rax, 3
je 0x140025692
cmp rax, 2
je 0x1400256d3
cmp rax, 1
jne 0x1400256fa
cmp word [rdi], 0
jne 0x1400256fa
jmp 0x140025b04
cmp word [rdi + 2], 0x3a
jne 0x1400256d3
movzx eax, word [rdi + 4]
test ax, ax
je 0x1400256c2
cmp ax, 0x2f
je 0x1400256b0
movzx eax, ax
cmp eax, 0x5c
jne 0x1400256d3
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x1400256d6
cmp eax, 0x5c
je 0x1400256d6
jmp 0x140025b04
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x1400256d3
cmp eax, 0x5c
jne 0x140025b04
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x1400256e4
movzx eax, ax
cmp eax, 0x2f
jne 0x1400256fa
movzx eax, word [rdi + 2]
cmp eax, 0x2f
je 0x140025b04
cmp eax, 0x5c
je 0x140025b04
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x68], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov r15d, 0x200
mov eax, 2
mov qword [rsp + 0x80], rax
xor edi, edi
xor r12d, r12d
xor ebp, ebp
cmp r15, 0x201
jae 0x140025780
jmp 0x14002575f
jae 0x14002583f
cmp r15, 0x201
jae 0x140025780
mov r14d, 0x200
lea rbx, [rsp + 0xc0]
mov rsi, r15
jmp 0x1400257d4
sub r15, rbp
sub r12, rbp
cmp r12, r15
jae 0x1400257ad
lea rcx, [rsp + 0x68]
mov rdx, rbp
mov r8, r15
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rax
mov rdi, qword [rsp + 0x70]
mov eax, 0xffffffff
cmp rdi, rax
mov ebp, 0xffffffff
cmovb rbp, rdi
mov qword [rsp + 0x78], rbp
mov r12, rdi
mov r14, rbp
mov rbx, qword [rsp + 0x80]
mov rsi, rbp
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x60]
mov edx, esi
mov r8, rbx
xor r9d, r9d
call sub.KERNEL32.dll_GetFullPathNameW
mov r13d, eax
test eax, eax
jne 0x140025801
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140025893
mov r15d, r13d
cmp rsi, r15
jne 0x140025750
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140025e26
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r15, rsi
cmp r15, 0x201
jb 0x14002575f
jmp 0x140025780
cmp r14, r15
jb 0x140025e40
mov qword [rsp + 0x50], 0
cmp r13d, 2
mov rsi, qword [rsp + 0x60]
jbe 0x1400258b8
movzx eax, word [rbx + 2]
cmp eax, 0x3a
mov rdi, qword [rsp + 0x58]
jne 0x1400258c4
cmp word [rbx + 4], 0x5c
jne 0x1400258c4
mov r13d, 4
lea r14, [0x140050028]
lea rbp, [r15 + r13]
inc rbp
cmp rbp, rdi
ja 0x140025965
jmp 0x1400259e7
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
mov r12, qword [rsp + 0xa0]
jne 0x140025abf
jmp 0x140025ad2
mov rdi, qword [rsp + 0x58]
je 0x140025915
jmp 0x14002594b
cmp r13d, 4
jb 0x140025915
lea r14, sym.core::ptr::drop_in_place_windows::core::error::Error_::h294572efbc43ce79
cmp word [rbx], 0x5c
jne 0x140025952
cmp eax, 0x3f
je 0x1400258f1
cmp eax, 0x5c
jne 0x14002591f
movzx eax, word [rbx + 4]
cmp eax, 0x2e
je 0x140025901
cmp eax, 0x3f
je 0x1400258f8
jmp 0x140025915
cmp word [rbx + 4], 0x3f
jne 0x140025915
cmp word [rbx + 6], 0x5c
jne 0x140025915
jmp 0x140025952
cmp word [rbx + 6], 0x5c
jne 0x140025915
add rbx, 8
add r15, 0xfffffffffffffffc
jmp 0x140025871
cmp word [rbx], 0x5c
jne 0x14002594b
movzx eax, word [rbx + 2]
cmp ax, 0x5c
jne 0x14002594b
add rbx, 4
add r15, 0xfffffffffffffffe
mov r13d, 8
lea r14, [0x140050030]
lea rbp, [r15 + r13]
inc rbp
cmp rbp, rdi
ja 0x140025965
jmp 0x1400259e7
lea r14, sym.core::ptr::drop_in_place_windows::core::error::Error_::h294572efbc43ce79
xor r13d, r13d
lea rbp, [r15 + r13]
inc rbp
cmp rbp, rdi
jbe 0x1400259e7
mov rdx, rbp
add rdx, rbp
test rdi, rdi
je 0x140025992
lea rax, [rdi + rdi]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
jmp 0x14002599e
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0xa8]
lea r9, [rsp + 0x88]
mov r8d, 2
call sym.alloc::raw_vec::finish_grow::h0ae52df17380d9e9
cmp qword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0xb0]
je 0x140025a14
mov rdx, qword [rsp + 0xb8]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x140025e54
cmp r13, rdi
jbe 0x140025a0c
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, r13
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
jmp 0x140025a24
xor r12d, r12d
mov rbp, rdi
jmp 0x140025a24
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rbp
xor r12d, r12d
mov rsi, rcx
mov r8, r13
add r8, r13
lea rcx, [rsi + r12*2]
mov rdx, r14
call sym.memcpy
add r12, r13
mov qword [rsp + 0x50], r12
mov rax, rbp
sub rax, r12
cmp rax, r15
jae 0x140025a68
lea rcx, [rsp + 0x40]
mov rdx, r12
mov r8, r15
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
lea r8, [r15 + r15]
lea rcx, [rsi + r12*2]
mov rdx, rbx
call sym.memcpy
add r12, r15
mov qword [rsp + 0x50], r12
cmp r12, rbp
jne 0x140025a9c
lea rcx, [rsp + 0x40]
mov rdx, rbp
call dbg.reserve_for_push<u16, alloc::alloc::Global>
mov rsi, qword [rsp + 0x40]
mov r12, qword [rsp + 0x50]
mov word [rsi + r12*2], 0
inc r12
mov qword [rsp + 0x50], r12
xor esi, esi
mov rdi, qword [rsp + 0x70]
test rdi, rdi
mov r12, qword [rsp + 0xa0]
je 0x140025ad2
mov r8, qword [rsp + 0x68]
mov rcx, qword [0x1400570e8]
xor edx, edx
call fcn.140042ef4
test rsi, rsi
je 0x140025cee
cmp qword [rsp + 0x48], 0
je 0x140025b02
mov r8, qword [rsp + 0x40]
mov rcx, qword [0x1400570e8]
xor edi, edi
xor edx, edx
call fcn.140042ef4
test rdi, rdi
jne 0x140025b0d
jmp 0x140025c69
xor edi, edi
test rdi, rdi
je 0x140025c69
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
mov rbx, rax
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140025b57
call sub.KERNEL32.dll_GetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
test rsi, rsi
je 0x140025b6d
mov rcx, qword [0x1400570e8]
xor edx, edx
mov r8, rdi
call fcn.140042ef4
cmp rbx, 0xffffffffffffffff
je 0x140025c66
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, rbp
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x140025cc6
test byte [rsp + 0xc1], 4
je 0x140025bee
mov qword [rsp + 0x88], 0
lea r8, [rsp + 0x88]
mov rcx, rbp
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x140025cc6
mov r15d, dword [rsp + 0xe0]
mov r14d, dword [rsp + 0xe4]
test rbp, rbp
je 0x140025d06
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, rbp
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140025d6c
mov rdi, qword [rsp + 0xc0]
xor eax, eax
test rax, rax
jne 0x140025d0f
jmp 0x140025d85
mov rsi, rbp
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140025cb9
lea rdi, [rsi - 1]
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
cmp qword [rax + 8], 0
je 0x140025ca8
mov r8, qword [rdi]
cmp qword [rax + 0x10], 0x11
jb 0x140025c9a
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400570e8]
xor edx, edx
call fcn.140042ef4
mov rcx, qword [0x1400570e8]
xor edx, edx
mov r8, rdi
call fcn.140042ef4
mov qword [r12], 0
jmp 0x140025e11
call sub.KERNEL32.dll_GetLastError
mov qword [r12], 0
mov rcx, rbp
add rsp, 0x4c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
test rdi, rdi
jne 0x140025b0d
jmp 0x140025c69
xor eax, eax
xor edi, edi
test rax, rax
je 0x140025d85
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x140025d5f
lea rbx, [rdi - 1]
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
call qword [rax]
mov rax, qword [rdi + 7]
cmp qword [rax + 8], 0
je 0x140025d4e
mov r8, qword [rbx]
cmp qword [rax + 0x10], 0x11
jb 0x140025d40
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400570e8]
xor edx, edx
call fcn.140042ef4
mov rcx, qword [0x1400570e8]
xor edx, edx
mov r8, rbx
call fcn.140042ef4
mov qword [r12], 0
jmp 0x140025e09
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov eax, 1
test rax, rax
jne 0x140025d0f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x140025df9
mov rbx, rax
shl r15, 0x20
or r15, r14
mov qword [rsp + 0x20], r15
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r14, rax
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
test r14, r14
je 0x140025df9
mov qword [r12 + 8], rdi
mov qword [r12 + 0x10], r14
mov qword [r12 + 0x18], r15
mov qword [r12], 1
jmp 0x140025e09
mov qword [r12], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
mov rcx, rbp
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x4c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14004e91b]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x140025e65
lea r8, str.library_std_src_syswindowsmod.rs
mov rcx, r15
mov rdx, r14
call dbg.slice_end_index_len_fail
jmp 0x140025e65
test rdx, rdx
jne 0x140025e60
call dbg.capacity_overflow
jmp 0x140025e65
call dbg.handle_alloc_error
ud2