Function at 0x1400963e0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa18]
sub rsp, 0xaf0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_CheckCATFileExistEx
lea rcx, [rsp + 0x48]
call fcn.1400075a0
nop
xor esi, esi
mov edi, esi
mov dword [rsp + 0x38], esi
mov ebx, 8
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x34], esi
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xf0]
mov r14d, eax
mov word [rbp + 0x1a0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a2]
call fcn.14024b970
lea r12d, [rsi + 4]
nop word [rax + rax]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r9, qword [rax]
lea r8, [rsp + 0x34]
mov edx, ebx
mov rcx, rax
call qword [r9 + 0x3c0]
mov r11d, dword [rsp + 0x34]
cmp r11d, 0x400
cmove r11d, esi
mov dword [rsp + 0x34], r11d
test r11d, r11d
je 0x1400964d3
dec r11d
mov dword [rsp + 0x34], r11d
mov dword [rsp + 0x30], esi
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r10, qword [rax]
mov dword [rsp + 0x20], 3
lea r9, [rbp - 0x70]
lea r8, [rbp + 0x5c0]
mov edx, dword [rsp + 0x34]
mov rcx, rax
call qword [r10 + 0x2a0]
mov ebx, eax
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp ebx, 1
jne 0x14009681f
lea rcx, [rsp + 0x58]
call fcn.140105848
nop
mov ebx, 2
mov dword [rsp + 0x40], ebx
mov r13d, esi
lea r15d, [rbx - 1]
test r14d, r14d
je 0x140096560
lea rcx, [0x1402ddbb8]
call fcn.140023e50
test eax, eax
cmovne ebx, r12d
mov dword [rsp + 0x40], ebx
nop word [rax + rax]
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140105958
test r14d, r14d
je 0x1400965c6
test r14d, r15d
je 0x1400967ec
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r8, qword [rax]
mov edx, r13d
mov rcx, rax
call qword [r8 + pe_nt_image_headers64]
mov rbx, rax
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rdx, rbx
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x58]
lea r8, [0x1402f3138]
lea rdx, [rbp - 0x70]
call qword [rax + 0x38]
mov r12d, esi
mov rax, qword [rsp + 0x68]
test eax, eax
jle 0x14009670e
nop dword [rax + rax]
test rsi, rsi
js 0x140096839
cmp rsi, rax
jge 0x140096839
mov rax, qword [rsp + 0x60]
mov rbx, qword [rax + rsi*8]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x14009663e
cmp rax, qword [rbx - 0x18]
jne 0x14009663e
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x140096679
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x140096833
mov ecx, dword [rbx - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rbx - 0x10]
inc ecx
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.1402471ac
lea rbx, [rdi + 0x18]
mov qword [rbp - 0x80], rbx
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r10, qword [rax]
lea r9, str.Printer
lea r8, str.Canon
mov rdx, rbx
mov rcx, rax
call qword [r10 + 0xf8]
test eax, eax
jne 0x1400966e1
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400966cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r12d
inc rsi
mov rax, qword [rsp + 0x68]
cmp r12d, eax
jl 0x140096600
jmp 0x14009670a
mov rdx, rbx
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009670a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x38]
lea rax, [rbp + 0x5c0]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
lea r8, str._t_t_t__d_INF___s___s_
mov edx, 7
lea rcx, [rsp + 0x48]
call fcn.140007780
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
test eax, eax
je 0x1400967e3
mov dword [rsp + 0x30], esi
mov word [rbp + 0x3b0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x3b2]
call fcn.14024b970
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r10, qword [rax]
lea r9, [rbp + 0x3b0]
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [r10 + 0x170]
lea r11, [rbp + 0x3b0]
mov qword [rsp + 0x28], r11
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [rbp - 0x70]
lea r8, str._t_t_tINF___s_is_CATFile___d___s_
lea edx, [rsi + 7]
lea rcx, [rsp + 0x48]
call fcn.140007780
test r14d, r14d
je 0x1400967d4
cmp dword [rsp + 0x30], esi
je 0x1400967fb
jmp 0x1400967e3
cmp dword [rsp + 0x30], 1
jne 0x1400967e3
or edi, dword [rsp + 0x3c]
mov dword [rsp + 0x38], edi
test r14d, r14d
je 0x14009680f
mov ebx, dword [rsp + 0x40]
add r15d, r15d
inc r13d
cmp r13d, ebx
jl 0x140096560
test r14d, r14d
je 0x14009680f
cmp dword [rsp + 0x30], 0
je 0x14009680f
or edi, dword [rsp + 0x3c]
mov dword [rsp + 0x38], edi
lea rcx, [rsp + 0x58]
call fcn.140105ce4
mov r12d, 4
mov ebx, dword [rsp + 0x3c]
add ebx, ebx
mov dword [rsp + 0x3c], ebx
cmp ebx, 0x20
ja 0x14009683f
jmp 0x140096490
call fcn.140020970
int3
call fcn.140102ffc
nop
mov r8d, edi
lea rdx, [0x1402dc3ec]
lea rcx, [rbp + 0x7d0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x7d0]
lea rdx, str.CATSUPPORTEX
mov rcx, rax
call qword [r9 + 0x20]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x48]
call fcn.140007780
nop
lea rcx, [rsp + 0x48]
call fcn.140007730
xor eax, eax
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0xaf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret