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

Disassembly:
mov eax, 0x1177e4b8
call fcn.116d0630
sub esp, 0x18
mov eax, dword [0x11784e74]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
call fcn.11663661
push eax
lea eax, [ebp - 0x10]
push str._sowinoav3.dll
push eax
call fcn.116994c0
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1168803b
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.GlobalTEC_OCULAR_NOTICE_SDFILEICON
push 0
push 0x1f0001
call ebx
test eax, eax
jne 0x11688064
mov eax, dword [0x117d15f0]
mov edi, str.CheckRegInfo
test eax, eax
mov esi, 0x117d0d5c
je 0x11687eeb
push str.CanRegisterCoexistWithOEM__Open_fail
push edi
push 0xffffffffffffffff
push esi
call fcn.116ce860
add esp, 0x10
push str.GlobalOEM_TEC_OCULAR_NOTICE_SDFILEICON
push 0
push 0x1f0001
call ebx
xor ebx, ebx
cmp eax, ebx
jne 0x11688085
cmp dword [0x117d15f0], ebx
je 0x11687f1c
push str.CanRegisterCoexistWithOEM__Open_OEM_fail
push edi
push 0xffffffffffffffff
push esi
call fcn.116ce860
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.116a4fc0
push 0x20019
push str.softwareTECOcular.3Agent
push SysStringLen
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.116a5130
test eax, eax
mov ebx, str.RunSDAgent2
je 0x11687fa2
push 0
push str.RunSDAgent
lea ecx, [ebp - 0x24]
call fcn.116a52d0
push 0
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
call fcn.116a52d0
cmp dword [0x117d15f0], 0
mov dword [ebp - 0x18], eax
je 0x11687f86
push eax
push dword [ebp - 0x14]
push str.CanRegisterCoexistWithOEM__License__d___d_
push edi
push 0xffffffffffffffff
push esi
call fcn.116ce860
add esp, 0x18
lea ecx, [ebp - 0x24]
call fcn.116a5180
cmp dword [ebp - 0x14], 0
jne 0x116880b1
cmp dword [ebp - 0x18], 0
jne 0x116880b1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.116a50b0
lea ecx, [ebp - 0x1c]
call fcn.116a4fc0
push 0x20019
push str.softwareTECOemOcular.3Agent
push SysStringLen
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.116a5130
test eax, eax
je 0x11688028
push 0
push str.RunSDAgent
lea ecx, [ebp - 0x1c]
call fcn.116a52d0
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], eax
call fcn.116a52d0
cmp dword [0x117d15f0], 0
mov ebx, eax
je 0x11688012
push ebx
push dword [ebp - 0x14]
push str.CanRegisterCoexistWithOEM__OEM_License__d___d_
push edi
push 0xffffffffffffffff
push esi
call fcn.116ce860
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.116a5180
cmp dword [ebp - 0x14], 0
jne 0x116880a7
test ebx, ebx
jne 0x116880a7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.116a50b0
xor ebx, ebx
jmp 0x116880c0
mov eax, dword [0x117d15f0]
mov edi, str.CheckRegInfo
test eax, eax
mov esi, 0x117d0d5c
je 0x1168805f
push str.CanRegisterCoexistWithOEM__is_not_Coexist
push edi
push 0xffffffffffffffff
push esi
call fcn.116ce860
add esp, 0x10
push 1
pop ebx
jmp 0x116880c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x117d15f0]
mov edi, str.CheckRegInfo
test eax, eax
mov esi, 0x117d0d5c
je 0x1168805f
push str.CanRegisterCoexistWithOEM__General_Start_SD
jmp 0x11688053
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x117d15f0], ebx
je 0x116880c0
push str.CanRegisterCoexistWithOEM__oem_already_start_sd
push edi
push 0xffffffffffffffff
push esi
call fcn.116ce860
add esp, 0x10
jmp 0x116880c0
xor ebx, ebx
lea ecx, [ebp - 0x1c]
and byte [ebp - 4], bl
jmp 0x116880bb
and byte [ebp - 4], 0
push 1
pop ebx
lea ecx, [ebp - 0x24]
call fcn.116a50b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.11696540
cmp dword [0x117d15f0], 0
je 0x116880e7
push ebx
push str.CanRegisterCoexistWithOEM__bCan__d_
push edi
push 0xffffffffffffffff
push esi
call fcn.116ce860
add esp, 0x14
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret