Function at 0x18000be40
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 [0x18007db48]
mov qword [rsp + 0x70], rax
mov ebx, 1
cmp dword [0x1800d7fd8], 0
jne 0x18000bed3
mov dword [0x1800d7fd8], ebx
call fcn.180046220
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1800d7fe0]
test eax, eax
je 0x18000bece
call fcn.18002e520
test eax, eax
je 0x18000bed3
lea rdi, [0x1800d7fe0]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.SysWow64]
mov qword [rdi - 2], rax
mov rax, qword [0x18009bc20]
mov qword [rdi + 6], rax
mov eax, dword [0x18009bc28]
mov dword [rdi + 0xe], eax
jmp 0x18000bed3
call fcn.18002e660
lea r8, [0x1800d7fe0]
lea rdx, str._sowinoav3.dll
lea rcx, [rsp + 0x70]
call fcn.180021990
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18000bf29
cmp dword [0x1800d6b50], 0
je 0x18000bf24
lea r9, str.CanRegisterCoexistWithOEM__is_not_Coexist
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.1800157c0
nop
jmp 0x18000c187
lea r8, str.GlobalTEC_OCULAR_NOTICE_SDFILEICON
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x18000bf79
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1800d6b50], 0
je 0x18000bf74
lea r9, str.CanRegisterCoexistWithOEM__General_Start_SD
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.1800157c0
nop
jmp 0x18000c187
cmp dword [0x1800d6b50], 0
je 0x18000bfa1
lea r9, str.CanRegisterCoexistWithOEM__Open_fail
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.1800157c0
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 0x18000bff2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1800d6b50], 0
je 0x18000bfeb
lea r9, str.CanRegisterCoexistWithOEM__oem_already_start_sd
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.1800157c0
xor ebx, ebx
jmp 0x18000c187
cmp dword [0x1800d6b50], 0
je 0x18000c01a
lea r9, str.CanRegisterCoexistWithOEM__Open_OEM_fail
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.1800157c0
lea rcx, [rsp + 0x38]
call fcn.180025710
nop
mov r9d, 0x20019
lea r8, str.softwareTECOcular.3Agent
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.1800254f0
test rax, rax
je 0x18000c0c6
xor r8d, r8d
lea rdx, str.RunSDAgent
lea rcx, [rsp + 0x38]
call fcn.180024d40
mov esi, eax
xor r8d, r8d
lea rdx, str.RunSDAgent2
lea rcx, [rsp + 0x38]
call fcn.180024d40
mov edi, eax
cmp dword [0x1800d6b50], 0
je 0x18000c0a4
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, [0x1800d6a98]
call fcn.1800157c0
lea rcx, [rsp + 0x38]
call fcn.180024c90
test esi, esi
jne 0x18000c0b6
test edi, edi
je 0x18000c0c6
lea rcx, [rsp + 0x38]
call fcn.1800254b0
nop
jmp 0x18000c187
lea rcx, [rsp + 0x38]
call fcn.1800254b0
lea rcx, [rsp + 0x48]
call fcn.180025710
nop
mov r9d, 0x20019
lea r8, str.softwareTECOemOcular.3Agent
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1800254f0
test rax, rax
je 0x18000c17b
xor r8d, r8d
lea rdx, str.RunSDAgent
lea rcx, [rsp + 0x48]
call fcn.180024d40
mov ebx, eax
xor r8d, r8d
lea rdx, str.RunSDAgent2
lea rcx, [rsp + 0x48]
call fcn.180024d40
mov edi, eax
cmp dword [0x1800d6b50], 0
je 0x18000c15a
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, [0x1800d6a98]
call fcn.1800157c0
lea rcx, [rsp + 0x48]
call fcn.180024c90
test ebx, ebx
jne 0x18000c16c
test edi, edi
je 0x18000c17b
xor ebx, ebx
lea rcx, [rsp + 0x48]
call fcn.1800254b0
nop
jmp 0x18000c187
lea rcx, [rsp + 0x48]
call fcn.1800254b0
xor ebx, ebx
lea rcx, [rsp + 0x70]
call fcn.180020de0
cmp dword [0x1800d6b50], 0
je 0x18000c1bd
mov dword [rsp + 0x20], ebx
lea r9, str.CanRegisterCoexistWithOEM__bCan__d_
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.1800157c0
mov eax, ebx
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret