Function at 0x1400cd02c
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rax, qword [rbp + 0x488]
lea rcx, [rbp + 0x1f2]
mov r15, qword [0x140151148]
mov r13, r8
mov rbx, rdx
mov qword [rsp + 0x70], rax
xor r14d, r14d
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1f0], r14w
call sub.msvcrt.dll_memset
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], r14d
cmp dword [r15 + 8], r14d
jne 0x1400cd0ae
mov eax, 0x80004005
jmp 0x1400cd61e
mov rdi, 0xffffffff80000002
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, str.AllowUploadOnMeteredNetworks
lea rdx, str.SoftwareMicrosoftSQMClientWindows
call fcn.1400ca758
mov ecx, dword [rsp + 0x50]
lea r9, [rsp + 0x54]
test eax, eax
lea r8, str.AllowUploadOnUnknownNetworks
mov eax, r14d
lea rdx, str.SoftwareMicrosoftSQMClientWindows
cmovne ecx, r14d
test ecx, ecx
mov dword [rsp + 0x50], ecx
mov rcx, rdi
sete al
mov dword [r15 + 0x2e4], eax
call fcn.1400ca758
mov ecx, dword [rsp + 0x54]
test eax, eax
mov r12d, 1
cmovne ecx, r14d
mov dword [rsp + 0x54], ecx
cmp dword [r15 + 0x2f8], r14d
je 0x1400cd12c
mov edx, r14d
test ecx, ecx
je 0x1400cd12f
mov edx, r12d
mov ecx, dword [r15 + 0x2e4]
mov dword [r15 + 0x2e8], edx
call fcn.1400cbc54
test eax, eax
jne 0x1400cd17c
mov rcx, qword [0x14014dd40]
lea r14, [0x14014dd40]
cmp rcx, r14
je 0x1400cd172
test byte [rcx + 0x1c], 4
je 0x1400cd172
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x16]
lea r8, [0x140128308]
call fcn.140003614
mov eax, 0x1000010c
jmp 0x1400cd61e
mov r8, rbx
lea rcx, [rbp + 0x1f0]
mov edx, 0x104
call fcn.140036ea4
mov edi, eax
test eax, eax
jns 0x1400cd1d1
mov rcx, qword [0x14014dd40]
lea r14, [0x14014dd40]
cmp rcx, r14
je 0x1400cd1c7
test byte [rcx + 0x1c], r12b
je 0x1400cd1c7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128308]
mov edx, reloc.Cabinet.dll_FDIDestroy
mov r9d, eax
call fcn.1400036d4
mov eax, 0x80070057
jmp 0x1400cd61e
test r13, r13
je 0x1400cd1f8
lea rdx, [0x140127ce0]
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1400cd1f8
lea rsi, str.winsqm8
mov qword [rsp + 0x68], rsi
jmp 0x1400cd1fd
mov qword [rsp + 0x68], r13
lea rax, [r15 + 0x48]
mov rcx, rax
mov qword [rbp - 0x78], rax
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [r15 + 8], r14d
jne 0x1400cd24b
mov rcx, qword [0x14014dd40]
lea r14, [0x14014dd40]
cmp rcx, r14
je 0x1400cd241
test byte [rcx + 0x1c], r12b
je 0x1400cd241
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128308]
mov edx, DispGetParam
call fcn.140003614
mov edi, 0x8000ffff
jmp 0x1400cd613
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rsi, rax
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x1f0]
mov rcx, rsi
sub rcx, rax
mov eax, 0x103
sar rcx, 1
sub rax, rcx
mov qword [rbp - 0x70], rax
test rsi, rsi
jne 0x1400cd2b7
mov rcx, qword [0x14014dd40]
lea r14, [0x14014dd40]
cmp rcx, r14
je 0x1400cd2ad
test byte [rcx + 0x1c], r12b
je 0x1400cd2ad
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x19]
lea r8, [0x140128308]
call fcn.140003614
mov edi, 0x80070057
jmp 0x1400cd613
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp - 0x80], rax
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cd30a
mov rcx, qword [0x14014dd40]
lea r14, [0x14014dd40]
cmp rcx, r14
je 0x1400cd300
test byte [rcx + 0x1c], 1
je 0x1400cd300
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x1b]
mov r9, rbx
lea r8, [0x140128308]
call fcn.140003638
mov edi, 0x90080108
jmp 0x1400cd613
lea r14, [0x14014dd40]
xor ebx, ebx
cmp dword [rbp - 0x60], 0x10
je 0x1400cd547
mov rdx, qword [rbp - 0x70]
lea r8, [rbp - 0x34]
mov rcx, rsi
call fcn.140036ea4
mov edi, eax
test eax, eax
jns 0x1400cd36a
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400cd547
test byte [rcx + 0x1c], 1
je 0x1400cd547
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128308]
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r9d, eax
call fcn.1400036d4
jmp 0x1400cd547
mov edi, 0x1b0
mov ecx, edi
call fcn.14010617c
mov qword [rsp + 0x78], rax
mov rsi, rax
test rax, rax
je 0x1400cd449
mov qword [rax], rbx
or ecx, 0xffffffff
mov qword [rax + 8], 0
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0
mov qword [rax + 0x20], rbx
mov qword [rax + 0x28], 0
mov qword [rax + 0x30], rbx
mov qword [rax + 0x38], 0
mov qword [rax + 0x40], rbx
mov qword [rax + 0x48], rbx
mov dword [rax + 0x50], ebx
mov qword [rax + 0x58], rbx
mov qword [rax + 0x60], rbx
mov dword [rax + 0x68], ecx
lea rax, [0x140118970]
mov qword [rsi + 0x70], rax
lea rax, [0x140118970]
mov qword [rsi + 0x78], rbx
mov qword [rsi + 0x80], rbx
mov dword [rsi + 0x88], ebx
mov qword [rsi + 0x90], rbx
mov qword [rsi + 0x98], rbx
mov dword [rsi + 0xa0], ecx
mov qword [rsi + 0xa8], rax
mov qword [rsi + 0xb0], rbx
mov qword [rsi + 0xb8], rbx
mov dword [rsi + 0xc0], ebx
mov qword [rsi + 0xc8], rbx
mov qword [rsi + 0xd0], rbx
mov dword [rsi + 0xd8], ecx
mov qword [rsi + 0x190], rbx
mov qword [rsi + 0x198], 0
jmp 0x1400cd44c
mov rsi, rbx
mov qword [rsp + 0x78], rsi
test rsi, rsi
je 0x1400cd59b
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x1f0]
mov rax, qword [rbp + 0x478]
mov r9, r13
mov qword [rsp + 0x30], rax
mov rdx, rsi
mov rax, qword [rsp + 0x68]
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.1400ccb84
mov edi, eax
mov eax, dword [rsp + 0x58]
test edi, edi
jns 0x1400cd4a5
test eax, eax
je 0x1400cd57a
test eax, eax
je 0x1400cd55d
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400cd501
test byte [rcx + 0x1c], 4
je 0x1400cd4de
mov r9, qword [rsi]
lea r8, [0x140128308]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1d
call fcn.140003638
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400cd501
test byte [rcx + 0x1c], 4
je 0x1400cd501
mov r9, qword [rsi]
lea r8, [0x140128308]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1e
call fcn.140003638
mov r12, qword [rsi + 0x158]
test r12, r12
je 0x1400cd525
mov rax, qword [r12]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, r12
call rbx
xor ebx, ebx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
call fcn.1400ccf90
mov rcx, rsi
call fcn.1400ccab0
mov r12, qword [rbp - 0x80]
mov rsi, qword [rsp + 0x60]
lea rdx, [rbp - 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400cd5ca
jmp 0x1400cd313
test byte [rsi + 0xe8], 8
jne 0x1400cd4d7
lea rcx, [r15 + 0x10]
lea rdx, [rsp + 0x78]
call fcn.1400d2540
mov edi, eax
test edi, edi
js 0x1400cd589
mov rax, qword [rsp + 0x70]
mov edi, ebx
inc dword [rax]
jmp 0x1400cd542
mov rdx, rsi
call fcn.1400ccf90
mov rcx, rsi
call fcn.1400ccab0
jmp 0x1400cd542
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400cd5c5
test byte [rcx + 0x1c], 1
je 0x1400cd5c5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128308]
mov edx, 0x1c
mov r9d, edi
call fcn.1400036d4
mov edi, 0x8007000e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x70]
cmp dword [rax], ebx
jbe 0x1400cd613
cmp dword [r15 + 0xc], ebx
jne 0x1400cd613
lea rcx, [r15 + 0xb0]
mov rdx, r13
call fcn.1400d8f6c
mov rdx, qword [rsp + 0x68]
lea rcx, [r15 + 0xc0]
call fcn.1400d8f6c
mov rcx, r15
mov dword [r15 + 0xd0], ebx
call fcn.1400cd650
mov edi, eax
mov rcx, qword [rbp - 0x78]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, edi
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140106ed0
mov rbx, qword [rsp + 0x550]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret