Function at 0x1400a2690
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f8
mov r12, rcx
lea rcx, [rsp + 0xf8]
call fcn.14009f730
mov rbx, qword [rsp + 0xf8]
mov r15, qword [rsp + 0x100]
mov edi, 1
test rbx, rbx
je 0x1400a2cf8
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], rax
cmp rax, 3
jbe 0x1400a272a
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rbx]
je 0x1400a2ba1
cmp rcx, qword [rbx]
je 0x1400a2ba1
cmp rax, 0xf8
jae 0x1400a27ab
cmp word [rbx + 2], 0x3a
jne 0x1400a2784
movzx eax, word [rbx + 4]
jmp 0x1400a2753
je 0x1400a2743
cmp rax, 2
je 0x1400a2784
cmp rax, 1
jne 0x1400a27ab
cmp word [rbx], 0
jne 0x1400a27ab
jmp 0x1400a2ba1
cmp word [rbx + 2], 0x3a
jne 0x1400a2784
movzx eax, word [rbx + 4]
test ax, ax
je 0x1400a2773
cmp ax, 0x2f
je 0x1400a2761
movzx eax, ax
cmp eax, 0x5c
jne 0x1400a2784
movzx eax, word [rbx]
cmp eax, 0x2f
je 0x1400a2787
cmp eax, 0x5c
je 0x1400a2787
jmp 0x1400a2ba1
movzx eax, word [rbx]
cmp eax, 0x2f
je 0x1400a2784
cmp eax, 0x5c
jne 0x1400a2ba1
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x1400a2795
movzx eax, ax
cmp eax, 0x2f
jne 0x1400a27ab
movzx eax, word [rbx + 2]
cmp eax, 0x2f
je 0x1400a2ba1
cmp eax, 0x5c
je 0x1400a2ba1
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x78], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
mov ebp, 0x200
mov eax, 2
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov edi, 0xffffffff
xor r14d, r14d
xor esi, esi
cmp rbp, 0x201
jae 0x1400a2830
jmp 0x1400a280f
jae 0x1400a28e9
cmp rbp, 0x201
jae 0x1400a2830
mov ebx, 0x200
lea r12, [rsp + 0xf8]
mov r15, rbp
jmp 0x1400a2886
sub rbp, rsi
sub r14, rsi
cmp r14, rbp
jae 0x1400a2862
lea rcx, [rsp + 0x78]
mov rdx, rsi
mov r8, rbp
call fcn.14009fb30
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x60]
cmp r14, rdi
mov esi, 0xffffffff
cmovb rsi, r14
mov qword [rsp + 0x88], rsi
mov rbx, rsi
mov r12, qword [rsp + 0x68]
mov r15, rsi
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x70]
mov edx, r15d
mov r8, r12
xor r9d, r9d
call sub.kernel32.dll_GetFullPathNameW
mov r13d, eax
test eax, eax
jne 0x1400a28b0
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400a292b
mov ebp, r13d
cmp r15, rbp
jne 0x1400a2800
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400a2e6b
add r15, r15
cmp r15, rdi
cmovae r15, rdi
mov rbp, r15
cmp rbp, 0x201
jb 0x1400a280f
jmp 0x1400a2830
cmp rbx, rbp
jb 0x1400a2e85
mov qword [rsp + 0x50], 0
cmp r13d, 2
jbe 0x1400a2940
movzx eax, word [r12 + 2]
cmp eax, 0x3a
jne 0x1400a295b
cmp word [r12 + 4], 0x5c
jne 0x1400a295b
mov ebx, 4
lea r14, [0x14016c238]
mov rdi, qword [rsp + 0x58]
jmp 0x1400a29ef
call sub.kernel32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
jmp 0x1400a2b45
mov rdi, qword [rsp + 0x58]
jne 0x1400a29e6
movzx ecx, word [r12]
cmp cx, 0x5c
je 0x1400a29c4
jmp 0x1400a29e6
movzx ecx, word [r12]
cmp r13d, 3
jbe 0x1400a29b9
lea r14, str.invalid_type:___expected
cmp cx, 0x5c
jne 0x1400a2e4d
cmp eax, 0x3f
mov rdi, qword [rsp + 0x58]
je 0x1400a29ed
cmp eax, 0x5c
jne 0x1400a29ca
movzx eax, word [r12 + 4]
cmp eax, 0x3f
je 0x1400a2e59
cmp eax, 0x2e
jne 0x1400a29d0
cmp word [r12 + 6], 0x5c
jne 0x1400a29d0
add rbp, 0xfffffffffffffffc
add r12, 8
mov ebx, 4
lea r14, [0x14016c238]
jmp 0x1400a29ef
mov rdi, qword [rsp + 0x58]
cmp cx, 0x5c
jne 0x1400a29e6
movzx eax, word [r12 + 2]
cmp ax, 0x5c
jne 0x1400a29e6
add rbp, 0xfffffffffffffffe
add r12, 4
mov ebx, 8
lea r14, [0x14016c240]
jmp 0x1400a29ef
lea r14, str.invalid_type:___expected
xor ebx, ebx
lea rsi, [rbx + rbp]
inc rsi
cmp rsi, rdi
jbe 0x1400a2a77
lea r8, [rsi + rsi]
test rdi, rdi
je 0x1400a2a2b
lea rax, [rdi + rdi]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], 2
mov qword [rsp + 0xa0], rax
jmp 0x1400a2a37
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0xd0]
lea r9, [rsp + 0x90]
mov edx, 2
call fcn.14002e560
cmp qword [rsp + 0xd0], 0
mov rcx, qword [rsp + 0xd8]
je 0x1400a2aa9
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x1400a2e99
cmp rbx, rdi
jbe 0x1400a2a9c
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, rbx
call fcn.14009fb30
mov r13, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
jmp 0x1400a2ab6
mov rsi, rdi
xor r13d, r13d
mov rcx, qword [rsp + 0x70]
jmp 0x1400a2ab6
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rsi
xor r13d, r13d
lea r8, [rbx + rbx]
mov rdi, rcx
lea rcx, [rcx + r13*2]
mov rdx, r14
call sub.msvcrt.dll_memcpy
add r13, rbx
mov qword [rsp + 0x50], r13
mov rax, rsi
sub rax, r13
cmp rax, rbp
jae 0x1400a2afb
lea rcx, [rsp + 0x40]
mov rdx, r13
mov r8, rbp
call fcn.14009fb30
mov r13, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
lea r8, [rbp*2]
lea rcx, [rdi + r13*2]
mov rdx, r12
call sub.msvcrt.dll_memcpy
add r13, rbp
mov qword [rsp + 0x50], r13
cmp r13, rsi
jne 0x1400a2b33
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14009fa70
mov rdi, qword [rsp + 0x40]
mov r13, qword [rsp + 0x50]
mov word [rdi + r13*2], 0
inc r13
mov qword [rsp + 0x50], r13
xor r15d, r15d
cmp qword [rsp + 0x60], 0
mov r12, qword [rsp + 0xc8]
mov edi, 1
je 0x1400a2b69
mov edx, 2
mov rcx, qword [rsp + 0x68]
call fcn.14002c950
test r15, r15
je 0x1400a2b8e
cmp qword [rsp + 0x48], 0
je 0x1400a2cf8
mov rcx, qword [rsp + 0x40]
mov edx, 2
call fcn.14002c950
jmp 0x1400a2cf8
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
test rbx, rbx
je 0x1400a2cf8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
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 0x1400a2bf3
call sub.kernel32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov edi, 1
test r15, r15
je 0x1400a2c05
mov edx, 2
mov rcx, rbx
call fcn.14002c950
cmp rsi, 0xffffffffffffffff
je 0x1400a2cf5
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xc0], 0
lea rdx, [rsp + 0x90]
mov rcx, r14
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x1400a2d31
test dword [rsp + 0x90], 0x400
je 0x1400a2c89
mov qword [rsp + 0xd0], 0
lea r8, [rsp + 0xd0]
mov rcx, r14
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x1400a2d31
mov r15d, dword [rsp + 0xb0]
mov ebx, dword [rsp + 0xb4]
test r14, r14
je 0x1400a2d82
mov qword [rsp + 0x90], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov rcx, rax
mov rdx, r14
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400a2e0a
mov rsi, qword [rsp + 0x90]
jmp 0x1400a2d84
mov r15, r14
mov qword [rsp + 0xe8], rdi
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0xf0], r15
call fcn.14009cde0
mov qword [r12], 0
add rsp, 0x4f8
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 + 0x100]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0xf8], 2
call fcn.14009cde0
mov qword [r12], 0
mov rcx, r14
add rsp, 0x4f8
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 0x1400a2df8
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 0x1400a2df8
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], r15
mov qword [r12], 1
jmp 0x1400a2e40
mov qword [r12], 0
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
jmp 0x1400a2e40
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0xf8], 1
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x100], rax
call fcn.14009cde0
mov qword [r12], 0
mov rcx, r14
call sub.kernel32.dll_CloseHandle
jmp 0x1400a2d1d
xor ebx, ebx
mov rdi, qword [rsp + 0x58]
jmp 0x1400a29ef
cmp word [r12 + 6], 0x5c
jne 0x1400a29d0
jmp 0x1400a29ed
lea rcx, str.internal_error:_entered_unreachable_code_home_admin_.local_share_cargo_registry_src_index.crates.io_6f17d22bba15001f_wmi_0.13.3_src_safearray.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001b4b0
jmp 0x1400a2eb2
lea r8, str.library_std_src_syswindowsmod.rs
mov rcx, rbp
mov rdx, rbx
call fcn.14001ac80
jmp 0x1400a2eb2
test rcx, rcx
jne 0x1400a2ea5
call fcn.14000fd50
jmp 0x1400a2eb2
mov rdx, qword [rsp + 0xe0]
call fcn.14000fd90
ud2