Function at 0x14001a790
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b8
mov r13, rcx
movabs rsi, 0x8000000000000000
lea rcx, [rsp + 0xb0]
call fcn.1400176b0
mov r15, qword [rsp + 0xb0]
cmp r15, rsi
jne 0x14001a7d7
mov rdi, qword [rsp + 0xb8]
jmp 0x14001ad8a
mov rdi, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rax
cmp rax, 3
jbe 0x14001a834
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rdi]
je 0x14001ac34
cmp rcx, qword [rdi]
je 0x14001ac34
cmp rax, 0xf8
jae 0x14001a8a4
cmp word [rdi + 2], 0x3a
jne 0x14001a87d
movzx eax, word [rdi + 4]
jmp 0x14001a85b
je 0x14001a847
cmp rax, 1
jne 0x14001a87b
cmp word [rdi], 0
jne 0x14001a8a4
jmp 0x14001ac34
cmp word [rdi + 2], 0x3a
jne 0x14001a87d
movzx eax, word [rdi + 4]
test ax, ax
je 0x14001ae92
cmp ax, 0x2f
je 0x14001a869
movzx eax, ax
cmp eax, 0x5c
jne 0x14001a87d
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x14001a880
cmp eax, 0x5c
je 0x14001a880
jmp 0x14001ac34
jbe 0x14001a8a4
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x14001a88e
movzx eax, ax
cmp eax, 0x2f
jne 0x14001a8a4
movzx eax, word [rdi + 2]
cmp eax, 0x2f
je 0x14001ac34
cmp eax, 0x5c
je 0x14001ac34
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x60], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x70], rax
xor r15d, r15d
mov r14d, 0xffffffff
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14001a930
jmp 0x14001a90f
jae 0x14001a9e3
cmp r8, 0x201
jae 0x14001a930
mov r13d, 0x200
lea rbx, [rsp + 0xb0]
mov rbp, r8
jmp 0x14001a977
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14001a957
lea rcx, [rsp + 0x50]
mov rdx, r12
call fcn.140017b30
mov r15, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
cmp r15, r14
mov r12d, 0xffffffff
cmovb r12, r15
mov qword [rsp + 0x60], r12
mov rdi, r15
mov r13, r12
mov rbx, qword [rsp + 0x70]
mov rbp, r12
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x78]
mov edx, ebp
mov r8, rbx
xor r9d, r9d
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test eax, eax
jne 0x14001a99f
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14001aa1d
mov r8d, esi
cmp rbp, r8
jne 0x14001a900
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14001aebc
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
mov r14d, 0xffffffff
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x14001a90f
jmp 0x14001a930
cmp r13, r8
jb 0x14001aed6
cmp esi, 2
mov rcx, qword [rsp + 0x78]
jbe 0x14001aa68
movzx eax, word [rbx + 2]
cmp eax, 0x3a
mov r13, qword [rsp + 0x68]
jne 0x14001aa74
cmp word [rbx + 4], 0x5c
jne 0x14001aa74
lea r15, [0x1400b7220]
mov r14d, 4
jmp 0x14001aaad
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
cmp qword [rsp + 0x50], 0
je 0x14001aa3f
mov rcx, qword [rsp + 0x58]
mov edx, 2
call fcn.140001f00
or rdi, 2
cmp qword [rsp + 0x38], 0
mov r13, qword [rsp + 0x68]
je 0x14001ad8a
mov rcx, qword [rsp + 0x40]
mov edx, 2
call fcn.140001f00
jmp 0x14001ad8a
mov r13, qword [rsp + 0x68]
jne 0x14001aaa3
movzx edx, word [rbx]
jmp 0x14001aa7c
movzx edx, word [rbx]
cmp esi, 3
jne 0x14001aaf6
cmp dx, 0x5c
jne 0x14001aaa3
movzx eax, word [rbx + 2]
cmp ax, 0x5c
jne 0x14001aaa3
add r8, 0xfffffffffffffffe
add rbx, 4
lea r15, [0x1400b7228]
mov r14d, 8
jmp 0x14001aaad
lea r15, [0x1400b7bd0]
xor r14d, r14d
lea r12, [r8 + r14]
inc r12
mov rdx, qword [rsp + 0x38]
cmp rdx, r12
jae 0x14001aaeb
lea rax, [r12 + r12]
mov rsi, r8
test rdx, rdx
je 0x14001ab3f
add rdx, rdx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], 2
mov qword [rsp + 0x90], rdx
jmp 0x14001ab4b
mov rsi, r8
mov r12, rdx
jmp 0x14001ab89
lea r15, [0x1400b7bd0]
cmp dx, 0x5c
jne 0x14001aaaa
cmp eax, 0x3f
je 0x14001aaaa
cmp eax, 0x5c
jne 0x14001aa86
movzx eax, word [rbx + 4]
cmp eax, 0x3f
je 0x14001aeac
cmp eax, 0x2e
jne 0x14001aa8c
cmp word [rbx + 6], 0x5c
jne 0x14001aa8c
add r8, 0xfffffffffffffffc
add rbx, 8
jmp 0x14001aa0b
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x98]
lea r9, [rsp + 0x80]
mov edx, 2
mov r8, rax
call fcn.140017aa0
cmp qword [rsp + 0x98], 0
jne 0x14001aeed
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r12
lea r8d, [r14 + r14]
mov rdx, r15
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov qword [rsp + 0x48], r14
mov rax, r12
sub rax, r14
cmp rax, rsi
jae 0x14001abc5
lea rcx, [rsp + 0x38]
mov rdx, r14
mov rdi, rsi
mov r8, rsi
call fcn.140017b30
mov r12, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
mov rsi, rdi
lea r8, [rsi + rsi]
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + r14*2]
mov rdx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add r14, rsi
mov qword [rsp + 0x48], r14
cmp r14, r12
jne 0x14001abfe
lea rcx, [rsp + 0x38]
mov rdx, r12
call fcn.1400179f0
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov word [rdi + r14*2], 0
cmp qword [rsp + 0x50], 0
je 0x14001ac1c
mov rcx, qword [rsp + 0x58]
mov edx, 2
call fcn.140001f00
mov r15, qword [rsp + 0x38]
movabs rax, 0x8000000000000000
cmp r15, rax
je 0x14001ad8a
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 0x14001ad66
mov rbx, rax
test r15, r15
je 0x14001ac82
mov edx, 2
mov rcx, rdi
call fcn.140001f00
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0xe0], 0
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x14001adae
test byte [rsp + 0xb1], 4
je 0x14001acf9
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 0x14001adae
mov r15d, dword [rsp + 0xd0]
mov r14d, dword [rsp + 0xd4]
test rbx, rbx
je 0x14001ade6
mov qword [rsp + 0xb0], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb0]
mov rcx, rax
mov rdx, rbx
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14001ae6b
mov rdi, qword [rsp + 0xb0]
jmp 0x14001ade8
call sub.kernel32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r15, r15
je 0x14001ad87
mov edx, 2
mov rcx, rdi
call fcn.140001f00
mov rdi, rsi
mov rcx, rdi
call fcn.1400166c0
mov qword [r13], 0
add rsp, 0x4b8
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.1400166c0
mov qword [r13], 0
mov rcx, rbx
add rsp, 0x4b8
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 0x14001ae59
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 0x14001ae59
mov qword [r13 + 8], rdi
mov qword [r13 + 0x10], r14
mov qword [r13 + 0x18], r15
mov qword [r13], 1
jmp 0x14001ae85
mov qword [r13], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
jmp 0x14001ae85
call sub.kernel32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.1400166c0
mov qword [r13], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x14001ad9a
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x14001a87d
cmp eax, 0x5c
je 0x14001a87d
jmp 0x14001ac34
cmp word [rbx + 6], 0x5c
jne 0x14001aa8c
jmp 0x14001aaaa
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.o_v_
mov edx, 0x28
call fcn.140004340
jmp 0x14001af0e
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.140003fd0
jmp 0x14001af0e
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
jne 0x14001af01
call fcn.1400022c0
jmp 0x14001af0e
mov rdx, qword [rsp + 0xa8]
call fcn.140002300
ud2