Function at 0x14018e0e0
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.14018b910
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xc8]
test rdi, rdi
je 0x14018e602
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rax
cmp rax, 4
jb 0x14018e175
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rdi]
je 0x14018e604
cmp rcx, qword [rdi]
je 0x14018e604
cmp rax, 0xf8
jae 0x14018e1fa
cmp word [rdi + 2], 0x3a
jne 0x14018e1d3
movzx eax, word [rdi + 4]
jmp 0x14018e1a2
cmp rax, 3
je 0x14018e192
cmp rax, 2
je 0x14018e1d3
cmp rax, 1
jne 0x14018e1fa
cmp word [rdi], 0
jne 0x14018e1fa
jmp 0x14018e604
cmp word [rdi + 2], 0x3a
jne 0x14018e1d3
movzx eax, word [rdi + 4]
test ax, ax
je 0x14018e1c2
cmp ax, 0x2f
je 0x14018e1b0
movzx eax, ax
cmp eax, 0x5c
jne 0x14018e1d3
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x14018e1d6
cmp eax, 0x5c
je 0x14018e1d6
jmp 0x14018e604
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x14018e1d3
cmp eax, 0x5c
jne 0x14018e604
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x14018e1e4
movzx eax, ax
cmp eax, 0x2f
jne 0x14018e1fa
movzx eax, word [rdi + 2]
cmp eax, 0x2f
je 0x14018e604
cmp eax, 0x5c
je 0x14018e604
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x68], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov r15d, 0x200
mov eax, 2
mov qword [rsp + 0x80], rax
xor edi, edi
xor r12d, r12d
xor ebp, ebp
cmp r15, 0x201
jae 0x14018e280
jmp 0x14018e25f
jae 0x14018e33f
cmp r15, 0x201
jae 0x14018e280
mov r14d, 0x200
lea rbx, [rsp + 0xc0]
mov rsi, r15
jmp 0x14018e2d4
sub r15, rbp
sub r12, rbp
cmp r12, r15
jae 0x14018e2ad
lea rcx, [rsp + 0x68]
mov rdx, rbp
mov r8, r15
call fcn.14009e710
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rax
mov rdi, qword [rsp + 0x70]
mov eax, 0xffffffff
cmp rdi, rax
mov ebp, 0xffffffff
cmovb rbp, rdi
mov qword [rsp + 0x78], rbp
mov r12, rdi
mov r14, rbp
mov rbx, qword [rsp + 0x80]
mov rsi, rbp
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x60]
mov edx, esi
mov r8, rbx
xor r9d, r9d
call sub.kernel32.dll_GetFullPathNameW
mov r13d, eax
test eax, eax
jne 0x14018e301
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14018e393
mov r15d, r13d
cmp rsi, r15
jne 0x14018e250
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14018e926
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r15, rsi
cmp r15, 0x201
jb 0x14018e25f
jmp 0x14018e280
cmp r14, r15
jb 0x14018e940
mov qword [rsp + 0x50], 0
cmp r13d, 2
mov rsi, qword [rsp + 0x60]
jbe 0x14018e3b8
movzx eax, word [rbx + 2]
cmp eax, 0x3a
mov rdi, qword [rsp + 0x58]
jne 0x14018e3c4
cmp word [rbx + 4], 0x5c
jne 0x14018e3c4
mov r13d, 4
lea r14, [0x140294df8]
lea rbp, [r15 + r13]
inc rbp
cmp rbp, rdi
ja 0x14018e465
jmp 0x14018e4e7
call sub.kernel32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
mov r12, qword [rsp + 0xa0]
jne 0x14018e5bf
jmp 0x14018e5d2
mov rdi, qword [rsp + 0x58]
je 0x14018e415
jmp 0x14018e44b
cmp r13d, 4
jb 0x14018e415
lea r14, [0x1402be068]
cmp word [rbx], 0x5c
jne 0x14018e452
cmp eax, 0x3f
je 0x14018e3f1
cmp eax, 0x5c
jne 0x14018e41f
movzx eax, word [rbx + 4]
cmp eax, 0x2e
je 0x14018e401
cmp eax, 0x3f
je 0x14018e3f8
jmp 0x14018e415
cmp word [rbx + 4], 0x3f
jne 0x14018e415
cmp word [rbx + 6], 0x5c
jne 0x14018e415
jmp 0x14018e452
cmp word [rbx + 6], 0x5c
jne 0x14018e415
add rbx, 8
add r15, 0xfffffffffffffffc
jmp 0x14018e371
cmp word [rbx], 0x5c
jne 0x14018e44b
movzx eax, word [rbx + 2]
cmp ax, 0x5c
jne 0x14018e44b
add rbx, 4
add r15, 0xfffffffffffffffe
mov r13d, 8
lea r14, [0x140294e00]
lea rbp, [r15 + r13]
inc rbp
cmp rbp, rdi
ja 0x14018e465
jmp 0x14018e4e7
lea r14, [0x1402be068]
xor r13d, r13d
lea rbp, [r15 + r13]
inc rbp
cmp rbp, rdi
jbe 0x14018e4e7
mov rdx, rbp
add rdx, rbp
test rdi, rdi
je 0x14018e492
lea rax, [rdi + rdi]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
jmp 0x14018e49e
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0xa8]
lea r9, [rsp + 0x88]
mov r8d, 2
call fcn.14003ee50
cmp qword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0xb0]
je 0x14018e514
mov rdx, qword [rsp + 0xb8]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x14018e954
cmp r13, rdi
jbe 0x14018e50c
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, r13
call fcn.14009e710
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
jmp 0x14018e524
xor r12d, r12d
mov rbp, rdi
jmp 0x14018e524
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rbp
xor r12d, r12d
mov rsi, rcx
mov r8, r13
add r8, r13
lea rcx, [rsi + r12*2]
mov rdx, r14
call sub.msvcrt.dll_memcpy
add r12, r13
mov qword [rsp + 0x50], r12
mov rax, rbp
sub rax, r12
cmp rax, r15
jae 0x14018e568
lea rcx, [rsp + 0x40]
mov rdx, r12
mov r8, r15
call fcn.14009e710
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
lea r8, [r15 + r15]
lea rcx, [rsi + r12*2]
mov rdx, rbx
call sub.msvcrt.dll_memcpy
add r12, r15
mov qword [rsp + 0x50], r12
cmp r12, rbp
jne 0x14018e59c
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.14018bcd0
mov rsi, qword [rsp + 0x40]
mov r12, qword [rsp + 0x50]
mov word [rsi + r12*2], 0
inc r12
mov qword [rsp + 0x50], r12
xor esi, esi
mov rdi, qword [rsp + 0x70]
test rdi, rdi
mov r12, qword [rsp + 0xa0]
je 0x14018e5d2
mov r8, qword [rsp + 0x68]
mov rcx, qword [0x14031a128]
xor edx, edx
call fcn.1401f903c
test rsi, rsi
je 0x14018e7ee
cmp qword [rsp + 0x48], 0
je 0x14018e602
mov r8, qword [rsp + 0x40]
mov rcx, qword [0x14031a128]
xor edi, edi
xor edx, edx
call fcn.1401f903c
test rdi, rdi
jne 0x14018e60d
jmp 0x14018e769
xor edi, edi
test rdi, rdi
je 0x14018e769
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 rbx, rax
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14018e657
call sub.kernel32.dll_GetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
test rsi, rsi
je 0x14018e66d
mov rcx, qword [0x14031a128]
xor edx, edx
mov r8, rdi
call fcn.1401f903c
cmp rbx, 0xffffffffffffffff
je 0x14018e766
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, rbp
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x14018e7c6
test byte [rsp + 0xc1], 4
je 0x14018e6ee
mov qword [rsp + 0x88], 0
lea r8, [rsp + 0x88]
mov rcx, rbp
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14018e7c6
mov r15d, dword [rsp + 0xe0]
mov r14d, dword [rsp + 0xe4]
test rbp, rbp
je 0x14018e806
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, rbp
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14018e86c
mov rdi, qword [rsp + 0xc0]
xor eax, eax
test rax, rax
jne 0x14018e80f
jmp 0x14018e885
mov rsi, rbp
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x14018e7b9
lea rdi, [rsi - 1]
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
cmp qword [rax + 8], 0
je 0x14018e7a8
mov r8, qword [rdi]
cmp qword [rax + 0x10], 0x11
jb 0x14018e79a
mov r8, qword [r8 - 8]
mov rcx, qword [0x14031a128]
xor edx, edx
call fcn.1401f903c
mov rcx, qword [0x14031a128]
xor edx, edx
mov r8, rdi
call fcn.1401f903c
mov qword [r12], 0
jmp 0x14018e911
call sub.kernel32.dll_GetLastError
mov qword [r12], 0
mov rcx, rbp
add rsp, 0x4c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
test rdi, rdi
jne 0x14018e60d
jmp 0x14018e769
xor eax, eax
xor edi, edi
test rax, rax
je 0x14018e885
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x14018e85f
lea rbx, [rdi - 1]
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
call qword [rax]
mov rax, qword [rdi + 7]
cmp qword [rax + 8], 0
je 0x14018e84e
mov r8, qword [rbx]
cmp qword [rax + 0x10], 0x11
jb 0x14018e840
mov r8, qword [r8 - 8]
mov rcx, qword [0x14031a128]
xor edx, edx
call fcn.1401f903c
mov rcx, qword [0x14031a128]
xor edx, edx
mov r8, rbx
call fcn.1401f903c
mov qword [r12], 0
jmp 0x14018e909
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov eax, 1
test rax, rax
jne 0x14018e80f
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 0x14018e8f9
mov rbx, 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, rbx
call sub.kernel32.dll_CloseHandle
test r14, r14
je 0x14018e8f9
mov qword [r12 + 8], rdi
mov qword [r12 + 0x10], r14
mov qword [r12 + 0x18], r15
mov qword [r12], 1
jmp 0x14018e909
mov qword [r12], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov rcx, rbp
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0x4c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1402be391]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002cb80
jmp 0x14018e965
lea r8, str.library_std_src_syswindowsmod.rs
mov rcx, r15
mov rdx, r14
call fcn.14002c6f0
jmp 0x14018e965
test rdx, rdx
jne 0x14018e960
call fcn.140027070
jmp 0x14018e965
call fcn.1400270c0
ud2