Function at 0x140004dd0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1400b8080]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rcx
xor esi, esi
mov rax, qword [rcx + 0x368]
cmp rax, 2
jb 0x140004f44
lea rbx, [rcx + 0x358]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140004e22
mov rcx, qword [rbx]
cmp word [rcx + rax*2], 0x5c
je 0x140004e38
lea rdx, [0x140097b9c]
mov rcx, rbx
call fcn.140007e60
mov rdx, rbx
lea rcx, [rbp - 0x41]
call fcn.140002800
mov rdx, rax
mov rcx, rdi
call fcn.140004b00
cmp qword [rbx + 0x18], 7
jbe 0x140004e59
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140004f6a
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
lea r8d, [rax + 0x11]
lea rdx, str.STRING_PATH_ERROR
lea rcx, [rbp - 1]
call fcn.140002130
nop
call fcn.14001c190
mov rcx, rax
lea r8, [rbp - 1]
lea rdx, [rbp - 0x41]
call fcn.14001cb70
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x140004ee4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004edf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005343
call fcn.140061530
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 7
cmova rdx, qword [rbp - 0x41]
xor r9d, r9d
lea r8, [0x140097bb8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp - 0x29]
cmp rdx, 7
jbe 0x140004f44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005343
call fcn.140061530
xor al, al
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140061510
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rdx, str.NBA2K24_Tools
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140004fa7
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, str.NBA2K24_Tools
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x140004f80
lea r9, [rdi + 0x358]
mov rcx, qword [r9 + 0x10]
movabs rbx, 0x7ffffffffffffffe
mov rax, rbx
sub rax, rcx
cmp rax, 0x11
jb 0x140005349
cmp qword [r9 + 0x18], 7
jbe 0x140004fd6
mov r9, qword [r9]
mov qword [rsp + 0x30], reloc.COMCTL32.dll_InitCommonControls
lea r14, [0x140097d70]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x21]
call fcn.140008c50
nop
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140005212
lea rcx, [rdi + 0x358]
cmp qword [rdi + 0x370], 7
jbe 0x14000502e
mov rcx, qword [rdi + 0x358]
mov qword [rsp + 0x20], InitCommonControls
lea r9, str.NBA2K24_Tools_
xor r8d, r8d
mov rdx, qword [rdi + 0x368]
call fcn.140002b80
cmp rax, 0xffffffffffffffff
jne 0x140005066
lea rcx, [rdi + 0x358]
lea rdx, str.NBA2K24_Tools_
call fcn.140007e60
lea r9, [rdi + 0x358]
mov rcx, qword [r9 + 0x10]
mov rax, rbx
sub rax, rcx
cmp rax, 0x11
jb 0x140005355
cmp qword [r9 + 0x18], 7
jbe 0x14000508b
mov r9, qword [r9]
mov qword [rsp + 0x30], reloc.COMCTL32.dll_InitCommonControls
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x41]
call fcn.140008c50
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x1400050e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000535b
call fcn.140061530
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rbp - 0x31]
movups xmmword [rbp - 0x11], xmm1
lea rdx, [rdi + 0x358]
lea rcx, [rbp - 0x41]
call fcn.140002800
mov rdx, rax
mov rcx, rdi
call fcn.140004b00
lea rcx, [rdi + 0x358]
cmp qword [rcx + 0x18], 7
jbe 0x140005123
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140005233
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
lea r8d, [rax + 0x11]
lea rdx, str.STRING_PATH_ERROR
lea rcx, [rbp - 0x41]
call fcn.140002130
nop
call fcn.14001c190
mov rcx, rax
lea r8, [rbp - 0x41]
lea rdx, [rbp - 1]
call fcn.14001cb70
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 7
jbe 0x1400051ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000534f
call fcn.140061530
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 7
cmova rdx, qword [rbp - 1]
xor r9d, r9d
lea r8, [0x140097bb8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x14000520b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005206
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000534f
call fcn.140061530
xor bl, bl
jmp 0x1400052f9
lea rax, [0x1400be158]
cmp qword [0x1400be170], 7
cmova rax, qword [0x1400be158]
mov qword [0x1400be168], rsi
mov word [rax], si
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [rdi + 0x358]
mov rax, qword [r9 + 0x10]
sub rbx, rax
cmp rbx, 9
jb 0x140005355
cmp qword [r9 + 0x18], 7
jbe 0x140005269
mov r9, qword [r9]
mov qword [rsp + 0x30], 9
lea rcx, str.DataData
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x1f]
call fcn.140008c50
nop
lea rcx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 7
cmova rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rdi
call fcn.140005370
movzx ebx, al
mov rdx, qword [rbp + 0x37]
cmp rdx, 7
jbe 0x1400052e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000535b
call fcn.140061530
movdqa xmm0, xmmword [0x1400a4610]
movdqu xmmword [rbp + 0x2f], xmm0
mov word [rbp + 0x1f], si
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x140005335
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005330
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000533d
call fcn.140061530
movzx eax, bl
jmp 0x140004f46
call fcn.14006a6c0
int3
call fcn.14006a6c0
int3
call fcn.1400014b0
nop
call fcn.14006a6c0
int3
call fcn.1400014b0
int3
call fcn.14006a6c0
int3