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

Disassembly:
mov eax, 0x1178e740
call fcn.116e0880
sub esp, 0x18
mov eax, dword [0x11794eec]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
call fcn.11673661
push eax
lea eax, [ebp - 0x10]
push str._sowinoav3.dll
push eax
call fcn.116a9710
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x11698125
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.GlobalTEC_OCULAR_NOTICE_SDFILEICON
push 0
push 0x1f0001
call ebx
test eax, eax
jne 0x1169814e
mov eax, dword [0x117e1700]
mov edi, str.CheckRegInfo
test eax, eax
mov esi, 0x117e0e6c
je 0x11697fd5
push str.CanRegisterCoexistWithOEM__Open_fail
push edi
push 0xffffffffffffffff
push esi
call fcn.116deab0
add esp, 0x10
push str.GlobalOEM_TEC_OCULAR_NOTICE_SDFILEICON
push 0
push 0x1f0001
call ebx
xor ebx, ebx
cmp eax, ebx
jne 0x1169816f
cmp dword [0x117e1700], ebx
je 0x11698006
push str.CanRegisterCoexistWithOEM__Open_OEM_fail
push edi
push 0xffffffffffffffff
push esi
call fcn.116deab0
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.116b5210
push 0x20019
push str.softwareTECOcular.3Agent
push SysStringLen
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.116b5380
test eax, eax
mov ebx, str.RunSDAgent2
je 0x1169808c
push 0
push str.RunSDAgent
lea ecx, [ebp - 0x24]
call fcn.116b5520
push 0
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
call fcn.116b5520
cmp dword [0x117e1700], 0
mov dword [ebp - 0x18], eax
je 0x11698070
push eax
push dword [ebp - 0x14]
push str.CanRegisterCoexistWithOEM__License__d___d_
push edi
push 0xffffffffffffffff
push esi
call fcn.116deab0
add esp, 0x18
lea ecx, [ebp - 0x24]
call fcn.116b53d0
cmp dword [ebp - 0x14], 0
jne 0x1169819b
cmp dword [ebp - 0x18], 0
jne 0x1169819b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.116b5300
lea ecx, [ebp - 0x1c]
call fcn.116b5210
push 0x20019
push str.softwareTECOemOcular.3Agent
push SysStringLen
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.116b5380
test eax, eax
je 0x11698112
push 0
push str.RunSDAgent
lea ecx, [ebp - 0x1c]
call fcn.116b5520
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], eax
call fcn.116b5520
cmp dword [0x117e1700], 0
mov ebx, eax
je 0x116980fc
push ebx
push dword [ebp - 0x14]
push str.CanRegisterCoexistWithOEM__OEM_License__d___d_
push edi
push 0xffffffffffffffff
push esi
call fcn.116deab0
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.116b53d0
cmp dword [ebp - 0x14], 0
jne 0x11698191
test ebx, ebx
jne 0x11698191
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.116b5300
xor ebx, ebx
jmp 0x116981aa
mov eax, dword [0x117e1700]
mov edi, str.CheckRegInfo
test eax, eax
mov esi, 0x117e0e6c
je 0x11698149
push str.CanRegisterCoexistWithOEM__is_not_Coexist
push edi
push 0xffffffffffffffff
push esi
call fcn.116deab0
add esp, 0x10
push 1
pop ebx
jmp 0x116981aa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x117e1700]
mov edi, str.CheckRegInfo
test eax, eax
mov esi, 0x117e0e6c
je 0x11698149
push str.CanRegisterCoexistWithOEM__General_Start_SD
jmp 0x1169813d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x117e1700], ebx
je 0x116981aa
push str.CanRegisterCoexistWithOEM__oem_already_start_sd
push edi
push 0xffffffffffffffff
push esi
call fcn.116deab0
add esp, 0x10
jmp 0x116981aa
xor ebx, ebx
lea ecx, [ebp - 0x1c]
and byte [ebp - 4], bl
jmp 0x116981a5
and byte [ebp - 4], 0
push 1
pop ebx
lea ecx, [ebp - 0x24]
call fcn.116b5300
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.116a6790
cmp dword [0x117e1700], 0
je 0x116981d1
push ebx
push str.CanRegisterCoexistWithOEM__bCan__d_
push edi
push 0xffffffffffffffff
push esi
call fcn.116deab0
add esp, 0x14
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret