Function at 0x1400641d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x140085020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, r8
mov rsi, rdx
mov qword [rbp - 0x61], rdx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rbp - 0x71], r15
mov ecx, 0x208
call fcn.140039520
mov qword [rsp + 0x28], rax
mov qword [rbp - 0x79], rax
lea rcx, [rax + 0x208]
mov qword [rbp - 0x71], rcx
lea rax, [rsp + 0x28]
mov qword [rbp - 0x69], rax
mov rcx, qword [rsp + 0x28]
lea rbx, [rcx + 0x208]
xor edx, edx
mov r8d, 0x208
call fcn.14003bac0
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x69], r15
mov r8, qword [rbp - 0x79]
mov rdx, qword [rsp + 0x28]
sub r8, rdx
sar r8, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140064514
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140064514
mov qword [rsi], r15
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov rdx, qword [rsp + 0x28]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400642c0
mov rcx, rsi
call fcn.140002300
mov dword [rsp + 0x20], 1
mov r10, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400642e8
mov r10, qword [rsi]
mov rcx, qword [rsi + 0x10]
cmp rcx, 1
jb 0x14006434e
dec rcx
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r9, [r10 + rax*2]
lea r11, [0x140079c50]
mov r8, r9
sub r8, r11
cmp word [r9], 0x5c
jne 0x14006433f
mov edx, 1
mov rax, r11
movzx ecx, word [rax]
cmp word [r8 + rax], cx
jne 0x14006433f
add rax, 2
sub rdx, 1
jne 0x140064323
sub r9, r10
sar r9, 1
jmp 0x140064355
cmp r9, r10
je 0x14006434e
sub r9, 2
sub r8, 2
jmp 0x140064314
mov r9, 0xffffffffffffffff
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], 7
mov word [rbp - 0x59], r15w
lea r8, [r9 + 1]
cmp qword [rsi + 0x10], r8
cmovb r8, qword [rsi + 0x10]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14006438c
mov rdx, qword [rsi]
lea rcx, [rbp - 0x59]
call fcn.140002300
mov ebx, 3
mov dword [rsp + 0x20], ebx
lea rax, [rbp - 0x59]
cmp rsi, rax
je 0x140064411
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1400643e6
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400643e1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140064535
mov rcx, r8
call fcn.14003955c
mov qword [rsi + 0x18], 7
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x49]
movups xmmword [rsi + 0x10], xmm1
mov qword [rbp - 0x49], r15
mov eax, 7
mov qword [rbp - 0x41], rax
mov word [rbp - 0x59], r15w
jmp 0x140064415
mov rax, qword [rbp - 0x41]
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
cmp rax, 8
jb 0x140064458
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064453
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006453b
call fcn.14003955c
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], 7
mov word [rbp - 0x59], r15w
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140064476
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
mov rcx, rsi
call fcn.140002430
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14006448f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140064541
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400644e8
mov rdx, qword [rbp - 0x71]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400644d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006450e
call fcn.14003955c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rbp - 0x71], r15
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140039500
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14003fcc8
nop
lea rdx, str.Could_not_get_path_to_loader.
lea rcx, [rbp - 0x59]
call fcn.140001630
lea rdx, [0x140083d30]
lea rcx, [rbp - 0x59]
call fcn.14003b148
nop
call fcn.14003fcc8
nop
call fcn.14003fcc8
int3
mov rdx, rsi
lea rcx, [rbp - 0x39]
call fcn.140065120
nop
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.140002a30
nop
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.140002b90
nop
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.1400015d0
lea rdx, [0x140083d30]
lea rcx, [rbp - 0x59]
call fcn.14003b148
int3