Function at 0x140009768
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov r15, rcx
lea rcx, [rsp + 0x50]
call fcn.140009b44
mov rdx, qword [rax]
lea rcx, [rbp + 0xb0]
call fcn.140002cec
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or r12d, 0xffffffff
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400097c9
nop
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.ExcludedDirectories.lst
lea rcx, [rbp + 0xb0]
call fcn.140009ab0
mov rcx, qword [rbp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140009810
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140009a9f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r15], rax
jmp 0x140009a47
mov rdx, qword [rbp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.140039288
nop
mov ebx, 1
lea edi, [rbx + 1]
jmp 0x14000987e
mov eax, ebx
inc ebx
cmp eax, 0xa
jge 0x14000988e
mov r9d, SafeArrayAllocDescriptor
lea r8d, [r9 + 1]
mov rdx, qword [rbp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.1400398e8
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
je 0x140009873
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 0x14000987e
add rcx, rax
mov edx, edi
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 + 0x60]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x70], dil
jne 0x14000982c
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x70], dil
je 0x1400098bc
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140009a90
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r15], rax
jmp 0x1400099ff
mov r8d, r12d
movabs rdx, 0x7fffffffffffffff
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::ignore_long_long___int64___int____ptr64]
mov rbx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
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]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea eax, [rbx + 1]
mov edi, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
and qword [rsp + 0x40], 0
xor esi, esi
xor ebx, ebx
test eax, eax
je 0x140009960
mov ecx, edi
cmp rdi, 0x1000
jb 0x140009933
call fcn.14001e428
jmp 0x140009938
call fcn.140002cbc
mov rbx, rax
mov r14, rax
mov qword [rsp + 0x30], rax
lea rsi, [rax + rdi]
mov qword [rsp + 0x40], rsi
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x38], rsi
jmp 0x140009965
mov r14, qword [rsp + 0x30]
sub rsi, rbx
mov r8, rsi
mov rdx, r14
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov rdx, r14
lea rcx, [rbp + 0xb8]
call fcn.140026e08
nop
mov rcx, qword [rbp + 0xb8]
add rcx, 0xffffffffffffffe8
call fcn.1400028e4
add rax, 0x18
mov qword [r15], rax
mov rdx, qword [rbp + 0xb8]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400099c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test rbx, rbx
je 0x1400099ff
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x1400099f6
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140009a89
mov rbx, rcx
mov rcx, rbx
call fcn.140002da0
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [0x140075268]
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.1400391b0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140009a6a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r15
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 0x80004005
call fcn.1400312f0
nop
jmp 0x140009a9e
nop
mov ecx, 0x80004005
call fcn.1400312f0
int3