Function at 0x1400716d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2cb0]
mov eax, 0x2db0
call fcn.140247340
sub rsp, rax
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x2df0], rbx
mov rsi, r9
mov r14, r8
mov rbx, rdx
mov r13, rcx
lea rax, vtable.CSABCriticalSectionContainer.0
mov qword [rbp - 8], rax
lea rcx, [0x140337bf8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x1cb0]
call fcn.140249b10
xor edi, edi
mov qword [rbp + 0x2cf8], rdi
cmp byte [rsi], dil
jne 0x140071757
mov rax, qword [r13 + 0x60]
mov qword [rbp + 0x2d08], rax
lea rax, vtable.CSABString.0
mov qword [rsp + 0x68], rax
test rbx, rbx
je 0x1400717a4
mov rsi, 0xffffffffffffffff
nop
inc rsi
cmp byte [rbx + rsi], dil
jne 0x140071770
mov dword [rsp + 0x78], esi
lea eax, [rsi + 1]
mov r15d, eax
mov ecx, eax
call fcn.140247068
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400717c7
mov r8d, r15d
mov rdx, rbx
mov rcx, rax
call fcn.1402496a0
jmp 0x1400717c7
mov esi, edi
mov dword [rsp + 0x78], edi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov r12, rax
mov qword [rsp + 0x70], rax
xor eax, eax
mov qword [r12], rax
mov qword [r12 + 8], rax
mov r15d, 1
mov dword [rsp + 0x7c], r15d
lea rax, vtable.CSABStringW.0
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rdi
mov dword [rbp - 0x38], edi
mov rdx, r14
lea rcx, [rbp - 0x48]
call fcn.14002a980
mov dword [rbp - 0x34], r15d
test rbx, rbx
jne 0x14007184d
test r14, r14
je 0x1400722c6
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400722e8
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140005530
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400722c6
mov esi, dword [rsp + 0x78]
jmp 0x14007188e
test r14, r14
jne 0x1400722c6
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000bd30
nop
mov rdx, qword [rax]
lea rcx, [rbp - 0x48]
call fcn.14002a980
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400722c6
mov r14d, edi
mov rax, qword [r13 + 0xc0]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbp + 0x2d08]
mov r8, qword [rax + 0x60]
lea rdx, str.SELECT__FROM_DIRECTORIES_where_quarantineid_s_AND_parentguidid_s_AND_patha_s
lea rcx, [rbp + 0x1cb0]
call fcn.140006bc0
mov rax, qword [r13 + 0xc0]
mov rbx, qword [rax + 0x50]
mov r15d, edi
lea rcx, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400718fa
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rbp + 0x2cf8]
lea rdx, [rbp + 0x1cb0]
call qword [rax]
mov r15d, eax
lea rcx, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r15d, r15d
je 0x140071952
mov qword [rsp + 0x40], rdi
mov rcx, qword [rbp + 0x2cf8]
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, [0x140294f68]
xor edx, edx
call qword [rax + 0x40]
test eax, eax
mov r12d, 1
cmovne r14d, r12d
mov rax, qword [r13 + 0xc0]
mov rcx, qword [rax + 0x50]
add rcx, 0x30
mov rdx, qword [rbp + 0x2cf8]
call fcn.140075720
jmp 0x140071958
mov r12d, 1
lea rcx, [rbp - 0x30]
call fcn.14006b420
nop
mov rbx, qword [rax + 0x10]
lea rax, vtable.CSABString.0
mov qword [rbp - 0x60], rax
test rbx, rbx
je 0x1400719b1
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140071980
mov dword [rbp - 0x50], eax
inc eax
mov r15d, eax
mov ecx, eax
call fcn.140247068
mov qword [rbp - 0x58], rax
test rax, rax
je 0x1400719cb
mov r8d, r15d
mov rdx, rbx
mov rcx, rax
call fcn.1402496a0
jmp 0x1400719cb
mov dword [rbp - 0x50], edi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbp - 0x58], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbp - 0x4c], r12d
lea rax, vtable.CSABGUID.0
mov qword [rbp - 0x30], rax
lea rax, vtable.CSABString.0
mov qword [rbp - 0x28], rax
add dword [rbp - 0x14], 0xffffffff
jne 0x1400719f9
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400719f9
call fcn.140247060
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp]
call fcn.140249b10
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x350]
call fcn.140249b10
mov r12, qword [rbp - 0x40]
lea rcx, [rsp + 0x50]
test r14d, r14d
jne 0x140071be3
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x5c]
movzx ecx, word [rsp + 0x5a]
movzx edx, word [rsp + 0x58]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x52]
movzx r8d, word [rsp + 0x50]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r10d
lea rdx, str._04d__02d__02d__02d:_02d:_02d
lea rcx, [rbp + 0x350]
call fcn.140006bc0
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x4c]
movzx ecx, word [rsp + 0x4a]
movzx r10d, word [rsp + 0x48]
movzx r11d, word [rsp + 0x46]
movzx r9d, word [rsp + 0x42]
movzx r8d, word [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
lea rdx, str._04d__02d__02d__02d:_02d:_02d
lea rcx, [rbp]
call fcn.140006bc0
mov rax, qword [r13 + 0xc0]
lea rcx, [rbp + 0x350]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x2d08]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbp - 0x58]
mov r8, qword [rax + 0x60]
lea rdx, str.INSERT_INTO_DIRECTORIES___quarantineid__guidid__parentguidid__createdtime__updatedtime__patha__pathw___VALUES____s___s___s___s___s___1___2__
lea rcx, [rbp + 0x1cb0]
call fcn.140006bc0
mov rax, qword [r13 + 0xc0]
mov rbx, qword [rax + 0x50]
mov r14d, edi
lea rcx, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140071b62
mov rax, qword [rcx]
mov r9d, 1
lea r8, [rbp + 0x2cf8]
lea rdx, [rbp + 0x1cb0]
call qword [rax]
mov r14d, eax
lea rcx, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14d, r14d
mov r14d, 1
je 0x140071cda
mov rcx, qword [rbp + 0x2cf8]
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
mov r9d, esi
mov rsi, qword [rsp + 0x70]
mov r8, rsi
mov edx, r14d
call qword [rax + 0x70]
mov rcx, qword [rbp + 0x2cf8]
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
mov r9d, dword [rbp - 0x38]
mov r8, r12
lea edx, [r14 + 1]
call qword [rax + 0x78]
mov rcx, qword [rbp + 0x2cf8]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rax, qword [r13 + 0xc0]
mov rcx, qword [rax + 0x50]
add rcx, 0x30
mov rdx, qword [rbp + 0x2cf8]
call fcn.140075720
jmp 0x140071cdf
mov rax, qword [r13 + 0xc0]
mov rbx, qword [rax + 0x60]
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x5c]
movzx ecx, word [rsp + 0x5a]
movzx edx, word [rsp + 0x58]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x52]
movzx r8d, word [rsp + 0x50]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r10d
lea rdx, str._04d__02d__02d__02d:_02d:_02d
lea rcx, [rbp]
call fcn.140006bc0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x2d08]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [rbp]
lea rdx, str.UPDATE_DIRECTORIES_SET_updatedtime_s_WHERE_quarantineid_s_AND_parentguidid_s_AND_patha_s
lea rcx, [rbp + 0x1cb0]
call fcn.140006bc0
mov qword [rsp + 0x40], rdi
mov rax, qword [r13 + 0xc0]
mov rbx, qword [rax + 0x50]
mov esi, edi
lea rcx, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140071cad
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x1cb0]
call qword [rax]
mov esi, eax
lea rcx, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x140071cd4
mov rax, qword [r13 + 0xc0]
mov rcx, qword [rax + 0x50]
add rcx, 0x30
mov rdx, qword [rsp + 0x40]
call fcn.140075720
mov r14d, 1
mov rsi, qword [rsp + 0x70]
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x100]
call fcn.140249b10
xor edx, edx
mov r8d, 0x820
lea rcx, [rbp + 0x1490]
call fcn.140249b10
mov rcx, r12
lea rdx, [rbp + 0x1490]
sub rdx, r12
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140071d20
lea rcx, [rbp + 0x1490]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rbp + 0x1490]
sub rcx, 2
nop dword [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140071d50
mov eax, dword [0x140295078]
mov dword [rcx], eax
mov rax, qword [r13 + 0xc0]
mov rcx, qword [rax + 0xa0]
mov rax, qword [rcx]
lea r8, [rbp + 0x100]
lea rdx, [rbp + 0x1490]
call qword [rax + 0x48]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14007204d
test byte [rbp + 0x100], 0x10
je 0x140071ef8
lea rax, [rbp + 0x12c]
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140071db0
movzx eax, word [rbp + 0x12c]
cmp rcx, 1
jne 0x140071dd1
cmp ax, 0x2e
je 0x140072010
cmp rcx, 2
jne 0x140071dea
cmp ax, 0x2e
jne 0x140071dea
cmp word [rbp + 0x12e], ax
je 0x140072010
xor edx, edx
mov r8d, 0x820
lea rcx, [rbp + 0x450]
call fcn.140249b10
mov rcx, r12
lea rdx, [rbp + 0x450]
sub rdx, r12
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140071e10
lea rcx, [rbp + 0x450]
sub rcx, 2
nop dword [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140071e30
mov eax, dword [0x140287d80]
mov dword [rcx], eax
lea rcx, [rbp + 0x450]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140071e50
lea r8, [rbp + 0x12c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140071e70
lea rcx, [rbp + 0x450]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400722f3
lea rax, vtable.CSABString.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140005530
mov dword [rsp + 0x64], r14d
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsp + 0x20], rdi
mov r9, qword [rbp - 0x58]
lea r8, [rbp + 0x450]
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, r13
call fcn.1400716d0
nop
jmp 0x140072003
xor edx, edx
mov r8d, 0x820
lea rcx, [rbp + 0xc70]
call fcn.140249b10
mov rcx, r12
lea rdx, [rbp + 0xc70]
sub rdx, r12
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140071f20
lea rcx, [rbp + 0xc70]
sub rcx, 2
nop dword [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140071f40
mov eax, dword [0x140287d80]
mov dword [rcx], eax
lea rax, [rbp + 0xc70]
sub rax, 2
nop dword [rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x140071f60
lea r8, [rbp + 0x12c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x140071f80
lea rcx, [rbp + 0xc70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400722dd
lea rax, vtable.CSABString.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140005530
mov dword [rsp + 0x64], r14d
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsp + 0x20], rdi
mov r9, qword [rbp - 0x58]
lea r8, [rbp + 0xc70]
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, r13
call fcn.140072300
nop
test rbx, rbx
je 0x140072010
mov rcx, rbx
call fcn.140247060
mov rax, qword [r13 + 0xc0]
mov rcx, qword [rax + 0xa0]
mov rax, qword [rcx]
lea r8, [rbp + 0x100]
mov rdx, r15
call qword [rax + 0x50]
test eax, eax
jne 0x140071d91
mov rax, qword [r13 + 0xc0]
mov rcx, qword [rax + 0xa0]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + 0x58]
mov r14, qword [rbp + 0x2d10]
test r14, r14
je 0x140072258
mov rax, qword [r13 + 0xc0]
mov qword [rsp + 0x20], rsi
mov r9, qword [rbp + 0x2d08]
mov r8, qword [rax + 0x60]
lea rdx, str.SELECT__FROM_DIRECTORIES_where_quarantineid_s_AND_parentguidid_s_AND_patha_s
lea rcx, [rbp + 0x1cb0]
call fcn.140006bc0
mov rax, qword [r13 + 0xc0]
mov rbx, qword [rax + 0x50]
mov esi, edi
lea rcx, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400720bf
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rbp + 0x2cf8]
lea rdx, [rbp + 0x1cb0]
call qword [rax]
mov esi, eax
lea rcx, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x140072258
mov qword [rbp + 0x2d08], rdi
mov rcx, qword [rbp + 0x2cf8]
mov rax, qword [rcx]
lea r9, [rbp + 0x2d08]
lea r8, [0x140294f68]
xor edx, edx
call qword [rax + 0x40]
test eax, eax
je 0x14007223c
cmp qword [rbp + 0x2d08], 0
je 0x14007223c
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x40], rdi
mov rcx, qword [rbp + 0x2cf8]
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, str.quarantineid
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x2cf8]
mov rax, qword [rcx]
lea r9, [rbp - 0x68]
lea r8, str.guidid
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x2cf8]
mov rax, qword [rcx]
lea r9, [rbp - 0x70]
lea r8, str.parentguidid
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x2cf8]
mov rax, qword [rcx]
lea r9, [rbp - 0x78]
lea r8, str.createdtime
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x2cf8]
mov rax, qword [rcx]
lea r9, [rbp - 0x80]
lea r8, str.updatedtime
xor edx, edx
call qword [rax + 0x40]
cmp qword [rbp - 0x68], 0
je 0x14007223c
cmp qword [rbp - 0x70], 0
je 0x14007223c
cmp qword [rbp - 0x78], 0
je 0x14007223c
cmp qword [rbp - 0x80], 0
je 0x14007223c
cmp qword [rsp + 0x40], 0
je 0x14007223c
mov ecx, 0xa8
call fcn.14018ef40
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140072228
mov rcx, qword [rbp + 0x2d08]
call fcn.1402520ac
mov r8d, eax
mov dword [rsp + 0x38], edi
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rbp - 0x78]
mov qword [rsp + 0x28], rcx
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x68]
mov edx, 0x100
mov rcx, rbx
call fcn.14006aca0
mov rdi, rax
mov qword [r14], rdi
lea rcx, [rdi + 0x88]
mov rdx, qword [rsp + 0x40]
call fcn.140004820
mov rax, qword [r13 + 0xc0]
mov rcx, qword [rax + 0x50]
add rcx, 0x30
mov rdx, qword [rbp + 0x2cf8]
call fcn.140075720
nop
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x140072269
mov rcx, rax
call fcn.140247060
mov ebx, 1
cmp dword [rbp - 0x34], 1
jne 0x140072282
test r12, r12
je 0x140072282
mov rcx, r12
call fcn.140247060
nop
cmp dword [rsp + 0x7c], 1
jne 0x14007229c
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14007229c
mov rcx, rax
call fcn.140247060
nop
lea rcx, [0x140337bf8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rbx, qword [rsp + 0x2df0]
add rsp, 0x2db0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 0x2d10]
test rax, rax
je 0x1400722d5
mov qword [rax], rdi
mov ebx, edi
mov r12, qword [rbp - 0x40]
jmp 0x14007226e
mov ecx, 0x8007000e
call fcn.140004cd0
nop
mov ecx, 0x8007000e
call fcn.140004cd0
nop
mov ecx, 0x8007000e
call fcn.140004cd0
int3