Function at 0x1003a000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006245d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10088020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push str.AI_PATH_VALIDATION_FAILED
push edi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 0x100707ac
push str.AI_PATH_VALIDATION_OPT
mov dword [ebp - 0x30], 0
push edi
mov dword [ebp - 0x34], 0
mov dword [ebp + 8], 0
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp eax, 0xea
jne 0x1003a3e5
mov esi, dword [ebp + 8]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp + 8], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp + 8]
mov dword [ebp - 0x30], eax
push ecx
push eax
push str.AI_PATH_VALIDATION_OPT
push edi
mov dword [ebp - 0x34], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
test esi, esi
je 0x1003a3e5
mov ecx, dword [ebp - 0x30]
lea edx, [ebp + 8]
push 0xa
mov dword [ebp + 8], 0xffffffff
call fcn.10026db0
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x1003a3e5
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push 0x100707ac
mov dword [ebp - 0x20], 0
mov esi, dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
push str.APPDIR
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
call esi
cmp eax, 0xea
jne 0x1003a3c9
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push str.APPDIR
push edi
call esi
cmp dword [ebp - 0x18], 0
je 0x1003a3c9
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x20]
test al, 1
je 0x1003a1eb
push esi
call ecx
test eax, eax
je 0x1003a1e2
mov eax, dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
push 0x100707b8
push str.AI_PATH_VALIDATION_FAILED
push edi
call eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push 1
push eax
mov edx, str.4160
mov ecx, edi
call fcn.10027ee0
add esp, 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [ebp - 0x28]
push 0x10
push 0
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1003a3b0
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test al, 2
je 0x1003a2b3
push esi
call ecx
test eax, eax
je 0x1003a2b0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push 1
push eax
mov edx, str.4161
mov ecx, edi
call fcn.10027ee0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
push 0
push eax
mov edx, str.Warning
mov ecx, edi
call fcn.10027ee0
add esp, 0x10
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [ebp - 0x18]
push 0x34
push dword [ebp - 0x28]
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x1003a276
mov eax, dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
push 0x100707b8
push str.AI_PATH_VALIDATION_FAILED
push edi
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1003a284
push eax
call ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
test esi, esi
je 0x1003a29d
push esi
call ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
jmp 0x1003a3c9
mov eax, dword [ebp + 8]
test al, 0xc
je 0x1003a3c9
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c]
push eax
mov edx, str.AI_PATH_VALIDATION_FILENAME
mov ecx, edi
call fcn.10027ad0
mov eax, dword [ebp - 0x2c]
add esp, 4
mov esi, dword [ebp - 0x28]
test eax, eax
je 0x1003a3b0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 6
xor ecx, ecx
mov esi, dword [ebp - 0x18]
mov edx, 2
add esi, eax
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 0x14], esi
cmp word [eax], 0
je 0x1003a339
nop
add ecx, 2
cmp word [ecx], 0
jne 0x1003a330
mov edx, dword [ebp - 0x20]
push 0xffffffffffffffff
call fcn.10013290
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, eax
cmp word [eax], 0
je 0x1003a35a
add ecx, 2
cmp word [ecx], 0
jne 0x1003a351
mov esi, dword [ebp - 0x28]
mov edx, esi
push 0xffffffffffffffff
call fcn.10013290
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003a383
test byte [ebp + 8], 4
je 0x1003a399
mov edx, str.4162
jmp 0x1003a38e
test byte [ebp + 8], 8
je 0x1003a399
mov edx, str.4163
push esi
mov ecx, edi
call fcn.10039f30
add esp, 4
mov byte [ebp - 4], 5
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
test esi, esi
je 0x1003a3bb
push esi
call ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1003a3d7
push eax
call ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1003a3f6
push eax
call ebx
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4