Function at 0x14000ed3c
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x14002f010]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0xc30], rbx
je 0x14000ed8c
cmp qword [rcx + 0xc38], rbx
je 0x14000ed8c
lea eax, [rbx + 1]
jmp 0x14000efcb
test rsi, rsi
jne 0x14000ed98
xor eax, eax
jmp 0x14000efcb
mov r14d, 0x410
mov r8d, r14d
xor edx, edx
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8, rsi
mov esi, 0x104
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.14000e940
lea r8, [0x140022b78]
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.14000e9ac
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x14000edf6
lea rcx, str._CptShareAPIWrapper::Init__Failed_to_call_SetDllDirectory_to:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r8, r14
xor edx, edx
lea rcx, [rbp + 0x3b0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp - 0x60]
mov rdx, rsi
lea rcx, [rbp + 0x3b0]
call fcn.14000e940
lea r8, str.ucrtbase.dll
mov rdx, rsi
lea rcx, [rbp + 0x3b0]
call fcn.14000e9ac
xor edx, edx
lea r8d, [rdx + 8]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea r8, str.CptShare.dll
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.14000e9ac
lea rax, vtable.zoom_windows_util::AutoLockFile.0
mov qword [rsp + 0x50], rax
mov rsi, rbx
mov qword [rsp + 0x58], rbx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000eeac
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rsp + 0x58], rax
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000ef9f
mov word [rsp + 0x4c], bx
mov word [rsp + 0x48], bx
mov word [rsp + 0x44], bx
mov word [rsp + 0x40], bx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x4c]
lea rcx, [rbp - 0x60]
call fcn.140019750
test al, al
je 0x14000efb6
mov r14d, 0x40
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
movzx eax, word [rsp + 0x40]
movzx ecx, word [rsp + 0x44]
movzx r8d, word [rsp + 0x48]
movzx r9d, word [rsp + 0x4c]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r8d
lea r8, str._d._d._d._d
mov edx, r14d
lea rcx, [rsp + 0x60]
call fcn.14000e71c
lea rdx, [0x1400236f0]
lea rcx, [rsp + 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov ecx, ebx
test eax, eax
sete cl
mov dword [rdi + 0xc40], ecx
lea rcx, [rbp - 0x60]
call fcn.14000eb30
mov qword [rdi + 0xc30], rax
lea r14, [rdi + 0xc38]
mov qword [r14], rbx
test rax, rax
je 0x14000ef9f
lea rdx, str.cpt_create_helper
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ef9f
mov rcx, r14
call qword [0x14001dec0]
cmp qword [rdi + 0xc30], rbx
je 0x14000efb6
cmp qword [rdi + 0xc38], rbx
je 0x14000efb6
mov ebx, 1
lea rcx, [rsi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000efc9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.140019ab0
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret