Function at 0x140054288
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 [0x140173950]
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.140032e00
and qword [rsp + 0x40], rdi
lea r9, str.SupportFiles.cab
and qword [rsp + 0x58], rdi
lea r8, [0x140131120]
lea rdx, str._ls_ls
lea rcx, [rsp + 0x48]
call fcn.1400fb304
mov r14d, eax
test eax, eax
jns 0x140054357
mov rcx, qword [0x14016d280]
lea r15, [0x14016d280]
cmp rcx, r15
je 0x140054343
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x140054343
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0x9e
mov r9d, eax
call fcn.140044380
mov edx, r14d
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400f5500
jmp 0x140054872
mov r9, qword [rsp + 0x48]
lea rdx, [0x14012d070]
mov r8, r15
lea rcx, [rsp + 0x40]
call fcn.1400fb304
mov r14d, eax
test eax, eax
jns 0x1400543c4
mov rcx, qword [0x14016d280]
lea r15, [0x14016d280]
cmp rcx, r15
je 0x1400543ab
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x1400543ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0x9f
mov r9d, eax
call fcn.140044380
mov edx, r14d
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400f5500
mov rbx, qword [rsp + 0x40]
jmp 0x140054858
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400f6dd0
mov r14d, eax
cmp eax, 0x80070004
je 0x140054815
cmp eax, 0x80070001
jle 0x140054815
add eax, 0x7ff8fffa
cmp eax, 0x7ff8fff9
jbe 0x140054815
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x58]
mov rcx, r15
call fcn.1400e9b4c
mov r14d, eax
test eax, eax
jns 0x14005445b
mov rcx, qword [0x14016d280]
lea r15, [0x14016d280]
mov r12b, 1
cmp rcx, r15
je 0x140054447
test byte [rcx + 0x1c], r12b
je 0x140054447
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0xa1
mov r9d, eax
call fcn.140044380
mov edx, r14d
lea rcx, str.ERROR:_InitMpCab___failed___lx__n
call fcn.1400f5500
jmp 0x1400547c2
mov rax, qword [r12 + 8]
lea r15, [0x14016d280]
mov r13, qword [r12]
mov r12b, 1
mov qword [rsp + 0x70], rax
cmp r13, rax
jmp 0x1400547b4
mov r14, qword [r13]
mov al, byte [r13 + 8]
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x30], al
test r14, r14
je 0x1400547ab
test rdi, rdi
je 0x1400544a8
mov rcx, rdi
call fcn.140030ba0
and qword [rsp + 0x50], 0
mov r8, r14
lea rdx, str._s
lea rcx, [rsp + 0x50]
call fcn.1400fb304
mov edi, eax
test eax, eax
jns 0x140054504
mov rcx, qword [0x14016d280]
cmp rcx, r15
je 0x1400544ec
test byte [rcx + 0x1c], r12b
je 0x1400544ec
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0xa2
mov r9d, eax
call fcn.140044380
mov edx, edi
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400f5500
mov rdi, qword [rsp + 0x50]
jmp 0x1400547ab
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 0x14005455f
call fcn.1400fb4fc
mov r14d, eax
mov rcx, qword [0x14016d280]
cmp rcx, r15
je 0x140054553
test byte [rcx + 0x1c], r12b
je 0x140054553
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0xa3
mov r9d, eax
call fcn.140044380
lea rcx, str.ERROR:_Invalid_file_handle_in_FindFirstFileW_____lx__n
jmp 0x1400547a3
mov r13b, byte [rsp + 0x30]
mov rdi, rax
test byte [rbp - 0x80], 0x10
jne 0x1400546f4
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x54]
call fcn.1400059ec
test eax, eax
je 0x1400546f4
test rbx, rbx
je 0x14005459a
mov rcx, rbx
call fcn.140030ba0
and qword [rsp + 0x40], 0
lea r9, [rbp - 0x54]
mov r8, r14
lea rdx, [0x14012d070]
lea rcx, [rsp + 0x40]
call fcn.1400fb304
mov ebx, eax
test eax, eax
jns 0x1400545fa
mov rcx, qword [0x14016d280]
cmp rcx, r15
je 0x1400545e2
test byte [rcx + 0x1c], r12b
je 0x1400545e2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0xa4
mov r9d, eax
call fcn.140044380
mov edx, ebx
lea rcx, str.ERROR:_NewSprintfW___failed___lx__n
call fcn.1400f5500
mov rbx, qword [rsp + 0x40]
jmp 0x1400546f4
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
mov r8, rbx
mov rdx, rbx
call fcn.1400e95f4
mov r14d, eax
test eax, eax
jns 0x140054658
mov rcx, qword [0x14016d280]
cmp rcx, r15
je 0x14005463e
test byte [rcx + 0x1c], r12b
je 0x14005463e
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.140061c20
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.1400f5500
jmp 0x1400546ef
test r13b, r13b
je 0x1400546ef
mov r8d, 0xc
lea rdx, [rbp - 0x54]
lea rcx, str.mpdetection_
call fcn.14000f4ec
test eax, eax
je 0x1400546ef
mov r8d, 6
lea rdx, [rbp - 0x54]
lea rcx, str.mplog_
call fcn.14000f4ec
test eax, eax
je 0x1400546ef
mov r8d, 0xd
lea rdx, [rbp - 0x54]
lea rcx, str.mpwpptracing_
call fcn.14000f4ec
test eax, eax
je 0x1400546ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400546ef
call fcn.1400fb4fc
mov rcx, qword [0x14016d280]
cmp rcx, r15
je 0x1400546ef
test byte [rcx + 0x1c], 2
je 0x1400546ef
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0xa6
mov dword [rsp + 0x20], eax
mov r9, rbx
call fcn.140044694
mov r14, qword [rsp + 0x38]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140054567
call fcn.1400fb4fc
mov rdi, qword [rsp + 0x50]
mov r14d, eax
mov r13, qword [rsp + 0x68]
cmp eax, 0x80070012
je 0x14005475b
mov rcx, qword [0x14016d280]
cmp rcx, r15
je 0x14005474c
test byte [rcx + 0x1c], r12b
je 0x14005474c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0xa7
mov r9d, eax
call fcn.140044380
mov edx, r14d
lea rcx, str.ERROR:_FindNextFile___failed___lx__n
call fcn.1400f5500
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x1400547ab
call fcn.1400fb4fc
mov r14d, eax
mov rcx, qword [0x14016d280]
cmp rcx, r15
je 0x14005479c
test byte [rcx + 0x1c], r12b
je 0x14005479c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0xa8
mov r9d, eax
call fcn.140044380
lea rcx, str.ERROR:_FindClose___failed___lx__n
mov edx, r14d
call fcn.1400f5500
add r13, 0x10
cmp r13, qword [rsp + 0x70]
mov qword [rsp + 0x68], r13
jne 0x14005447b
xor r14d, r14d
cmp qword [rsp + 0x58], 0
je 0x140054858
mov rcx, qword [rsp + 0x58]
call fcn.1400e98e8
mov r13d, eax
test eax, eax
jns 0x140054858
mov rcx, qword [0x14016d280]
cmp rcx, r15
je 0x140054809
test byte [rcx + 0x1c], r12b
je 0x140054809
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0xa9
mov r9d, eax
call fcn.140044380
mov edx, r13d
lea rcx, str.ERROR:_CloseMpCab___failed___lx__n
jmp 0x140054853
mov rcx, qword [0x14016d280]
lea r15, [0x14016d280]
cmp rcx, r15
je 0x140054849
mov r12b, 1
test byte [rcx + 0x1c], r12b
je 0x140054849
mov rcx, qword [rcx + 0x10]
lea r8, [0x14012cc20]
mov edx, 0xa0
mov r9d, r14d
call fcn.140044380
mov edx, r14d
lea rcx, str.ERROR:_UtilDeletePathSafe___failed___lx__n
call fcn.1400f5500
test rbx, rbx
je 0x140054865
mov rcx, rbx
call fcn.140030ba0
test rdi, rdi
je 0x140054872
mov rcx, rdi
call fcn.140030ba0
cmp qword [rsp + 0x48], 0
je 0x140054884
mov rcx, qword [rsp + 0x48]
call fcn.140030ba0
mov eax, r14d
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140030b80
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