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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2570
call fcn.160072500
sub rsp, rax
mov qword [rsp + 0x1e0], 0xfffffffffffffffe
mov rax, qword [0x160270bd8]
xor rax, rsp
mov qword [rsp + 0x2560], rax
mov rsi, r8
mov r12d, edx
mov dword [rsp + 0x70], edx
mov r15, rcx
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0xf8], rcx
mov dword [rsp + 0x78], edx
mov qword [rsp + 0xd8], r8
mov qword [rsp + 0xe0], r8
mov r8d, dword [r8 + 0x60]
mov edx, dword [rsi + 0x68]
lea rcx, str.ProcessStartCrawlStatus___Crawl_Beginning___CrawlType:__d__CrawID:__d
call fcn.16001a1d8
lea rdi, [rsi + 0xf0]
mov qword [rsp + 0x198], rdi
mov rcx, rdi
call fcn.1600455bc
nop
lea rax, [rsi + 0x28]
mov qword [rsp + 0x148], rax
xor r14d, r14d
mov dword [rsp + 0x150], r14d
mov dword [rsp + 0x154], 1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x158], xmm0
mov qword [rsp + 0x168], r14
lea rcx, [rsp + 0x148]
call fcn.1600ae920
test eax, eax
je 0x16014c6e9
mov rax, r14
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x168], 0
je 0x16014c6c6
mov rcx, qword [rsp + 0x160]
test rcx, rcx
je 0x16014c6c6
lea rdx, [rsp + 0x90]
call fcn.1600575cc
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x148]
lea rcx, str.ProcessStartCrawlStatus___Start_Address:__s
call fcn.16001a1d8
nop
lea rcx, [rsp + 0x90]
call fcn.160002750
jmp 0x16014c67d
mov rcx, rdi
call fcn.16004554c
nop
mov r13d, r14d
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x58], r14d
mov eax, dword [rsi + 0x68]
sub eax, 2
cmp eax, 3
ja 0x16014c71f
mov eax, 0x8000
cmp dword [r15 + 0x784], r14d
cmove r13d, eax
mov dword [rsp + 0x68], r13d
lea rcx, [rsp + 0xa8]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
cmp dword [rsi + 0x74], 0
je 0x16014c857
mov rdx, qword [r15 + 0xdb8]
movzx r9d, byte [rdx + 0x1a0]
lea r8, [r15 + 0xe0]
add rdx, 0xe0
lea rcx, [rsp + 0x850]
call fcn.1601978b0
lea rcx, [rsp + 0x130]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x114], 0x25
mov dword [rsp + 0x110], 0x25
lea rax, str.pkm:catalog:LastCatalogCrawlStartTime
mov qword [rsp + 0x108], rax
lea rbx, [0x1601bbd80]
mov qword [rsp + 0x100], rbx
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x850]
call fcn.1601988d8
mov edx, dword [rsi + 0x68]
lea rcx, [rsp + 0x130]
call fcn.160140b8c
movups xmm0, xmmword [rsp + 0x130]
movaps xmmword [rsp + 0x1c0], xmm0
movsd xmm1, qword [rsp + 0x140]
movsd qword [rsp + 0x1d0], xmm1
mov dword [rsp + 0x12c], 0x20
mov dword [rsp + 0x128], 0x20
lea rax, str.pkm:catalog:LastCatalogCrawlType
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x118], rbx
lea r8, [rsp + 0x1c0]
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x850]
call fcn.160198980
lea rcx, [rsp + 0x130]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0x850]
call fcn.16005ab2c
mov ebx, 0x40d83
mov eax, dword [rsi + 0x68]
cmp eax, 1
jbe 0x16014c87c
cmp eax, 3
jbe 0x16014c877
cmp eax, 4
je 0x16014cad6
cmp eax, 5
jne 0x16014c87c
mov ebx, 0x40d84
cmp dword [r15 + 0x620], 0
jne 0x16014c8c8
lock inc dword [rsi + 0x160]
mov rcx, rsi
call fcn.16016dc70
lea r8, [0x1601d4934]
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 0xffffffff
mov ecx, dword [rsi + 0x60]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov edx, 0x4000001f
mov rcx, r15
call fcn.16006b6d0
mov rcx, qword [r15 + 0xd90]
test rcx, rcx
je 0x16014c8e6
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 0x38]
call qword [case.0x16003fc5a.0]
lea rbx, [r15 + 0x510]
mov qword [rsp + 0x1a0], rbx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
cmp dword [r15 + 0x484], 0
jne 0x16014d283
mov rcx, qword [r15 + 0x1a0]
test rcx, rcx
je 0x16014d283
mov rax, qword [rcx]
xor r9d, r9d
mov r8, rsi
mov edx, r12d
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
mov r12d, eax
test rbx, rbx
je 0x16014c944
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
xor al, al
mov byte [rsp + 0x50], al
test r12d, r12d
js 0x16014d16a
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd0], r14d
mov qword [rsp + 0x1a8], rdi
mov rcx, rdi
call fcn.1600455bc
nop
lea rax, [rsi + 0x28]
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x178], r14d
mov dword [rsp + 0x17c], 1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x180], xmm0
mov qword [rsp + 0x190], r14
mov rax, qword [rsi]
lea rdx, [rsp + 0x84]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x16003fc5a.0]
lea rcx, [rsp + 0x170]
call fcn.1600ae920
test eax, eax
je 0x16014cae0
mov rbx, r14
mov qword [rsp + 0x98], rbx
cmp qword [rsp + 0x190], 0
je 0x16014ca34
mov rcx, qword [rsp + 0x188]
test rcx, rcx
je 0x16014ca34
lea rdx, [rsp + 0x98]
call fcn.1600575cc
mov rbx, qword [rsp + 0x98]
mov rdx, rbx
lea rcx, [rsp + 0xb8]
call fcn.16005251c
mov eax, dword [rsp + 0x84]
mov qword [rbx + 0x4c0], r14
mov qword [rbx + 0x4c8], r14
mov qword [rbx + 0x4d0], r14
mov dword [rbx + 0x4d8], eax
mov rax, qword [rsp + 0xa8]
mov dword [rsp + 0xb0], eax
shr rax, 0x20
mov dword [rsp + 0xb4], eax
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call fcn.16015223c
mov ebx, dword [rbx + 0x47c]
test ebx, ebx
je 0x16014cab4
mov edx, 1
mov rcx, rsi
call fcn.160151ecc
mov edi, 1
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x78], edi
lea rcx, [rsp + 0x98]
call fcn.160002750
mov eax, r14d
test ebx, ebx
cmove eax, r13d
mov r13d, eax
mov dword [rsp + 0x68], eax
jmp 0x16014c9e7
mov ebx, 0x40d85
jmp 0x16014c87c
lea rcx, [rsi + 0xf0]
call fcn.16004554c
nop
mov dword [rsp + 0x88], r14d
lea rcx, [r15 + 0x970]
mov rax, qword [rcx]
lea rdx, [rsp + 0x88]
mov rax, qword [rax + 0x38]
call qword [case.0x16003fc5a.0]
mov edi, r14d
mov dword [rsp + 0x58], r14d
lea rbx, [0x1601d4934]
test r12d, r12d
jns 0x16014cb32
cmp r12d, 0x80040d07
jne 0x16014d06e
mov qword [rsp + 0x60], r14
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xb8]
call fcn.16014fd4c
mov r12d, eax
test eax, eax
jne 0x16014d064
lea rcx, [rsp + 0x620]
call fcn.160063830
nop
mov byte [rsp + 0x81c], r12b
mov rbx, qword [rsp + 0x60]
lea r12, [rbx + 0x128]
mov dword [rsp + 0x2a8], r14d
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x2c0], rax
mov qword [rsp + 0x2c8], CreateErrorInfo
mov word [rsp + 0x2d0], r14w
lea rax, fcn.160019c60
mov qword [rsp + 0x2b8], rax
lea rax, [0x1601bbc48]
mov qword [rsp + 0x2a0], rax
mov dword [rsp + 0x478], r14d
mov eax, dword [rbx + 0x46c]
mov dword [rsp + 0x54], eax
mov eax, dword [rbx + 0x488]
mov dword [rsp + 0x8c], eax
mov rcx, r12
call fcn.160027930
cmp word [r12 + 0x1b8], 0
jne 0x16014cd58
lea rax, [rsp + 0x218]
mov qword [rsp + 0x208], rax
mov qword [rsp + 0x210], 0x41
mov word [rsp + 0x218], r14w
lea rax, fcn.160040970
mov qword [rsp + 0x200], rax
lea rdx, [rsp + 0x1e8]
mov rcx, r12
call fcn.160027fb8
mov r8, rax
mov rax, qword [rax + 8]
mov ecx, dword [r8]
mov rax, qword [rax + 8]
lea rdx, [rax + rcx*2]
mov rax, qword [rsp + 0x200]
mov r9d, dword [r8 + 4]
xor r8d, r8d
lea rcx, [rsp + 0x200]
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
lea rcx, [rsp + 0x200]
call fcn.160034bbc
movzx ecx, ax
call fcn.16005c2e4
test eax, eax
jne 0x16014cd46
lea rcx, [rsp + 0x200]
call fcn.1600ca01c
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x16014cd46
test al, 0x10
je 0x16014cd46
lea rax, [rsp + 0x498]
mov qword [rsp + 0x488], rax
mov qword [rsp + 0x490], 0xc1
mov word [rsp + 0x498], r14w
lea rax, fcn.160019c60
mov qword [rsp + 0x480], rax
mov r9d, dword [r12 + 0x2c]
xor r8d, r8d
mov rdx, qword [r12 + 0x20]
lea rcx, [rsp + 0x480]
call fcn.160034660
mov edx, 0x5c
lea rcx, [rsp + 0x480]
call fcn.160034ce8
or r8d, 0xffffffff
mov rdx, qword [rsp + 0x488]
lea rcx, [rsp + 0x2a0]
call fcn.160027df8
lea r12, [rsp + 0x2a0]
lea rcx, [rsp + 0x480]
call fcn.160019cb0
inc dword [rsp + 0x54]
lea rcx, [rsp + 0x200]
call fcn.160040b2c
nop
jmp 0x16014cd8d
mov rdx, r12
lea rcx, [rsp + 0x620]
call fcn.160027d80
mov r12d, eax
test eax, eax
js 0x16014cdeb
mov dword [rsp + 0x808], r14d
mov eax, 0x180020
cmp dword [rbx + 0x470], 0
mov ecx, 0x180000
cmove eax, ecx
mov ecx, eax
or ecx, 0x40
cmp dword [rbx + 0x46c], 0xffffffff
cmovne ecx, eax
or ecx, r13d
mov dword [rsp + 0x814], ecx
cmp dword [rsp + 0x54], 1
jne 0x16014cdeb
bts ecx, 0xe
mov dword [rsp + 0x814], ecx
test r12d, r12d
jns 0x16014ceb3
mov rdx, qword [0x160272cc8]
lea rcx, [rsp + 0x910]
call fcn.1600c0044
nop
mov rax, qword [r15 + 0xdb8]
mov rcx, qword [rax + 0x148]
lea rbx, [0x1601d4934]
mov rdx, rbx
test rcx, rcx
cmovne rdx, rcx
mov rax, qword [rsp + 0x918]
or r9d, 0xffffffff
xor r8d, r8d
lea rcx, [rsp + 0x918]
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
mov rax, qword [r15 + 0xe8]
mov rdx, rbx
test rax, rax
cmovne rdx, rax
mov rax, qword [rsp + 0x9b8]
or r9d, 0xffffffff
xor r8d, r8d
lea rcx, [rsp + 0x9b8]
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
mov edx, r12d
lea rcx, [rsp + 0x910]
call fcn.1600cd1d8
xor r8d, r8d
mov edx, 0xc0000bc1
lea rcx, [rsp + 0x910]
call fcn.1600c1b70
nop
lea rcx, [rsp + 0x910]
call fcn.1600c0898
jmp 0x16014d048
mov rdx, rsi
lea rcx, [rsp + 0x800]
call fcn.160012554
lea rcx, [r15 + 0x50]
mov rax, qword [rcx]
lea rdx, [rsp + 0x620]
mov rax, qword [rax + 0x18]
call qword [case.0x16003fc5a.0]
mov r12d, eax
test eax, eax
jns 0x16014d132
mov edx, eax
call fcn.160152cc0
test al, al
je 0x16014cfba
mov rdx, qword [0x160272cc8]
lea rcx, [rsp + 0x1280]
call fcn.1600c0044
nop
mov rax, qword [r15 + 0xdb8]
mov rcx, qword [rax + 0x148]
lea rbx, [0x1601d4934]
mov rdx, rbx
test rcx, rcx
cmovne rdx, rcx
mov rax, qword [rsp + 0x1288]
or r9d, 0xffffffff
xor r8d, r8d
lea rcx, [rsp + 0x1288]
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
mov rax, qword [r15 + 0xe8]
mov rdx, rbx
test rax, rax
cmovne rdx, rax
mov rax, qword [rsp + 0x1328]
or r9d, 0xffffffff
xor r8d, r8d
lea rcx, [rsp + 0x1328]
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
mov edx, r12d
lea rcx, [rsp + 0x1280]
call fcn.1600cd1d8
xor r9d, r9d
mov r8, qword [rsp + 0x640]
mov edx, 0x80000bdd
lea rcx, [rsp + 0x1280]
call fcn.160106504
nop
lea rcx, [rsp + 0x1280]
call fcn.1600c0898
jmp 0x16014cfc1
lea rbx, [0x1601d4934]
mov dword [rsp + 0x80], 0xffffffff
mov rax, qword [rsi]
lea rdx, [rsp + 0x80]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x16003fc5a.0]
mov qword [rsp + 0xa0], r14
lea rcx, [rsi + 0x28]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x8c]
call fcn.1600af598
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x16014d026
mov ecx, dword [rsp + 0x80]
mov dword [rax + 0x4d8], ecx
mov dword [rax + 0x4d4], r12d
lea rcx, [rsp + 0xa0]
call fcn.160002750
cmp r12d, 0x80040d07
je 0x16014d13f
test edi, edi
jne 0x16014d13f
lea rcx, [rsp + 0x2a0]
call fcn.160029404
nop
lea rcx, [rsp + 0x620]
call fcn.1600638bc
nop
lea rcx, [rsp + 0x60]
call fcn.160002750
mov eax, dword [rsp + 0x70]
cmp eax, 0x1d
ja 0x16014d11c
mov ecx, 0x20040005
bt ecx, eax
jae 0x16014d11c
mov byte [rsp + 0x50], 1
lea rbx, [r15 + 0x13e8]
mov qword [rsp + 0x1b0], rbx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
mov qword [rsp + 0xe8], rsi
cmp qword [rsp + 0xe0], 0
je 0x16014d0cb
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x16003fc5a.0]
nop
lea rcx, [r15 + 0x1490]
lea r8, [rsp + 0xe8]
mov edx, dword [rcx + 0x10]
call fcn.16014a0f0
mov r12d, eax
cmp qword [rsp + 0xf0], 0
je 0x16014d100
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x10]
call qword [case.0x16003fc5a.0]
test r12d, r12d
js 0x16014d107
inc edi
test rbx, rbx
je 0x16014d115
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
lea rbx, [0x1601d4934]
lea rcx, [rsp + 0xb8]
call fcn.16005254c
cmp byte [rsp + 0x50], 0
jne 0x16014d196
jmp 0x16014d175
inc edi
mov dword [rsp + 0x58], edi
lea rbx, [0x1601d4934]
lea rcx, [rsp + 0x2a0]
call fcn.160029404
nop
lea rcx, [rsp + 0x620]
call fcn.1600638bc
nop
lea rcx, [rsp + 0x60]
call fcn.160002750
jmp 0x16014cb20
mov edi, dword [rsp + 0x58]
lea rbx, [0x1601d4934]
lea rcx, [r15 + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0xc8]
call qword [case.0x16003fc5a.0]
mov edx, 1
mov rcx, rsi
call fcn.160151f14
test edi, edi
jne 0x16014d251
mov rdx, qword [0x160272cc8]
lea rcx, [rsp + 0x1bf0]
call fcn.1600c0044
nop
mov rax, qword [r15 + 0xdb8]
mov rcx, qword [rax + 0x148]
mov rdx, rbx
test rcx, rcx
cmovne rdx, rcx
mov rax, qword [rsp + 0x1bf8]
or r9d, 0xffffffff
xor r8d, r8d
lea rcx, [rsp + 0x1bf8]
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
mov rax, qword [r15 + 0xe8]
test rax, rax
cmovne rbx, rax
mov rax, qword [rsp + 0x1c98]
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x1c98]
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
mov edx, r12d
lea rcx, [rsp + 0x1bf0]
call fcn.1600cd1d8
xor r8d, r8d
mov edx, 0x80000bcf
lea rcx, [rsp + 0x1bf0]
call fcn.160106504
nop
lea rcx, [rsp + 0x1bf0]
call fcn.1600c0898
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, r15
call fcn.160144a6c
test rsi, rsi
je 0x16014d272
lock inc dword [rsi + 0x88]
lock inc dword [r15 + 0x1410]
lea rdx, str.ProcessStartCrawlStatus
mov ecx, r12d
call fcn.16001a2a0
jmp 0x16014d291
test rbx, rbx
je 0x16014d291
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x2560]
xor rcx, rsp
call fcn.16006e590
add rsp, 0x2570
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret