Function at 0x140089a00
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4e8
mov r13, rcx
movabs rsi, 0x8000000000000000
lea rcx, [rsp + 0xe8]
call fcn.140085e60
mov r15, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xf0]
cmp r15, rsi
je 0x140089ff0
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rax
cmp rax, 3
jbe 0x140089a9b
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rdi]
je 0x140089e97
cmp rcx, qword [rdi]
je 0x140089e97
cmp rax, 0xf8
jae 0x140089b0b
cmp word [rdi + 2], 0x3a
jne 0x140089ae4
movzx eax, word [rdi + 4]
jmp 0x140089ac2
je 0x140089aae
cmp rax, 1
jne 0x140089ae2
cmp word [rdi], 0
jne 0x140089b0b
jmp 0x140089e97
cmp word [rdi + 2], 0x3a
jne 0x140089ae4
movzx eax, word [rdi + 4]
test ax, ax
je 0x14008a146
cmp ax, 0x2f
je 0x140089ad0
movzx eax, ax
cmp eax, 0x5c
jne 0x140089ae4
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x140089ae7
cmp eax, 0x5c
je 0x140089ae7
jmp 0x140089e97
jbe 0x140089b0b
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x140089af5
movzx eax, ax
cmp eax, 0x2f
jne 0x140089b0b
movzx eax, word [rdi + 2]
cmp eax, 0x2f
je 0x140089e97
cmp eax, 0x5c
je 0x140089e97
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 2
mov qword [rsp + 0x68], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x78], rax
xor r15d, r15d
mov r14d, 0xffffffff
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140089b90
jmp 0x140089b6f
jae 0x140089c4a
cmp r8, 0x201
jae 0x140089b90
mov r13d, 0x200
lea rbx, [rsp + 0xe8]
mov rbp, r8
jmp 0x140089bd7
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140089bb7
lea rcx, [rsp + 0x58]
mov rdx, r12
call fcn.1400862f0
mov r15, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
cmp r15, r14
mov r12d, 0xffffffff
cmovb r12, r15
mov qword [rsp + 0x68], r12
mov rdi, r15
mov r13, r12
mov rbx, qword [rsp + 0x78]
mov rbp, r12
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x80]
mov edx, ebp
mov r8, rbx
xor r9d, r9d
call sub.KERNEL32.dll_GetFullPathNameW
mov esi, eax
test eax, eax
jne 0x140089c06
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140089c87
mov r8d, esi
cmp rbp, r8
jne 0x140089b60
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14008a170
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
mov r14d, 0xffffffff
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x140089b6f
jmp 0x140089b90
cmp r13, r8
jb 0x14008a18a
cmp esi, 2
mov rdi, qword [rsp + 0x80]
jbe 0x140089cd2
movzx eax, word [rbx + 2]
cmp eax, 0x3a
mov r13, qword [rsp + 0x70]
jne 0x140089cde
cmp word [rbx + 4], 0x5c
jne 0x140089cde
lea r15, [0x1400ffea0]
mov r14d, 4
jmp 0x140089d17
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
cmp qword [rsp + 0x58], 0
je 0x140089ca9
mov rcx, qword [rsp + 0x60]
mov edx, 2
call fcn.140004ab0
or rdi, 2
cmp qword [rsp + 0x40], 0
mov r13, qword [rsp + 0x70]
je 0x140089ff0
mov rcx, qword [rsp + 0x48]
mov edx, 2
call fcn.140004ab0
jmp 0x140089ff0
mov r13, qword [rsp + 0x70]
jne 0x140089d0d
movzx ecx, word [rbx]
jmp 0x140089ce6
movzx ecx, word [rbx]
cmp esi, 3
jne 0x140089d59
cmp cx, 0x5c
jne 0x140089d0d
movzx eax, word [rbx + 2]
cmp ax, 0x5c
jne 0x140089d0d
add r8, 0xfffffffffffffffe
add rbx, 4
lea r15, [0x1400ffea8]
mov r14d, 8
jmp 0x140089d17
lea r15, str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
xor r14d, r14d
lea r12, [r8 + r14]
inc r12
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
jae 0x140089d4e
lea rax, [r12 + r12]
mov rsi, r8
test rcx, rcx
je 0x140089d9e
add rcx, rcx
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xb0], rcx
mov ecx, 2
jmp 0x140089da0
mov rsi, r8
mov r12, rcx
jmp 0x140089de6
lea r15, str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
cmp cx, 0x5c
jne 0x140089d14
cmp eax, 0x3f
je 0x140089d14
cmp eax, 0x5c
jne 0x140089cf0
movzx eax, word [rbx + 4]
cmp eax, 0x3f
je 0x14008a160
cmp eax, 0x2e
jne 0x140089cf6
cmp word [rbx + 6], 0x5c
jne 0x140089cf6
add r8, 0xfffffffffffffffc
add rbx, 8
jmp 0x140089c75
xor ecx, ecx
mov qword [rsp + 0xa8], rcx
lea rcx, [rsp + 0x88]
lea r9, [rsp + 0xa0]
mov edx, 2
mov r8, rax
call fcn.140086260
cmp qword [rsp + 0x88], 0
jne 0x14008a1a1
mov rdi, qword [rsp + 0x90]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
lea r8d, [r14 + r14]
mov rcx, rdi
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x50], r14
mov rax, r12
sub rax, r14
cmp rax, rsi
jae 0x140089e2d
lea rcx, [rsp + 0x40]
mov rdx, r14
mov rdi, rsi
mov r8, rsi
call fcn.1400862f0
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov rsi, rdi
mov rdi, rax
lea r8, [rsi + rsi]
lea rcx, [rdi + r14*2]
mov rdx, rbx
call sub.msvcrt.dll_memcpy
add r14, rsi
mov qword [rsp + 0x50], r14
cmp r14, r12
jne 0x140089e61
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.1400861b0
mov rdi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov word [rdi + r14*2], 0
cmp qword [rsp + 0x58], 0
je 0x140089e7f
mov rcx, qword [rsp + 0x60]
mov edx, 2
call fcn.140004ab0
mov r15, qword [rsp + 0x40]
movabs rax, 0x8000000000000000
cmp r15, rax
je 0x140089ff0
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
cmp rax, 0xffffffffffffffff
je 0x140089fcc
mov rbx, rax
test r15, r15
je 0x140089ee5
mov edx, 2
mov rcx, rdi
call fcn.140004ab0
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xd0], 0
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x14008a02d
test dword [rsp + 0xa0], 0x400
je 0x140089f5f
mov qword [rsp + 0x88], 0
lea r8, [rsp + 0x88]
mov rcx, rbx
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14008a02d
mov r15d, dword [rsp + 0xc0]
mov r14d, dword [rsp + 0xc4]
test rbx, rbx
je 0x14008a07e
mov qword [rsp + 0xa0], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov rcx, rax
mov rdx, rbx
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14008a103
mov rdi, qword [rsp + 0xa0]
jmp 0x14008a080
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r15, r15
je 0x140089fed
mov edx, 2
mov rcx, rdi
call fcn.140004ab0
mov rdi, rsi
mov qword [rsp + 0xd8], 1
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0xe0], rdi
call fcn.140084e80
mov qword [r13], 0
add rsp, 0x4e8
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
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe8], 2
call fcn.140084e80
mov qword [r13], 0
mov rcx, rbx
add rsp, 0x4e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
xor edi, edi
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 0x14008a0f1
mov rsi, 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, rsi
call sub.KERNEL32.dll_CloseHandle
test r14, r14
je 0x14008a0f1
mov qword [r13 + 8], rdi
mov qword [r13 + 0x10], r14
mov qword [r13 + 0x18], r15
mov qword [r13], 1
jmp 0x14008a139
mov qword [r13], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x14008a139
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0xe8], 1
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0xf0], rax
call fcn.140084e80
mov qword [r13], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x14008a019
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x140089ae4
cmp eax, 0x5c
je 0x140089ae4
jmp 0x140089e97
cmp word [rbx + 6], 0x5c
jne 0x140089cf6
jmp 0x140089d14
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_std_src_threadmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400087a0
jmp 0x14008a1c2
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.140008430
jmp 0x14008a1c2
mov rcx, qword [rsp + 0x90]
test rcx, rcx
jne 0x14008a1b5
call fcn.140004ee0
jmp 0x14008a1c2
mov rdx, qword [rsp + 0x98]
call fcn.140004f20
ud2