Function at 0x1400500b0
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
movabs rsi, 0x8000000000000000
lea rcx, [rsp + 0xc0]
call fcn.1400544d0
mov r14, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
cmp r14, rsi
je 0x1400506fd
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rax
cmp rax, 4
jae 0x14005013c
cmp rax, 3
je 0x140050174
cmp rax, 2
je 0x1400501b5
cmp rax, 1
jne 0x1400501dc
cmp word [rdi], 0
jne 0x1400501dc
jmp 0x1400505b3
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rdi]
je 0x1400505b3
cmp rcx, qword [rdi]
je 0x1400505b3
cmp rax, 0xf8
jae 0x1400501dc
cmp word [rdi + 2], 0x3a
jne 0x1400501b5
movzx eax, word [rdi + 4]
jmp 0x140050184
cmp word [rdi + 2], 0x3a
jne 0x1400501b5
movzx eax, word [rdi + 4]
test ax, ax
je 0x1400501a4
cmp ax, 0x2f
je 0x140050192
movzx eax, ax
cmp eax, 0x5c
jne 0x1400501b5
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x1400501b8
cmp eax, 0x5c
je 0x1400501b8
jmp 0x1400505b3
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x1400501b5
cmp eax, 0x5c
jne 0x1400505b3
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x1400501c6
movzx eax, ax
cmp eax, 0x2f
jne 0x1400501dc
movzx eax, word [rdi + 2]
cmp eax, 0x2f
je 0x1400505b3
cmp eax, 0x5c
je 0x1400505b3
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 2
mov qword [rsp + 0x78], 0
mov r13d, 0x200
mov eax, 2
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x50], rax
mov edi, 0xffffffff
xor ebx, ebx
xor ebp, ebp
cmp r13, 0x201
jb 0x14005024f
jmp 0x140050270
jae 0x140050323
cmp r13, 0x201
jae 0x140050270
mov esi, 0x200
lea r15, [rsp + 0xc0]
mov r14, r13
jmp 0x1400502c0
sub r13, rbp
sub rbx, rbp
cmp rbx, r13
jae 0x14005029f
lea rcx, [rsp + 0x68]
mov rdx, rbp
mov r8, r13
call fcn.1400518e0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x50]
cmp rbx, rdi
mov ebp, 0xffffffff
cmovb rbp, rbx
mov qword [rsp + 0x78], rbp
mov rsi, rbp
mov r15, qword [rsp + 0x60]
mov r14, rbp
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x58]
mov edx, r14d
mov r8, r15
xor r9d, r9d
call sub.kernel32.dll_GetFullPathNameW
mov r12d, eax
test eax, eax
jne 0x1400502ea
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140050366
mov r13d, r12d
cmp r14, r13
jne 0x140050240
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400507fe
add r14, r14
cmp r14, rdi
cmovae r14, rdi
mov r13, r14
cmp r13, 0x201
jae 0x140050270
jmp 0x14005024f
cmp rsi, r13
jb 0x140050818
mov qword [rsp + 0x48], 0
cmp r12d, 2
mov rbx, qword [rsp + 0x98]
jbe 0x14005037f
movzx eax, word [r15 + 2]
cmp eax, 0x3a
jne 0x140050387
cmp word [r15 + 4], 0x5c
jne 0x140050387
lea r12, str.__UNC_
mov esi, 4
jmp 0x1400503fd
call sub.kernel32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rdi, qword [rsp + 0x58]
jmp 0x14005055d
jne 0x1400503f4
movzx ecx, word [r15]
jmp 0x1400503cd
movzx ecx, word [r15]
cmp r12d, 3
jbe 0x1400503cd
lea r12, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_repos_rust1.77.0_library_std_src_thread_local.rs
cmp cx, 0x5c
jne 0x1400503fb
cmp eax, 0x3f
je 0x1400503fb
cmp eax, 0x5c
jne 0x1400503d8
movzx eax, word [r15 + 4]
cmp eax, 0x3f
je 0x1400507ed
cmp eax, 0x2e
jne 0x1400503de
cmp word [r15 + 6], 0x5c
jne 0x1400503de
add r13, 0xfffffffffffffffc
add r15, 8
jmp 0x140050355
cmp cx, 0x5c
jne 0x1400503f4
movzx eax, word [r15 + 2]
cmp ax, 0x5c
jne 0x1400503f4
add r13, 0xfffffffffffffffe
add r15, 4
lea r12, [0x14019cc18]
mov esi, 8
jmp 0x1400503fd
lea r12, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_repos_rust1.77.0_library_std_src_thread_local.rs
xor esi, esi
mov rdi, rsi
or rdi, 1
add rdi, r13
cmp rbx, rdi
jae 0x140050496
xor edx, edx
mov rax, rdi
shr rax, 0x3e
sete dl
lea r8, [rdi + rdi]
add rdx, rdx
test rbx, rbx
je 0x14005044f
lea rax, [rbx + rbx]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], 2
mov qword [rsp + 0x90], rax
jmp 0x14005045b
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0xa8]
lea r9, [rsp + 0x80]
call fcn.140022e70
cmp qword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0xb0]
je 0x1400504bb
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x14005082c
cmp rbx, rsi
jae 0x1400504d2
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8, rsi
call fcn.1400518e0
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
jmp 0x1400504d9
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x58], rcx
mov rbx, rdi
cmp rbx, rsi
jb 0x14005049b
xor ebp, ebp
mov rdi, qword [rsp + 0x58]
lea r8, [rsi + rsi]
lea rcx, [rdi + rbp*2]
mov rdx, r12
call sub.msvcrt.dll_memcpy
add rbp, rsi
mov qword [rsp + 0x48], rbp
sub rbx, rbp
cmp rbx, r13
jae 0x140050513
lea rcx, [rsp + 0x38]
mov rdx, rbp
mov r8, r13
call fcn.1400518e0
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
lea r8, [r13*2]
lea rcx, [rdi + rbp*2]
mov rdx, r15
call sub.msvcrt.dll_memcpy
add rbp, r13
mov qword [rsp + 0x48], rbp
cmp rbp, qword [rsp + 0x38]
jne 0x140050548
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.140051690
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov word [rdi + rbp*2], 0
inc rbp
mov qword [rsp + 0x48], rbp
xor esi, esi
cmp qword [rsp + 0x50], 0
mov r12, qword [rsp + 0xa0]
je 0x14005057c
mov edx, 2
mov rcx, qword [rsp + 0x60]
call fcn.140010f70
mov r14, qword [rsp + 0x38]
test rsi, rsi
je 0x1400505a0
test r14, r14
je 0x140050598
mov edx, 2
mov rcx, rdi
call fcn.140010f70
mov rdi, rsi
jmp 0x1400506fd
movabs rax, 0x8000000000000000
cmp r14, rax
je 0x1400506fd
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 rsi, rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400505fd
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r14, r14
je 0x14005060f
mov edx, 2
mov rcx, rdi
call fcn.140010f70
cmp rsi, 0xffffffffffffffff
je 0x1400506fa
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, rbx
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x140050721
test byte [rsp + 0xc1], 4
je 0x140050690
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rbx
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x140050721
mov r15d, dword [rsp + 0xe0]
mov r14d, dword [rsp + 0xe4]
test rbx, rbx
je 0x140050743
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, rbx
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400507d6
mov rsi, qword [rsp + 0xc0]
jmp 0x140050745
mov rdi, rbx
mov rcx, rdi
call fcn.140044c70
mov qword [r12], 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.140044c70
mov qword [r12], 0
jmp 0x1400507c9
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 0x1400507b9
mov rdi, 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, rdi
call sub.kernel32.dll_CloseHandle
test r14, r14
je 0x1400507b9
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], r14
mov qword [r12 + 0x18], r15
mov qword [r12], 1
jmp 0x1400507c9
mov qword [r12], 0
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x14005070d
call sub.kernel32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.140044c70
jmp 0x140050736
cmp word [r15 + 6], 0x5c
je 0x1400503fb
jmp 0x1400503de
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_sys_pal_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140018900
jmp 0x140050845
lea r8, str.library_std_src_sys_pal_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r13
mov rdx, rsi
call fcn.14001d160
jmp 0x140050845
test rcx, rcx
jne 0x140050838
call fcn.140012810
jmp 0x140050845
mov rdx, qword [rsp + 0xb8]
call fcn.140012a40
ud2