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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400d7c88]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
and qword [rsp + 0x48], 0
mov r12, rdx
mov r15, rcx
xor edi, edi
xor edx, edx
mov qword [rsp + 0x50], rdi
lea rcx, [rbp - 0x80]
mov r8d, 0x250
call fcn.1400860f0
and qword [rsp + 0x40], rdi
lea r9, str.SupportFiles.cab
and qword [rsp + 0x58], rdi
lea r8, [0x1400abd60]
lea rdx, str._ls_ls
lea rcx, [rsp + 0x48]
call fcn.14007a60c
mov r14d, eax
test eax, eax
jns 0x140016d5b
mov rcx, qword [str.8__r_]
lea r15, str.8__r_
cmp rcx, r15
je 0x140016d47
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x140016d47
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0x96
mov r9d, eax
call fcn.140004000
mov edx, r14d
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.140077d60
jmp 0x14001727a
mov r9, qword [rsp + 0x48]
lea rdx, [0x1400a8260]
mov r8, r15
lea rcx, [rsp + 0x40]
call fcn.14007a60c
mov r14d, eax
test eax, eax
jns 0x140016dc8
mov rcx, qword [str.8__r_]
lea r15, str.8__r_
cmp rcx, r15
je 0x140016daf
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x140016daf
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0x97
mov r9d, eax
call fcn.140004000
mov edx, r14d
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.140077d60
mov rbx, qword [rsp + 0x40]
jmp 0x140017260
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140079370
mov r14d, eax
cmp eax, 0x80070004
je 0x14001721d
cmp eax, 0x80070001
jle 0x14001721d
add eax, 0x7ff8fffa
cmp eax, 0x7ff8fff9
jbe 0x14001721d
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x58]
mov rcx, r15
call fcn.14006c468
mov r14d, eax
test eax, eax
jns 0x140016e5f
mov rcx, qword [str.8__r_]
lea r15, str.8__r_
mov r12b, 1
cmp rcx, r15
je 0x140016e4b
test byte [rcx + 0x1c], r12b
je 0x140016e4b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0x99
mov r9d, eax
call fcn.140004000
mov edx, r14d
lea rcx, str.ERROR:_InitMpCab___failed___lx__n
call fcn.140077d60
jmp 0x1400171ca
mov rax, qword [r12 + 8]
lea r15, str.8__r_
mov r13, qword [r12]
mov r12b, 1
mov qword [rsp + 0x70], rax
cmp r13, rax
jmp 0x1400171bc
mov r14, qword [r13]
mov al, byte [r13 + 8]
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x30], al
test r14, r14
je 0x1400171b3
test rdi, rdi
je 0x140016eac
mov rcx, rdi
call fcn.140083d40
and qword [rsp + 0x50], 0
mov r8, r14
lea rdx, str._s
lea rcx, [rsp + 0x50]
call fcn.14007a60c
mov edi, eax
test eax, eax
jns 0x140016f08
mov rcx, qword [str.8__r_]
cmp rcx, r15
je 0x140016ef0
test byte [rcx + 0x1c], r12b
je 0x140016ef0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0x9a
mov r9d, eax
call fcn.140004000
mov edx, edi
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.140077d60
mov rdi, qword [rsp + 0x50]
jmp 0x1400171b3
mov rdi, qword [rsp + 0x50]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x140016f63
call fcn.14007a89c
mov r14d, eax
mov rcx, qword [str.8__r_]
cmp rcx, r15
je 0x140016f57
test byte [rcx + 0x1c], r12b
je 0x140016f57
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0x9b
mov r9d, eax
call fcn.140004000
lea rcx, str.ERROR:_Invalid_file_handle_in_FindFirstFileW_____lx__n
jmp 0x1400171ab
mov r13b, byte [rsp + 0x30]
mov rdi, rax
test byte [rbp - 0x80], 0x10
jne 0x1400170fc
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x54]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400170fc
test rbx, rbx
je 0x140016f9f
mov rcx, rbx
call fcn.140083d40
and qword [rsp + 0x40], 0
lea r9, [rbp - 0x54]
mov r8, r14
lea rdx, [0x1400a8260]
lea rcx, [rsp + 0x40]
call fcn.14007a60c
mov ebx, eax
test eax, eax
jns 0x140016fff
mov rcx, qword [str.8__r_]
cmp rcx, r15
je 0x140016fe7
test byte [rcx + 0x1c], r12b
je 0x140016fe7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0x9c
mov r9d, eax
call fcn.140004000
mov edx, ebx
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.140077d60
mov rbx, qword [rsp + 0x40]
jmp 0x1400170fc
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
mov r8, rbx
mov rdx, rbx
call fcn.14006cbc4
mov r14d, eax
test eax, eax
jns 0x14001705d
mov rcx, qword [str.8__r_]
cmp rcx, r15
je 0x140017043
test byte [rcx + 0x1c], r12b
je 0x140017043
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.14001140c
mov r9, rbx
lea rcx, str.ERROR:_AddFileToMpCab___failed___lx__r_nFile:__ls_r_nAlias:__ls_r_n
mov r8, rbx
mov edx, r14d
call fcn.140077d60
jmp 0x1400170f7
test r13b, r13b
je 0x1400170f7
mov r8d, 0xc
lea rdx, [rbp - 0x54]
lea rcx, str.mpdetection_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1400170f7
mov r8d, 6
lea rdx, [rbp - 0x54]
lea rcx, str.mplog_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1400170f7
mov r8d, 0xd
lea rdx, [rbp - 0x54]
lea rcx, str.mpwpptracing_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1400170f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400170f7
call fcn.14007a89c
mov rcx, qword [str.8__r_]
cmp rcx, r15
je 0x1400170f7
test byte [rcx + 0x1c], 2
je 0x1400170f7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0x9e
mov dword [rsp + 0x20], eax
mov r9, rbx
call fcn.140003c68
mov r14, qword [rsp + 0x38]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140016f6b
call fcn.14007a89c
mov rdi, qword [rsp + 0x50]
mov r14d, eax
mov r13, qword [rsp + 0x68]
cmp eax, 0x80070012
je 0x140017163
mov rcx, qword [str.8__r_]
cmp rcx, r15
je 0x140017154
test byte [rcx + 0x1c], r12b
je 0x140017154
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0x9f
mov r9d, eax
call fcn.140004000
mov edx, r14d
lea rcx, str.ERROR:_FindNextFile___failed___lx__n
call fcn.140077d60
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x1400171b3
call fcn.14007a89c
mov r14d, eax
mov rcx, qword [str.8__r_]
cmp rcx, r15
je 0x1400171a4
test byte [rcx + 0x1c], r12b
je 0x1400171a4
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0xa0
mov r9d, eax
call fcn.140004000
lea rcx, str.ERROR:_FindClose___failed___lx__n
mov edx, r14d
call fcn.140077d60
add r13, 0x10
cmp r13, qword [rsp + 0x70]
mov qword [rsp + 0x68], r13
jne 0x140016e7f
xor r14d, r14d
cmp qword [rsp + 0x58], 0
je 0x140017260
mov rcx, qword [rsp + 0x58]
call fcn.14006cec0
mov r13d, eax
test eax, eax
jns 0x140017260
mov rcx, qword [str.8__r_]
cmp rcx, r15
je 0x140017211
test byte [rcx + 0x1c], r12b
je 0x140017211
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0xa1
mov r9d, eax
call fcn.140004000
mov edx, r13d
lea rcx, str.ERROR:_CloseMpCab___failed___lx__n
jmp 0x14001725b
mov rcx, qword [str.8__r_]
lea r15, str.8__r_
cmp rcx, r15
je 0x140017251
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x140017251
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ad968]
mov edx, 0x98
mov r9d, r14d
call fcn.140004000
mov edx, r14d
lea rcx, str.ERROR:_UtilDeletePathSafe___failed___lx__n
call fcn.140077d60
test rbx, rbx
je 0x14001726d
mov rcx, rbx
call fcn.140083d40
test rdi, rdi
je 0x14001727a
mov rcx, rdi
call fcn.140083d40
cmp qword [rsp + 0x48], 0
je 0x14001728c
mov rcx, qword [rsp + 0x48]
call fcn.140083d40
mov eax, r14d
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140083d20
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret