Function at 0x1400646b0
Capabilities:
Check if file exists
Check os version
Create thread
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140106010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r12, r8
mov rdi, rdx
mov r13, rcx
mov byte [rsp + 0x30], 0
mov rsi, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400646fb
mov rsi, qword [rdx]
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x7c]
call fcn.140096c20
mov dword [rbp - 0x80], 0x114
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r14d, r14d
test eax, eax
je 0x140064865
cmp dword [rbp - 0x7c], 6
ja 0x14006473e
jne 0x140064865
cmp dword [rbp - 0x78], 2
jb 0x140064865
mov dword [rsp + 0x68], r14d
mov ecx, 0x38
call fcn.140091bc8
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 0x10], r14
mov r14d, 7
mov qword [rax + 0x18], r14
lea rax, [0x140064670]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], r13
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r14
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rsi + r8*2], r15w
jne 0x140064790
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140009140
lea rax, [rsp + 0x38]
cmp rbx, rax
je 0x1400647d2
mov rcx, rbx
call fcn.1400090d0
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x10], xmm1
mov word [rsp + 0x38], r15w
jmp 0x1400647d7
mov r14, qword [rsp + 0x50]
cmp r14, 8
jb 0x140064814
lea rdx, [r14*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006480f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064e43
call fcn.140091bc0
mov dword [rbx + 0x30], 3
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov r9, rbx
lea r8, [0x14002bbe0]
xor edx, edx
xor ecx, ecx
call fcn.1400a1978
mov rsi, rax
test rax, rax
je 0x140064865
mov edx, 0x186a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400648a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400648a0
cmp eax, 0x7f
je 0x1400648a0
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140064881
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
mov r9d, eax
lea r8, str.File_cannot_be_marked_as_tampered__Error__d_:__s
lea rdx, str.Crusader
mov rcx, qword [r13 + 8]
call fcn.14003bb00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15d, r14d
nop dword [rax + rax]
test r15d, r15d
je 0x1400648c0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [r12 + 0x40]
cmp rdx, 0xffffffffffffffff
je 0x14006492a
mov dword [rsp + 0x20], 0x6000000
mov r9d, 1
mov r8d, 0x10000
mov rcx, rdi
call fcn.14007ce70
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140064c0f
mov rbx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x14006490b
mov r9, qword [rdi]
mov dword [rsp + 0x20], eax
lea r8, str.Delete_on_close_handle__s__failed._Error:__d
lea rdx, str.Crusader
mov rcx, rbx
call fcn.14003bb00
jmp 0x140064a8e
mov qword [rsp + 0x70], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x68], eax
mov ecx, 0x38
call fcn.140091bc8
mov rsi, rax
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
lea rax, vtable.CInterCheckControl.0
mov qword [rsi], rax
mov qword [rsi + 0x30], 0xffffffffffffffff
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, vtable.CInterCheckControlNT.0
mov qword [rsi], rax
mov qword [rsp + 0x70], rsi
mov rcx, rsi
mov rax, qword [0x1400dfc30]
call qword [case.0x14007fe1f.0]
test eax, eax
je 0x1400649c7
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x14007fe1f.0]
test eax, eax
je 0x1400649c7
mov rax, qword [rsi]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x14007fe1f.0]
jmp 0x1400649ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rdi
call fcn.14007c850
movzx r14d, al
test al, al
jne 0x140064a19
mov rbx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400649fe
mov r9, qword [rdi]
mov dword [rsp + 0x20], eax
lea r8, str.File::Delete__s__failed._Error:__d
lea rdx, str.Crusader
mov rcx, rbx
call fcn.14003bb00
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x14007fe1f.0]
test eax, eax
je 0x140064a60
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x14007fe1f.0]
test eax, eax
je 0x140064a60
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x14007fe1f.0]
jmp 0x140064a67
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x14007fe1f.0]
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
test r14d, r14d
jne 0x140064d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov qword [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x68], eax
mov ecx, 0x38
call fcn.140091bc8
mov rsi, rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
lea rax, vtable.CInterCheckControl.0
mov qword [rsi], rax
mov qword [rsi + 0x30], 0xffffffffffffffff
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, vtable.CInterCheckControlNT.0
mov qword [rsi], rax
mov qword [rsp + 0x70], rsi
mov rcx, rsi
mov rax, qword [0x1400dfc30]
call qword [case.0x14007fe1f.0]
test eax, eax
je 0x140064b38
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x14007fe1f.0]
test eax, eax
je 0x140064b38
mov rax, qword [rsi]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x14007fe1f.0]
jmp 0x140064b3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp r14d, 5
jne 0x140064b9a
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140064b5b
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140064bad
mov r14d, 2
lea rcx, [rsp + 0x70]
call fcn.14005c720
mov rcx, qword [r13 + 8]
cmp r14d, 3
jne 0x140064e0f
cmp qword [rdi + 0x18], 8
jb 0x140064b8e
mov rdi, qword [rdi]
lea r9, [0x1400e6edc]
jmp 0x140064e20
lea eax, [r14 - 2]
cmp eax, 1
jbe 0x140064b6c
cmp r14d, 0x20
jne 0x140064dcb
test r15d, r15d
jne 0x140064bf0
mov rcx, rdi
call fcn.14007cfa0
test al, al
jne 0x140064bf0
mov rbx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x140064bd5
mov r9, qword [rdi]
mov dword [rsp + 0x20], eax
lea r8, str.File::ResetFileSecurity__s__failed._Error:__d
lea rdx, str.Crusader
mov rcx, rbx
call fcn.14003bb00
nop
lea rcx, [rsp + 0x70]
call fcn.14005c720
inc r15d
cmp r15d, 0x32
jge 0x140064dd5
xor r14d, r14d
jmp 0x1400648b0
mov qword [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x68], eax
mov ecx, 0x38
call fcn.140091bc8
mov rsi, rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
lea rax, vtable.CInterCheckControl.0
mov qword [rsi], rax
mov qword [rsi + 0x30], 0xffffffffffffffff
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, vtable.CInterCheckControlNT.0
mov qword [rsi], rax
mov qword [rsp + 0x70], rsi
mov rcx, rsi
mov rax, qword [0x1400dfc30]
call qword [case.0x14007fe1f.0]
test eax, eax
je 0x140064cb0
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x14007fe1f.0]
test eax, eax
je 0x140064cb0
mov rax, qword [rsi]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x14007fe1f.0]
jmp 0x140064cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [r12 + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140064cd1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x40], 0xffffffffffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x14007fe1f.0]
test eax, eax
je 0x140064d2b
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x14007fe1f.0]
test eax, eax
je 0x140064d2b
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x14007fe1f.0]
jmp 0x140064d32
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x14007fe1f.0]
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp qword [rdi + 0x18], 8
jb 0x140064d5a
mov rdi, qword [rdi]
lea eax, [r15 + 1]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
lea r9, [0x1400e40e0]
lea r8, str._S_deleted___d_attempt_s__:__s
lea rdx, str.Crusader
mov rcx, qword [r13 + 8]
call fcn.14003bb00
mov r8d, 0x40000000
mov byte [rsp + 0x30], 1
mov rcx, qword [r13 + 0x10]
mov rdx, r12
call fcn.140049420
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140091ba0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x70]
call fcn.14005c720
cmp qword [rdi + 0x18], 8
jb 0x140064ddf
mov rdi, qword [rdi]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r14d
lea r9, str.DeleteFile
lea r8, str._S___error__d:__s
lea rdx, str.Crusader
mov rcx, qword [r13 + 8]
call fcn.14003bb00
mov r8d, 0x80000000
jmp 0x140064d90
cmp qword [rdi + 0x18], 8
jb 0x140064e19
mov rdi, qword [rdi]
lea r9, [0x1400e40e0]
mov qword [rsp + 0x20], rdi
lea r8, str._S_no_longer_exists:__s
lea rdx, str.Crusader
call fcn.14003bb00
mov r8d, 0x1000000
jmp 0x140064d8b
call fcn.14009b188
int3