Function at 0x1400037e0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r13, rdx
mov rdi, rcx
mov rbx, qword [rdx]
mov r8, qword [rbx + 8]
mov rcx, rdx
call fcn.140002140
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
xor esi, esi
mov qword [r13 + 8], rsi
cmp qword [rdi + 0x18], 8
jb 0x140003844
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rbp - 0x80], rax
mov edi, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x140003898
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x140003be1
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.140006fe0
test eax, eax
jne 0x140003bd9
mov qword [rsp + 0x50], rsi
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.1400063b0
test eax, eax
jne 0x140003bd9
mov dword [rbp + 0x48], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003906
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
jmp 0x140003908
mov ecx, esi
test ecx, ecx
jne 0x140003bd1
lea rcx, [rbx + 3]
mov qword [rbp - 0x58], rcx
mov r9d, dword [rbp + 0x48]
add r9d, 0xfffffffd
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], esi
mov r8, rcx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140003150
test al, al
je 0x140003bd1
mov r14, rsi
mov qword [rsp + 0x58], rsi
movsxd r15, dword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
test r15, r15
je 0x140003bc8
mov ebx, 0xf
mov r12, qword [rbp - 0x58]
mov rdi, r14
shl rdi, 4
cmp dword [rdi + rsi], 3
jne 0x140003bae
movsxd rcx, dword [rdi + rsi + 4]
add rcx, r12
mov eax, dword [rdi + rsi + 8]
sub eax, dword [rdi + rsi + 4]
cmp eax, ebx
jne 0x140003bae
mov r8, rbx
lea rdx, str.ShortCutList_V2
call qword [sym.imp.msvcrt.dll_strncmp]
xor r8d, r8d
test eax, eax
jne 0x140003bae
cmp dword [rdi + rsi + 0x10], 1
jne 0x140003bae
mov edx, r8d
mov qword [rsp + 0x48], rdx
mov ecx, dword [rdi + rsi + 0x1c]
test ecx, ecx
je 0x140003ba5
lea r15, [rsi + 0x34]
add r15, rdi
xor r14d, r14d
cmp dword [r15 - 0x14], 3
jne 0x140003b81
cmp dword [r15 - 4], 3
jne 0x140003b81
mov eax, dword [r15 + 4]
sub eax, dword [r15]
movsxd r8, eax
movsxd rdx, dword [r15]
add rdx, r12
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], rbx
mov byte [rbp - 0x78], r14b
lea rcx, [rbp - 0x78]
call fcn.1400052a0
nop
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x28]
call fcn.1400011bc
mov rbx, rax
mov ecx, dword [r15 - 0xc]
sub ecx, dword [r15 - 0x10]
movsxd r8, ecx
movsxd rdx, dword [r15 - 0x10]
add rdx, r12
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], r14b
lea rcx, [rsp + 0x60]
call fcn.1400052a0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x48]
call fcn.1400011bc
nop
movups xmm0, xmmword [rax]
movaps xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r14
mov ecx, 7
mov qword [rax + 0x18], rcx
mov word [rax], r14w
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rbp + 0x30], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], rcx
mov word [rbx], r14w
lea r8, [rbp]
lea rdx, [rbp - 0x58]
mov rcx, r13
call fcn.1400056e4
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140003ac6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
call fcn.1400026d4
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140003ae2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
call fcn.1400026d4
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140003afd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
call fcn.1400026d4
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140003b26
inc rdx
mov rcx, qword [rsp + 0x60]
call fcn.1400026d4
mov qword [rsp + 0x70], r14
mov ebx, 0xf
mov qword [rsp + 0x78], rbx
mov byte [rsp + 0x60], r14b
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140003b55
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
call fcn.1400026d4
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r14w
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140003b7c
inc rdx
mov rcx, qword [rbp - 0x78]
call fcn.1400026d4
mov rdx, qword [rsp + 0x48]
inc rdx
mov qword [rsp + 0x48], rdx
add r15, 0x20
movsxd rcx, dword [rdi + rsi + 0x1c]
cmp rdx, rcx
jb 0x1400039d4
mov r14, qword [rsp + 0x58]
movsxd r15, dword [rsp + 0x40]
lea eax, [rcx + 1]
movsxd rdx, eax
add r14, rdx
inc r14
mov qword [rsp + 0x58], r14
cmp r14, r15
jb 0x140003967
mov r12, qword [rbp - 0x80]
mov rbx, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rbx
call fcn.140006400
mov rcx, r12
call fcn.140006960
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140008c60
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret