Function at 0x1600c52a4
Capabilities:
Delete file
Enumerate files on windows
Get disk information

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x9f0]
sub rsp, 0xaf0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xb20], rbx
mov rax, qword [0x160270bd8]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov rax, qword [rdx]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x16003fc5a.0]
test eax, eax
js 0x1600c55c6
cmp eax, 1
je 0x1600c55c6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1600c55c6
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1600c55c6
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rax + 0x68]
call qword [case.0x16003fc5a.0]
test al, al
je 0x1600c55c6
mov rax, qword [rbx]
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
test eax, eax
js 0x1600c55c6
mov r8d, 0x104
lea rdx, [rbp + 0x3b0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
test eax, eax
je 0x1600c55c6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
lea rcx, [rbp + 0x3b0]
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rcx + r8*2], 0
jne 0x1600c53a1
mov eax, eax
cmp r8, rax
ja 0x1600c55c6
lea rdx, [rbp + 0x3b0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1600c55c6
mov r8d, 0x104
lea rdx, [rbp + 0x7d0]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x1600c55c6
mov qword [rsp + 0x40], rsi
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1600c55c6
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x7d0]
mov rax, qword [rax + 0x48]
call qword [case.0x16003fc5a.0]
test eax, eax
js 0x1600c55c6
lea rax, [rbp + 0x3b0]
mov rcx, rbx
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x1600c5430
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rcx*2]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x40]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call fcn.160059e34
test eax, eax
js 0x1600c55c6
lea rax, [rbp + 0x1a0]
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x1600c5475
cmp word [rbp + rbx*2 + 0x19e], 0x5c
je 0x1600c5521
mov ecx, 0x104
lea rax, [rbp + 0x1a0]
cmp word [rax], 0
je 0x1600c54ab
add rax, 2
sub rcx, 1
jne 0x1600c549b
mov eax, 0x104
sub rax, rcx
mov r8, rsi
test rcx, rcx
cmovne r8, rax
je 0x1600c55c6
mov ecx, 0x104
sub rcx, r8
lea rdx, [rbp + 0x1a0]
lea rdx, [rdx + r8*2]
je 0x1600c550d
lea rax, [r8 + 0x7ffffefa]
add rax, rcx
lea r8, [0x1601d4914]
sub r8, rdx
test rax, rax
je 0x1600c550d
movzx r9d, word [r8 + rdx]
test r9w, r9w
je 0x1600c550d
mov word [rdx], r9w
add rdx, 2
dec rax
sub rcx, 1
jne 0x1600c54ec
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
mov word [rax], si
je 0x1600c55c6
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1a0]
lea r8, [0x1601d60d0]
mov edx, 0x104
lea rcx, [rbp + 0x5c0]
call fcn.160059e34
test eax, eax
js 0x1600c55c6
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1600c55c6
test byte [rsp + 0x50], 0x10
jne 0x1600c55aa
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1a0]
lea r8, [0x1601d60d0]
mov edx, 0x104
lea rcx, [rbp + 0x5c0]
call fcn.160059e34
test eax, eax
js 0x1600c55aa
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x1600c5569
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.16006e590
mov rbx, qword [rsp + 0xb20]
add rsp, 0xaf0
pop rdi
pop rsi
pop rbp
ret