Function at 0x140037e88
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rdi, rdx
mov rdx, rcx
lea rcx, [rbp + 0x88]
call fcn.140009b44
mov rdx, qword [rax]
lea rcx, [rbp + 0x78]
call fcn.140002cec
mov rdx, qword [rbp + 0x88]
add rdx, 0xffffffffffffffe8
or r14, 0xffffffffffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
xor esi, esi
test eax, eax
jg 0x140037ee2
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.140009ab0
mov ebx, 1
test rdi, rdi
je 0x14003807c
mov rax, r14
inc rax
cmp word [rdi + rax*2], si
jne 0x140037f03
test rax, rax
je 0x14003807c
mov rdx, qword [rbp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.140038670
nop
jmp 0x140037f78
mov eax, ebx
inc ebx
cmp eax, 0xa
jge 0x140037f88
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [r9 + 0x12]
mov rdx, qword [rbp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.1400398e8
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
je 0x140037f6a
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 0x140037f78
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 0x140037f26
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x40], 2
je 0x140037f9d
mov edi, 0x80070005
jmp 0x140038038
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x1400380f2
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x80], rbx
cmp rdi, 0x10000
jae 0x140037fed
movzx edi, di
xor edx, edx
mov ecx, edi
call fcn.1400348c0
test rax, rax
je 0x140038003
mov r8d, edi
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.1400372a4
jmp 0x140037ffc
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.140015be0
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, esi
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140038033
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x30]
movsxd rax, dword [rcx + 4]
lea rcx, [0x1400752f0]
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.1400391b0
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 0x1400380c1
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x1400380bf
mov eax, ebx
inc ebx
cmp eax, 0xa
jge 0x14003809e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
jne 0x14003807c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
je 0x1400380bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
movzx edi, word [rax]
or edi, 0x80070000
cmp dword [rax], esi
cmovle edi, dword [rax]
jmp 0x1400380c1
mov edi, esi
mov rdx, qword [rbp + 0x78]
add rdx, 0xffffffffffffffe8
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
add ecx, r14d
test ecx, ecx
jg 0x1400380e2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
add rsp, 0x140
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3