Function at 0x100171e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f991
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x1003dd60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x10], 0
mov ecx, dword [esi + 0x14]
push ecx
mov dword [ebp - 0x630], eax
call ebx
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [ebp - 0x62c], eax
cmp byte [ebp + 0x14], al
mov dword [ebp - 4], eax
je 0x100172cb
push 0x410
push str.ACB3FAA1_462D_475C_AC34_B1BD33673C0D
lea ecx, [ebp - 0x650]
call fcn.10011100
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], 1
call fcn.1000fb00
test eax, eax
mov dword [ebp - 0x634], eax
je 0x10017296
push 0
call ebx
mov edx, dword [ebp - 0x634]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [ebp - 0x62c], eax
jne 0x10017296
push 0x8007000e
call fcn.100010b9
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], 0
call fcn.10010cf0
push 0x10031de0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x10031de0
lea ecx, [ebp - 0x62c]
call fcn.100163d0
test eax, eax
jge 0x1001731d
push eax
call fcn.100010b9
push 0x616
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.1001ade0
lea ecx, [ebp - 0x628]
push 0x30c
push ecx
call fcn.10010d30
add esp, 0x14
push 0
call ebx
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [ebp - 0x62c], eax
jne 0x100172a5
push 0x8007000e
call fcn.100010b9
mov eax, dword [ebp + 8]
add eax, 0xffffffff
cmp eax, 6
ja case.0x10017328.2
jmp dword [eax*4 + 0x100174b0]
push str.Config
lea ecx, [ebp - 0x62c]
call fcn.10016530
jmp 0x100173b6
push str.Settings
lea ecx, [ebp - 0x62c]
call fcn.10016530
test edi, edi
je 0x100173b6
cmp word [edi], 0
je 0x100173b6
push edi
lea ecx, [ebp - 0x62c]
call fcn.10016530
jmp 0x100173b6
push str.DLPSettings
lea ecx, [ebp - 0x62c]
call fcn.10016530
test edi, edi
je 0x100173b6
cmp word [edi], 0
je 0x100173b6
push edi
lea ecx, [ebp - 0x62c]
call fcn.10016530
jmp 0x100173b6
push str.System
lea ecx, [ebp - 0x62c]
call fcn.10016530
jmp 0x100173b6
mov eax, dword [ebp - 0x62c]
push eax
call ebx
mov dword [ebp - 0x62c], 0
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x10017468
push str..dat
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str..dat
lea ecx, [ebp - 0x62c]
call fcn.100163d0
test eax, eax
jge 0x100173f1
push eax
call fcn.100010b9
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x10017408
push eax
mov ecx, esi
call fcn.100180a0
mov byte [esi + 0x10], al
jmp 0x10017468
call dword [0x1003dd34]
mov edi, dword [ebp - 0x62c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10017468
push edi
lea ecx, [ebp - 0x644]
call fcn.10010a80
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 2
call fcn.1000f8d0
test al, al
je 0x10017459
push edi
mov ecx, esi
call fcn.100180e0
test eax, eax
setge dl
lea ecx, [ebp - 0x644]
mov byte [esi + 0x10], dl
call fcn.1000f920
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 0
call fcn.10010c70
cmp byte [esi + 0x10], 0
je 0x1001747d
lea eax, [ebp - 0x62c]
push eax
lea ecx, [esi + 0x14]
call fcn.100077f9
mov ecx, dword [ebp - 0x62c]
mov bl, byte [esi + 0x10]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b05b
mov esp, ebp
pop ebp
ret 0x10