Function at 0x18000bf50
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 0x18000bfe3
mov dword [0x1800d7fd8], ebx
call fcn.180046440
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1800d7fe0]
test eax, eax
je 0x18000bfde
call fcn.18002e740
test eax, eax
je 0x18000bfe3
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 [0x18009bc10]
mov qword [rdi + 6], rax
mov eax, dword [0x18009bc18]
mov dword [rdi + 0xe], eax
jmp 0x18000bfe3
call fcn.18002e880
lea r8, [0x1800d7fe0]
lea rdx, str._sowinoav3.dll
lea rcx, [rsp + 0x70]
call fcn.180021bb0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18000c039
cmp dword [0x1800d6b50], 0
je 0x18000c034
lea r9, str.CanRegisterCoexistWithOEM__is_not_Coexist
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.180015770
nop
jmp 0x18000c297
lea r8, str.GlobalTEC_OCULAR_NOTICE_SDFILEICON
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x18000c089
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1800d6b50], 0
je 0x18000c084
lea r9, str.CanRegisterCoexistWithOEM__General_Start_SD
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.180015770
nop
jmp 0x18000c297
cmp dword [0x1800d6b50], 0
je 0x18000c0b1
lea r9, str.CanRegisterCoexistWithOEM__Open_fail
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.180015770
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 0x18000c102
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1800d6b50], 0
je 0x18000c0fb
lea r9, str.CanRegisterCoexistWithOEM__oem_already_start_sd
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.180015770
xor ebx, ebx
jmp 0x18000c297
cmp dword [0x1800d6b50], 0
je 0x18000c12a
lea r9, str.CanRegisterCoexistWithOEM__Open_OEM_fail
lea r8, str.CheckRegInfo
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.180015770
lea rcx, [rsp + 0x38]
call fcn.180025930
nop
mov r9d, 0x20019
lea r8, str.softwareTECOcular.3Agent
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.180025710
test rax, rax
je 0x18000c1d6
xor r8d, r8d
lea rdx, str.RunSDAgent
lea rcx, [rsp + 0x38]
call fcn.180024f60
mov esi, eax
xor r8d, r8d
lea rdx, str.RunSDAgent2
lea rcx, [rsp + 0x38]
call fcn.180024f60
mov edi, eax
cmp dword [0x1800d6b50], 0
je 0x18000c1b4
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.180015770
lea rcx, [rsp + 0x38]
call fcn.180024eb0
test esi, esi
jne 0x18000c1c6
test edi, edi
je 0x18000c1d6
lea rcx, [rsp + 0x38]
call fcn.1800256d0
nop
jmp 0x18000c297
lea rcx, [rsp + 0x38]
call fcn.1800256d0
lea rcx, [rsp + 0x48]
call fcn.180025930
nop
mov r9d, 0x20019
lea r8, str.softwareTECOemOcular.3Agent
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.180025710
test rax, rax
je 0x18000c28b
xor r8d, r8d
lea rdx, str.RunSDAgent
lea rcx, [rsp + 0x48]
call fcn.180024f60
mov ebx, eax
xor r8d, r8d
lea rdx, str.RunSDAgent2
lea rcx, [rsp + 0x48]
call fcn.180024f60
mov edi, eax
cmp dword [0x1800d6b50], 0
je 0x18000c26a
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.180015770
lea rcx, [rsp + 0x48]
call fcn.180024eb0
test ebx, ebx
jne 0x18000c27c
test edi, edi
je 0x18000c28b
xor ebx, ebx
lea rcx, [rsp + 0x48]
call fcn.1800256d0
nop
jmp 0x18000c297
lea rcx, [rsp + 0x48]
call fcn.1800256d0
xor ebx, ebx
lea rcx, [rsp + 0x70]
call fcn.180021000
cmp dword [0x1800d6b50], 0
je 0x18000c2cd
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.180015770
mov eax, ebx
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret