Function at 0x1003a3d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ef21
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x10086e84]
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 [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x10], 0
mov ecx, dword [esi + 0x14]
push ecx
mov dword [ebp - 0x630], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
mov dword [esi + 0x14], edi
mov dword [ebp - 0x62c], edi
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], edi
je 0x1003a4b8
push 1
push 0x410
push str.ACB3FAA1_462D_475C_AC34_B1BD33673C0D
lea ecx, [ebp - 0x64c]
call fcn.10017b10
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], 1
call fcn.100107a0
mov edi, eax
test edi, edi
je 0x1003a481
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [ebp - 0x62c], eax
jne 0x1003a481
push 0x8007000e
call fcn.100011df
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], 0
call fcn.10014840
xor edi, edi
push 0x10070ae0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x10070ae0
lea ecx, [ebp - 0x62c]
call fcn.10036b00
cmp eax, edi
jge 0x1003a50d
push eax
call fcn.100011df
push 0x616
lea edx, [ebp - 0x626]
push edi
push edx
mov word [ebp - 0x628], di
call fcn.10042010
lea eax, [ebp - 0x628]
push 0x30c
push eax
call fcn.10014950
add esp, 0x14
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, edi
mov dword [ebp - 0x62c], eax
jne 0x1003a492
push 0x8007000e
call fcn.100011df
mov eax, dword [ebp + 8]
add eax, 0xffffffff
cmp eax, 6
ja case.0x1003a518.2
jmp dword [eax*4 + 0x1003a684]
push str.Config
lea ecx, [ebp - 0x62c]
call fcn.10037000
jmp 0x1003a584
push str.Settings
lea ecx, [ebp - 0x62c]
call fcn.10037000
cmp ebx, edi
je 0x1003a584
cmp word [ebx], di
je 0x1003a584
push ebx
lea ecx, [ebp - 0x62c]
call fcn.10037000
jmp 0x1003a584
push str.DLPSettings
jmp 0x1003a536
push str.System
lea ecx, [ebp - 0x62c]
call fcn.10037000
jmp 0x1003a584
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x62c], edi
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1003a63c
push str..dat
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str..dat
lea ecx, [ebp - 0x62c]
call fcn.10036b00
cmp eax, edi
jge 0x1003a5bf
push eax
call fcn.100011df
mov eax, dword [ebp - 0x630]
cmp eax, edi
je 0x1003a5d6
push eax
mov ecx, esi
call fcn.1001da60
mov byte [esi + 0x10], al
jmp 0x1003a63c
call dword [0x10086d18]
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003a63c
mov ebx, dword [ebp - 0x62c]
push ebx
lea ecx, [ebp - 0x640]
call fcn.100145d0
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 2
call fcn.10010540
test al, al
je 0x1003a62d
push ebx
mov ecx, esi
call fcn.1001daa0
cmp eax, edi
setge dl
lea ecx, [ebp - 0x640]
mov byte [esi + 0x10], dl
call fcn.10010590
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 0
call fcn.100147c0
cmp byte [esi + 0x10], 0
je 0x1003a651
lea eax, [ebp - 0x62c]
push eax
lea ecx, [esi + 0x14]
call fcn.10016df0
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.10041ffa
mov esp, ebp
pop ebp
ret 0x10