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

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov rax, qword [0x18007cb48]
mov qword [rsp + 0x70], rax
mov ebx, 1
cmp dword [0x1800d6fd8], 0
jne 0x18000be83
mov dword [0x1800d6fd8], ebx
call fcn.1800458f0
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1800d6fe0]
test eax, eax
je 0x18000be7e
call fcn.18002dc00
test eax, eax
je 0x18000be83
lea rdi, [0x1800d6fe0]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.SysWow64]
mov qword [rdi - 2], rax
mov rax, qword [0x18009ac10]
mov qword [rdi + 6], rax
mov eax, dword [0x18009ac18]
mov dword [rdi + 0xe], eax
jmp 0x18000be83
call fcn.18002dd40
lea r8, [0x1800d6fe0]
lea rdx, str._sowinoav3.dll
lea rcx, [rsp + 0x70]
call fcn.180021100
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18000bed9
cmp dword [0x1800d5b50], 0
je 0x18000bed4
lea r9, str.CanRegisterCoexistWithOEM__is_not_Coexist
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015620
nop
jmp 0x18000c137
lea r8, str.GlobalTEC_OCULAR_NOTICE_SDFILEICON
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x18000bf29
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1800d5b50], 0
je 0x18000bf24
lea r9, str.CanRegisterCoexistWithOEM__General_Start_SD
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015620
nop
jmp 0x18000c137
cmp dword [0x1800d5b50], 0
je 0x18000bf51
lea r9, str.CanRegisterCoexistWithOEM__Open_fail
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015620
lea r8, str.GlobalOEM_TEC_OCULAR_NOTICE_SDFILEICON
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x18000bfa2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1800d5b50], 0
je 0x18000bf9b
lea r9, str.CanRegisterCoexistWithOEM__oem_already_start_sd
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015620
xor ebx, ebx
jmp 0x18000c137
cmp dword [0x1800d5b50], 0
je 0x18000bfca
lea r9, str.CanRegisterCoexistWithOEM__Open_OEM_fail
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015620
lea rcx, [rsp + 0x38]
call fcn.180024e80
nop
mov r9d, 0x20019
lea r8, str.softwareTECOcular.3Agent
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.180024c60
test rax, rax
je 0x18000c076
xor r8d, r8d
lea rdx, str.RunSDAgent
lea rcx, [rsp + 0x38]
call fcn.1800244b0
mov esi, eax
xor r8d, r8d
lea rdx, str.RunSDAgent2
lea rcx, [rsp + 0x38]
call fcn.1800244b0
mov edi, eax
cmp dword [0x1800d5b50], 0
je 0x18000c054
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
lea r9, str.CanRegisterCoexistWithOEM__License__d___d_
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015620
lea rcx, [rsp + 0x38]
call fcn.180024400
test esi, esi
jne 0x18000c066
test edi, edi
je 0x18000c076
lea rcx, [rsp + 0x38]
call fcn.180024c20
nop
jmp 0x18000c137
lea rcx, [rsp + 0x38]
call fcn.180024c20
lea rcx, [rsp + 0x48]
call fcn.180024e80
nop
mov r9d, 0x20019
lea r8, str.softwareTECOemOcular.3Agent
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.180024c60
test rax, rax
je 0x18000c12b
xor r8d, r8d
lea rdx, str.RunSDAgent
lea rcx, [rsp + 0x48]
call fcn.1800244b0
mov ebx, eax
xor r8d, r8d
lea rdx, str.RunSDAgent2
lea rcx, [rsp + 0x48]
call fcn.1800244b0
mov edi, eax
cmp dword [0x1800d5b50], 0
je 0x18000c10a
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
lea r9, str.CanRegisterCoexistWithOEM__OEM_License__d___d_
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015620
lea rcx, [rsp + 0x48]
call fcn.180024400
test ebx, ebx
jne 0x18000c11c
test edi, edi
je 0x18000c12b
xor ebx, ebx
lea rcx, [rsp + 0x48]
call fcn.180024c20
nop
jmp 0x18000c137
lea rcx, [rsp + 0x48]
call fcn.180024c20
xor ebx, ebx
lea rcx, [rsp + 0x70]
call fcn.180020550
cmp dword [0x1800d5b50], 0
je 0x18000c16d
mov dword [rsp + 0x20], ebx
lea r9, str.CanRegisterCoexistWithOEM__bCan__d_
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015620
mov eax, ebx
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret