Function at 0x14002bc10
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
mov eax, 0x3a0
call fcn.140189b00
sub rsp, rax
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rsi, rcx
mov rbp, rdx
lea rcx, [rsp + 0x281]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x280], 0
call fcn.140041940
lea rcx, [rsp + 0x171]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x170], 0
call fcn.140041940
xor ebx, ebx
lea r12, str.CleanSampleSubmissionFolder
lea r9, str._s___Target_folder___s_
lea rdx, str..cnttmss_UploadSample.cpp
lea r8d, [rbx + 0x44]
lea ecx, [rbx + 0x49]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
call fcn.1400382e0
lea rcx, [rsp + 0x280]
mov r8, rbp
mov edx, 0x104
call fcn.1400433f0
lea r8, str..
lea rcx, [rsp + 0x280]
mov edx, 0x104
call fcn.1400434a0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x280]
call fcn.140043950
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x14002bf24
test ebx, ebx
jne 0x14002bf04
lea rax, [rsp + 0x68]
lea r9, str._s___Find_File___s_s_
lea r8d, [rbx + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, str..cnttmss_UploadSample.cpp
lea ecx, [rbx + 0x44]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
call fcn.1400382e0
mov r11, qword [rsp + 0x48]
lea r9, str._s___From__u__FileCreationTime__u_
lea r8d, [rbx + 0x51]
mov qword [rsp + 0x30], r11
lea rdx, str..cnttmss_UploadSample.cpp
lea ecx, [rbx + 0x44]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r12
call fcn.1400382e0
test byte [rsp + 0x40], 0x10
jne 0x14002bf04
cmp qword [rsp + 0x48], rsi
jge 0x14002bf04
lea rcx, [rsp + 0x170]
mov r8, rbp
mov edx, 0x105
call fcn.1400433f0
lea r8, [0x1401cd150]
lea rcx, [rsp + 0x170]
mov edx, 0x105
call fcn.1400434a0
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x170]
mov edx, 0x105
call fcn.1400434a0
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14002bed5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x5a
lea r9, str._s___Fail_to_delete_file__error__d___file__s_
mov ebx, eax
lea rax, [rsp + 0x170]
lea rdx, str..cnttmss_UploadSample.cpp
mov qword [rsp + 0x30], rax
lea ecx, [r8 - 0x15]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r12
call fcn.1400382e0
cmp ebx, 5
jne 0x14002bf04
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x14002bf04
and eax, 0xfffffffe
lea rcx, [rsp + 0x170]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x14002be5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._s___SetFileAttributes____error__d_
lea r8d, [rbx + 0x5e]
mov dword [rsp + 0x28], eax
lea ecx, [rbx + 0x40]
jmp 0x14002bef3
mov r8d, 0x66
lea r9, str._s___Successfully_SetFileAttributes__
lea rdx, str..cnttmss_UploadSample.cpp
lea ecx, [r8 - 0x22]
mov qword [rsp + 0x20], r12
call fcn.1400382e0
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14002bec9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x170]
mov r8d, 0x69
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea r9, str._s___Fail_to_delete_file__error__d___file__s_
lea ecx, [r8 - 0x24]
lea rdx, str..cnttmss_UploadSample.cpp
mov qword [rsp + 0x20], r12
call fcn.1400382e0
jmp 0x14002bf04
mov r8d, WSASetLastError
lea ecx, [r8 - 0x27]
jmp 0x14002bedf
mov r8d, WSACleanup
lea ecx, [r8 - 0x28]
lea rax, [rsp + 0x170]
lea r9, str._s___Sucessfully_deleteFile__s_
mov qword [rsp + 0x28], rax
lea rdx, str..cnttmss_UploadSample.cpp
mov qword [rsp + 0x20], r12
call fcn.1400382e0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140043ac0
cmp eax, 0xffffffff
mov ebx, eax
jne 0x14002bcf7
mov rcx, rdi
call fcn.140043920
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140041910
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret