Function at 0x140016d70
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rsi, rdx
mov rdx, rcx
lea rcx, [rbp + 0x88]
call fcn.140017064
nop
mov rdx, qword [rax]
lea rcx, [rbp + 0x78]
call fcn.140009580
nop
mov rdx, qword [rbp + 0x88]
add rdx, 0xffffffffffffffe8
or r15, 0xffffffffffffffff
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
xor r14d, r14d
test eax, eax
jg 0x140016dd2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.ExcludedDirectories.lst
lea rcx, [rbp + 0x78]
call fcn.140009210
mov edi, 1
test rsi, rsi
je 0x140016f74
mov rax, r15
inc rax
cmp word [rsi + rax*2], r14w
jne 0x140016df3
test rax, rax
je 0x140016f74
mov rbx, qword [rbp + 0x78]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14001993c
nop
jmp 0x140016e6b
mov eax, edi
inc edi
cmp eax, 0xa
jge 0x140016e7b
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [r9 + 0x12]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.14001ae44
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
je 0x140016e5d
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140016e6b
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, qword [rsp + 0x30]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x40], 2
jne 0x140016e1a
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x40], 2
je 0x140016e90
mov edi, 0x80070005
jmp 0x140016f30
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x140016ff4
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x80], rbx
cmp rsi, 0x10000
jae 0x140016ee0
movzx edi, si
xor edx, edx
mov ecx, edi
call fcn.14000c4dc
test rax, rax
je 0x140016ef6
mov r8d, edi
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.140014330
jmp 0x140016eef
mov rdx, rsi
lea rcx, [rbp + 0x80]
call fcn.14001aefc
mov rbx, qword [rbp + 0x80]
movsxd r8, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov edi, r14d
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140016f27
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rbp + 0x78]
movsxd rax, dword [rcx + 4]
lea rcx, [0x1400736b8]
mov qword [rsp + rax + 0x30], rcx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.14001a474
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x140016fbe
mov rbx, qword [rbp + 0x78]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x140016fbb
mov eax, edi
inc edi
cmp eax, 0xa
jge 0x140016f99
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
jne 0x140016f78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
je 0x140016fbb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
movzx edi, word [rax]
or edi, 0x80070000
cmp dword [rax], r14d
cmovle edi, dword [rax]
jmp 0x140016fbe
mov edi, r14d
lea rdx, [rbx - 0x18]
mov ecx, r15d
lock xadd dword [rdx + 0x10], ecx
add ecx, r15d
test ecx, ecx
jg 0x140016fdb
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3