Function at 0x68989390
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x24
mov dword [ebp - 0x14], edx
mov dword [esp], eax
call sym._skip_schema
mov edi, eax
test ebx, ebx
je 0x689893b2
mov dword [ebx], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._ExpandEnvironmentStringsW_12
sub esp, 0xc
mov edx, eax
test eax, eax
jne 0x689893f0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x18], edx
call sym._GetProcessHeap_0
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], 0
mov dword [esp], eax
lea ecx, [edx + edx]
mov dword [esp + 8], ecx
call sym._HeapAlloc_12
mov edx, dword [ebp - 0x18]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x689893dc
mov dword [esp], edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._ExpandEnvironmentStringsW_12
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
sub esp, 0xc
mov dword [esp + 4], 0x68994b3c
mov dword [esp], esi
call edi
test eax, eax
je 0x689894ab
xor ecx, ecx
mov word [eax], cx
add eax, 2
je 0x689895c0
mov dword [esp], eax
mov dword [ebp - 0x1c], eax
call sym._lstrlenW_4
sub esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0x18], eax
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x18]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapAlloc_12
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._memmove
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [esp + 4], 0x68994b34
mov dword [esp], esi
call edi
test eax, eax
je 0x68989517
xor edx, edx
mov word [eax], dx
test ebx, ebx
je 0x68989517
add eax, 4
je 0x689895d0
mov dword [esp], eax
mov dword [ebp - 0x18], eax
call sym._lstrlenW_4
sub esp, 4
lea edi, [eax + eax + 2]
call sym._GetProcessHeap_0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
mov edx, dword [ebp - 0x18]
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memmove
mov ecx, dword [ebp - 0x18]
mov dword [ebx], ecx
mov ebx, dword [ebp - 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x104
mov dword [esp + 8], ebx
mov dword [esp], esi
call sym._GetFullPathNameW_16
sub esp, 0x10
mov dword [esp], ebx
call sym._GetFileAttributesW_4
sub esp, 4
cmp eax, 0xffffffff
je 0x68989584
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov eax, dword [ebp - 0x14]
sub esp, 0xc
mov dword [esp], eax
call sym._GetFileAttributesW_4
sub esp, 4
cmp eax, 0xffffffff
setne al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0x14]
mov dword [esp + 4], 0x104
mov dword [esp], edi
call sym._GetWindowsDirectoryW_8
sub esp, 8
mov dword [esp + 4], str.help_
mov dword [esp], edi
call sym._lstrcatW_8
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._lstrcatW_8
sub esp, 8
jmp 0x68989549
xor edx, edx
jmp 0x689894a6
xor ecx, ecx
mov dword [ebx], ecx
jmp 0x68989517