Function at 0x1001a5c0
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 fcn.10017400
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xc8]
test rdi, rdi
je 0x1001ac70
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rax
cmp rax, 3
jbe 0x1001a655
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rdi]
je 0x1001ab22
cmp rcx, qword [rdi]
je 0x1001ab22
cmp rax, 0xf8
jae 0x1001a6d6
cmp word [rdi + 2], 0x3a
jne 0x1001a6af
movzx eax, word [rdi + 4]
jmp 0x1001a67e
je 0x1001a66e
cmp rax, 2
je 0x1001a6af
cmp rax, 1
jne 0x1001a6d6
cmp word [rdi], 0
jne 0x1001a6d6
jmp 0x1001ab22
cmp word [rdi + 2], 0x3a
jne 0x1001a6af
movzx eax, word [rdi + 4]
test ax, ax
je 0x1001a69e
cmp ax, 0x2f
je 0x1001a68c
movzx eax, ax
cmp eax, 0x5c
jne 0x1001a6af
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x1001a6b2
cmp eax, 0x5c
je 0x1001a6b2
jmp 0x1001ab22
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x1001a6af
cmp eax, 0x5c
jne 0x1001ab22
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x1001a6c0
movzx eax, ax
cmp eax, 0x2f
jne 0x1001a6d6
movzx eax, word [rdi + 2]
cmp eax, 0x2f
je 0x1001ab22
cmp eax, 0x5c
je 0x1001ab22
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x70], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov ebp, 0x200
mov eax, 2
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x58], rax
mov edi, 0xffffffff
xor r14d, r14d
xor esi, esi
cmp rbp, 0x201
jae 0x1001a760
jmp 0x1001a73f
jae 0x1001a824
cmp rbp, 0x201
jae 0x1001a760
mov ebx, 0x200
lea r12, [rsp + 0xc0]
mov r15, rbp
jmp 0x1001a7b3
sub rbp, rsi
sub r14, rsi
cmp r14, rbp
jae 0x1001a78f
lea rcx, [rsp + 0x70]
mov rdx, rsi
mov r8, rbp
call fcn.100177d0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0x58]
cmp r14, rdi
mov esi, 0xffffffff
cmovb rsi, r14
mov qword [rsp + 0x80], rsi
mov rbx, rsi
mov r12, qword [rsp + 0x60]
mov r15, rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x68]
mov edx, r15d
mov r8, r12
xor r9d, r9d
call sub.KERNEL32.dll_GetFullPathNameW
mov r13d, eax
test eax, eax
jne 0x1001a7e1
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1001a87b
mov ebp, r13d
cmp r15, rbp
jne 0x1001a730
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1001ada9
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
mov edi, 0xffffffff
cmovae r15, rax
mov rbp, r15
cmp rbp, 0x201
jb 0x1001a73f
jmp 0x1001a760
cmp rbx, rbp
jb 0x1001adc3
mov qword [rsp + 0x48], 0
cmp r13d, 2
mov rdi, qword [rsp + 0x68]
jbe 0x1001a8a3
movzx eax, word [r12 + 2]
cmp eax, 0x3a
jne 0x1001a8c2
cmp word [r12 + 4], 0x5c
jne 0x1001a8c2
mov ebx, 4
lea r15, [0x104ad2b0]
mov r14, qword [rsp + 0x50]
lea rsi, [rbx + rbp]
inc rsi
cmp rsi, r14
ja 0x1001a984
jmp 0x1001a9fb
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
cmp qword [rsp + 0x58], 0
mov r12, qword [rsp + 0xa0]
jne 0x1001aad3
jmp 0x1001aae6
mov r14, qword [rsp + 0x50]
jne 0x1001a96f
movzx ecx, word [r12]
cmp cx, 0x5c
je 0x1001a93e
jmp 0x1001a96f
movzx ecx, word [r12]
cmp r13d, 3
jbe 0x1001a933
lea r15, [0x104adc38]
cmp cx, 0x5c
jne 0x1001ad7b
cmp eax, 0x3f
mov r14, qword [rsp + 0x50]
je 0x1001a976
cmp eax, 0x5c
jne 0x1001a944
movzx eax, word [r12 + 4]
cmp eax, 0x3f
je 0x1001ad97
cmp eax, 0x2e
jne 0x1001a94a
cmp word [r12 + 6], 0x5c
jne 0x1001a94a
add rbp, 0xfffffffffffffffc
add r12, 8
mov ebx, 4
lea r15, [0x104ad2b0]
lea rsi, [rbx + rbp]
inc rsi
cmp rsi, r14
ja 0x1001a984
jmp 0x1001a9fb
mov r14, qword [rsp + 0x50]
cmp cx, 0x5c
jne 0x1001a96f
movzx eax, word [r12 + 2]
cmp ax, 0x5c
jne 0x1001a96f
add rbp, 0xfffffffffffffffe
add r12, 4
mov ebx, 8
lea r15, [0x104ad2b8]
lea rsi, [rbx + rbp]
inc rsi
cmp rsi, r14
ja 0x1001a984
jmp 0x1001a9fb
lea r15, [0x104adc38]
xor ebx, ebx
lea rsi, [rbx + rbp]
inc rsi
cmp rsi, r14
jbe 0x1001a9fb
lea r8, [rsi + rsi]
test r14, r14
je 0x1001a9af
lea rax, [r14 + r14]
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x98], rax
jmp 0x1001a9bb
mov qword [rsp + 0x90], 0
lea rcx, [rsp + 0xa8]
lea r9, [rsp + 0x88]
mov edx, 2
call fcn.100392e0
cmp qword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0xb0]
je 0x1001aa28
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x1001add7
cmp rbx, r14
jbe 0x1001aa20
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8, rbx
call fcn.100177d0
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
jmp 0x1001aa38
mov rsi, r14
xor r13d, r13d
jmp 0x1001aa38
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rsi
xor r13d, r13d
mov rdi, rcx
lea r8, [rbx + rbx]
lea rcx, [rdi + r13*2]
mov rdx, r15
call sub.msvcrt.dll_memcpy
add r13, rbx
mov qword [rsp + 0x48], r13
mov rax, rsi
sub rax, r13
cmp rax, rbp
jae 0x1001aa7a
lea rcx, [rsp + 0x38]
mov rdx, r13
mov r8, rbp
call fcn.100177d0
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
lea r8, [rbp*2]
lea rcx, [rdi + r13*2]
mov rdx, r12
call sub.msvcrt.dll_memcpy
add r13, rbp
mov qword [rsp + 0x48], r13
cmp r13, rsi
jne 0x1001aab2
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.10017710
mov rdi, qword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
mov word [rdi + r13*2], 0
inc r13
mov qword [rsp + 0x48], r13
xor ebx, ebx
cmp qword [rsp + 0x58], 0
mov r12, qword [rsp + 0xa0]
je 0x1001aae6
mov rcx, qword [0x104b80c8]
xor edx, edx
mov r8, qword [rsp + 0x60]
call fcn.1003965c
test rbx, rbx
je 0x1001ab0f
cmp qword [rsp + 0x40], 0
je 0x1001ac70
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x104b80c8]
xor edx, edx
call fcn.1003965c
jmp 0x1001ac70
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
test rdi, rdi
je 0x1001ac70
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 r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1001ab6d
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test rbx, rbx
je 0x1001ab83
mov rcx, qword [0x104b80c8]
xor edx, edx
mov r8, rdi
call fcn.1003965c
cmp rsi, 0xffffffffffffffff
je 0x1001ac6d
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 0x1001ac94
test byte [rsp + 0xc1], 4
je 0x1001ac04
mov qword [rsp + 0x88], 0
lea r8, [rsp + 0x88]
mov rcx, r14
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x1001ac94
mov r15d, dword [rsp + 0xe0]
mov ebx, dword [rsp + 0xe4]
test r14, r14
je 0x1001accc
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 0x1001ad54
mov rsi, qword [rsp + 0xc0]
jmp 0x1001acce
mov rbx, r14
mov rcx, rbx
call fcn.100144c0
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.100144c0
mov qword [r12], 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 0x1001ad42
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 0x1001ad42
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], r15
mov qword [r12], 1
jmp 0x1001ad6e
mov qword [r12], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
jmp 0x1001ad6e
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.100144c0
mov qword [r12], 0
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
jmp 0x1001ac80
xor ebx, ebx
mov r14, qword [rsp + 0x50]
lea rsi, [rbx + rbp]
inc rsi
cmp rsi, r14
ja 0x1001a984
jmp 0x1001a9fb
cmp word [r12 + 6], 0x5c
jne 0x1001a94a
jmp 0x1001a976
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.100079a0
jmp 0x1001adf0
lea r8, str.library_std_src_syswindowsmod.rs
mov rcx, rbp
mov rdx, rbx
call fcn.10007600
jmp 0x1001adf0
test rcx, rcx
jne 0x1001ade3
call fcn.100064b0
jmp 0x1001adf0
mov rdx, qword [rsp + 0xb8]
call fcn.100064f0
ud2