Function at 0x140096d40
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x898]
sub rsp, 0x970
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov qword [rsp + 0x60], rcx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_EnumBacukUpICC
lea rcx, [rbp - 0x60]
call fcn.1400075a0
nop
xor r15d, r15d
mov r13d, r15d
mov qword [rsp + 0x40], r15
mov esi, r15d
mov qword [rsp + 0x48], r15
mov r14d, r15d
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0x68]
call fcn.140105848
nop
call fcn.140102a14
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x140096dde
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea r12, [0x1402dc4e0]
test r12, 0xffffffffffff0000
jne 0x140096e22
movzx edi, r12w
mov ecx, edi
call fcn.1401027e8
test rax, rax
je 0x140096e37
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140005b00
jmp 0x140096e32
xor r8d, r8d
mov rdx, r12
lea rcx, [rsp + 0x20]
call fcn.140005d50
mov rbx, qword [rsp + 0x20]
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
xor r8d, r8d
mov rdx, r12
lea rcx, [rbp - 0x48]
call fcn.140001f40
nop
mov r12d, r15d
mov dword [rsp + 0x2c], r15d
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140105958
mov ecx, r15d
mov dword [rsp + 0x28], ecx
test ecx, ecx
je 0x140096e85
dec ecx
jne 0x140096e90
lea r12d, [rcx + 3]
jmp 0x140096e8b
mov r12d, 1
mov dword [rsp + 0x2c], r12d
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdi, qword [rax]
mov edx, r12d
mov rcx, rax
call qword [rdi + 0x58]
mov r15, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14009743f
nop word [rax + rax]
mov rdi, r13
cmp r13, rsi
je 0x140096f13
nop dword [rax + rax]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.140001e00
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea rcx, [r15 + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140096f0a
add rdi, 0x28
cmp rdi, rsi
jne 0x140096ed0
jmp 0x140096f13
cmp rdi, rsi
jne 0x140097413
add r15, 8
mov qword [rbp - 8], 7
xor eax, eax
mov qword [rbp - 0x10], rax
mov word [rbp - 0x20], ax
or r12, 0xffffffffffffffff
mov rcx, r12
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.140001f40
nop
lea rax, [rbp - 0x20]
cmp rax, rsi
jae 0x140097064
lea rax, [rbp - 0x20]
cmp r13, rax
ja 0x140097064
lea rcx, [rbp - 0x20]
sub rcx, r13
movabs r8, 0x6666666666666667
mov rax, r8
imul rcx
mov r12, rdx
sar r12, 4
mov rax, r12
shr rax, 0x3f
add r12, rax
cmp rsi, r14
jne 0x140097028
mov rcx, rsi
sub rcx, r13
mov rax, r8
imul rcx
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
movabs rax, 0x666666666666665
cmp rdi, rax
ja 0x140097453
inc rdi
mov rcx, r14
sub rcx, r13
mov rax, r8
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jbe 0x140097028
mov rcx, rdx
shr rcx, 1
movabs rax, 0x666666666666666
sub rax, rcx
cmp rax, rdx
jae 0x140097005
xor eax, eax
mov edx, eax
jmp 0x140097008
add rdx, rcx
cmp rdx, rdi
cmovb rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400407d0
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
lea rax, [r12 + r12*4]
lea rdx, [r13 + rax*8]
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x70], rsi
test rsi, rsi
je 0x14009705f
mov qword [rsi + 0x18], 7
xor eax, eax
mov qword [rsi + 0x10], rax
mov word [rsi], ax
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rsi
call fcn.140001e00
nop
jmp 0x14009713b
cmp rsi, r14
jne 0x14009710a
mov rcx, rsi
sub rcx, r13
movabs r8, 0x6666666666666667
mov rax, r8
imul rcx
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
movabs rax, 0x666666666666665
cmp rdi, rax
ja 0x140097460
inc rdi
mov rcx, r14
sub rcx, r13
mov rax, r8
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jbe 0x14009710a
mov rcx, rdx
shr rcx, 1
movabs rax, 0x666666666666666
sub rax, rcx
cmp rax, rdx
jae 0x1400970e7
xor eax, eax
mov edx, eax
jmp 0x1400970ea
add rdx, rcx
cmp rdx, rdi
cmovb rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400407d0
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
test rsi, rsi
je 0x14009713b
mov qword [rsi + 0x18], 7
xor eax, eax
mov qword [rsi + 0x10], rax
mov word [rsi], ax
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.140001e00
nop
add rsi, 0x28
mov qword [rsp + 0x48], rsi
cmp qword [rbp - 8], 8
jb 0x140097154
mov rcx, qword [rbp - 0x20]
call fcn.1401026ec
mov r12, qword [rsp + 0x60]
mov rax, qword [r12]
mov rcx, qword [rsp + 0x38]
mov r9d, dword [rcx + 0x3c8c]
lea r8, [rsp + 0x68]
mov rdx, r15
mov rcx, r12
call qword [rax + 0x340]
xor eax, eax
mov dword [rsp + 0x38], eax
mov r15d, eax
cmp qword [rsp + 0x78], rax
jle 0x140097413
nop
test r15, r15
js 0x14009749f
cmp r15, qword [rsp + 0x78]
jge 0x14009749f
mov rax, qword [rsp + 0x70]
mov r13, qword [rax + r15*8]
lea rsi, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rsi, rdi
je 0x140097336
cmp dword [rdi + 0x10], 0
jl 0x14009724c
mov rcx, qword [rsi]
cmp rcx, qword [rdi]
jne 0x14009724c
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi + 0x10], 0
jl 0x1400971ed
cmp rax, qword [rsi]
jne 0x1400971ed
mov rbx, rsi
lock inc dword [rsi + 0x10]
jmp 0x140097229
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi + 8]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x14009746d
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 8]
inc ecx
movsxd rdx, ecx
lea r9, [rdx + rdx]
lea r8, [rsi + 0x18]
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.1402471ac
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140097243
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbx, 0x18
jmp 0x140097331
movsxd rsi, dword [r13 - 0x10]
test esi, esi
jne 0x1400972ad
mov rsi, qword [rdi]
cmp dword [rdi + 8], 0
je 0x140097336
cmp dword [rdi + 0x10], 0
jge 0x140097281
cmp dword [rbx - 0xc], 0
jl 0x140097473
xor r13d, r13d
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x140097339
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x14009729b
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
jmp 0x140097331
test r13, r13
je 0x140097494
mov r14d, dword [rbx - 0x10]
mov r12, r13
sub r12, rbx
sar r12, 1
test esi, esi
js 0x140097489
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, esi
or eax, ecx
jge 0x1400972ed
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.140005e40
mov rbx, qword [rsp + 0x20]
lea rdi, [rsi + rsi]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rdi
add rdx, rdx
cmp r12, r14
ja 0x14009730e
lea r8, [rbx + r12*2]
call fcn.1402457b4
jmp 0x140097316
mov r8, r13
call fcn.1402471ac
cmp esi, dword [rbx - 0xc]
jg 0x14009747e
mov dword [rbx - 0x10], esi
xor r13d, r13d
mov word [rdi + rbx], r13w
mov r12, qword [rsp + 0x60]
jmp 0x140097339
mov qword [rsp + 0x20], rbx
xor r13d, r13d
mov rdi, qword [r12 + 0xb8]
cmp rdi, qword [r12 + 0xc0]
je 0x140097396
nop dword [rax + rax]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.140001e00
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14009738c
add rdi, 0x28
cmp rdi, qword [r12 + 0xc0]
jne 0x140097350
cmp rdi, qword [r12 + 0xc0]
jne 0x1400973e9
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r13
mov word [rbp + 8], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rbp + 8]
call fcn.140001f40
nop
lea rdx, [rbp + 8]
lea rcx, [r12 + 0xb8]
call fcn.1400a0fb0
nop
cmp qword [rbp + 0x20], 8
jb 0x1400973e9
mov rcx, qword [rbp + 8]
call fcn.1401026ec
mov ecx, dword [rsp + 0x38]
inc ecx
mov dword [rsp + 0x38], ecx
inc r15
movsxd rax, ecx
cmp rax, qword [rsp + 0x78]
jl 0x140097190
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
mov r15, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140096ec0
mov r12d, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x28]
inc ecx
mov dword [rsp + 0x28], ecx
cmp ecx, 2
jge 0x1400974a5
jmp 0x140096e77
lea rcx, str.vector_T__too_long
call fcn.14026624c
int3
lea rcx, str.vector_T__too_long
call fcn.14026624c
nop
call fcn.140020970
int3
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
call fcn.140102ffc
int3
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + VarBstrFromDisp]
mov rdi, qword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [rdi + 0x88]
cmp dword [0x1403b97b8], r13d
je 0x1400977c4
cmp dword [rsp + 0x30], 0xa
jb 0x1400977c4
mov word [rbp + 0x60], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x62]
call fcn.14024b970
or r15, 0xffffffffffffffff
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140105958
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdi, qword [rax]
lea r8, [rbp + 0x60]
lea rdx, str.RESTORE_COLOR_FOLDER
mov rcx, rax
call qword [rdi + 0x18]
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400977c4
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x60]
call qword [rax + 0x40]
mov r12d, r13d
mov dword [rsp + 0x28], r13d
mov r14d, r13d
cmp qword [rsp + 0x78], r12
jle 0x1400977c4
nop
test r14, r14
js 0x1400977be
cmp r14, qword [rsp + 0x78]
jge 0x1400977be
mov rax, qword [rsp + 0x70]
mov r13, qword [rax + r14*8]
lea rcx, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x1400976c3
cmp dword [rdi + 0x10], 0
jl 0x1400975dc
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400975dc
call fcn.140006190
mov rbx, rax
mov ecx, r15d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400975ce
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbx, 0x18
mov qword [rsp + 0x20], rbx
jmp 0x1400976c3
movsxd rsi, dword [r13 - 0x10]
test esi, esi
jne 0x14009763f
mov rsi, qword [rdi]
cmp dword [rdi + 8], 0
je 0x1400976c3
cmp dword [rdi + 0x10], 0
jge 0x14009760e
cmp dword [rbx - 0xc], 0
jl 0x140097792
xor eax, eax
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x1400976c3
mov eax, r15d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140097628
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x1400976c3
test r13, r13
je 0x1400977b3
mov r15d, dword [rbx - 0x10]
mov r12, r13
sub r12, rbx
sar r12, 1
test esi, esi
js 0x1400977a8
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, esi
or eax, ecx
jge 0x14009767f
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.140005e40
mov rbx, qword [rsp + 0x20]
lea rdi, [rsi + rsi]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rdi
add rdx, rdx
cmp r12, r15
ja 0x1400976a0
lea r8, [rbx + r12*2]
call fcn.1402457b4
jmp 0x1400976a8
mov r8, r13
call fcn.1402471ac
cmp esi, dword [rbx - 0xc]
jg 0x14009779d
mov dword [rbx - 0x10], esi
xor eax, eax
mov word [rdi + rbx], ax
mov r12d, dword [rsp + 0x28]
or r15, 0xffffffffffffffff
mov r13, qword [rsp + 0x60]
lea rsi, [r13 + 0xb8]
mov rdi, qword [rsi]
cmp rdi, qword [r13 + 0xc0]
je 0x140097723
nop dword [rax + rax]
mov r9, r15
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.140001e00
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14009771a
add rdi, 0x28
cmp rdi, qword [r13 + 0xc0]
jne 0x1400976e0
cmp rdi, qword [r13 + 0xc0]
jne 0x140097775
mov qword [rbp + 0x48], 7
xor r13d, r13d
mov qword [rbp + 0x40], r13
mov word [rbp + 0x30], r13w
xor eax, eax
mov rcx, r15
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140001f40
nop
lea rdx, [rbp + 0x30]
mov rcx, rsi
call fcn.1400a0fb0
nop
cmp qword [rbp + 0x48], 8
jb 0x140097778
mov rcx, qword [rbp + 0x30]
call fcn.1401026ec
jmp 0x140097778
xor r13d, r13d
inc r12d
mov dword [rsp + 0x28], r12d
inc r14
movsxd rax, r12d
cmp rax, qword [rsp + 0x78]
jge 0x1400977c4
jmp 0x140097570
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
call fcn.140102ffc
int3
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rbp - 0x60]
call fcn.140007780
nop
cmp qword [rbp - 0x30], 8
jb 0x1400977ec
mov rcx, qword [rbp - 0x48]
call fcn.1401026ec
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r13
mov word [rbp - 0x48], r13w
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009781a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x68]
call fcn.140105ce4
nop
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x140097871
mov rdi, rsi
mov rbx, qword [rsp + 0x48]
cmp rsi, rbx
je 0x140097868
nop dword [rax]
cmp qword [rdi + 0x18], 8
jb 0x14009784f
mov rcx, qword [rdi]
call fcn.1401026ec
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
add rdi, 0x28
cmp rdi, rbx
jne 0x140097840
mov rcx, rsi
call fcn.1401026ec
nop
lea rcx, [rbp - 0x60]
call fcn.140007730
xor eax, eax
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret