Function at 0x100415d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b15d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x100ad040]
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 - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x10093cf4
xor ebx, ebx
push str.AI_PATH_VALIDATION_OPT
mov dword [ebp - 0x24], ebx
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x100419b1
mov esi, dword [ebp - 0x10]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x10], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.AI_PATH_VALIDATION_OPT
mov dword [ebp - 0x24], ebx
push edi
mov dword [ebp - 0x28], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
test esi, esi
je 0x100419b1
push 0xa
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, ebx
call fcn.1002dc60
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x100419ae
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push 0x10093cf4
xor esi, esi
push str.APPDIR
mov dword [ebp - 0x34], esi
push edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x10041991
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 esi, eax
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.APPDIR
push edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp dword [ebp - 0x18], 0
je 0x10041991
test bl, 1
je 0x100417a4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100417a4
push 0x10093d00
push str.AI_PATH_VALIDATION_FAILED
push edi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
push 1
push eax
mov edx, str.4160
mov ecx, edi
call fcn.1002ede0
add esp, 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [ebp - 0x2c]
push 0x10
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 1
test edi, edi
je 0x10041983
push edi
jmp 0x1004197d
test bl, 2
je 0x10041875
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10041875
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push 1
push eax
mov edx, str.4161
mov ecx, edi
call fcn.1002ede0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x30]
push 0
push eax
mov edx, str.Warning
mov ecx, edi
call fcn.1002ede0
add esp, 0x10
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp - 0x1c]
push 0x34
push dword [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x10041833
push 0x10093d00
push str.AI_PATH_VALIDATION_FAILED
push edi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10041845
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x10041862
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jmp 0x10041991
test bl, 0xc
je 0x10041991
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x30]
push eax
mov edx, str.AI_PATH_VALIDATION_FILENAME
mov ecx, edi
call fcn.1002e9d0
mov ecx, dword [ebp - 0x30]
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10041974
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 6
mov edx, 2
mov esi, dword [ebp - 0x18]
add esi, ecx
xor ecx, ecx
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 0x100418fa
add ecx, 2
cmp word [ecx], 0
jne 0x100418f1
mov esi, dword [ebp - 0x34]
mov edx, esi
push 0xffffffffffffffff
call fcn.10013e00
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, eax
cmp word [eax], 0
je 0x1004191d
add ecx, 2
cmp word [ecx], 0
jne 0x10041914
push 0xffffffffffffffff
mov edx, ebx
call fcn.10013e00
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10041943
test byte [ebp - 0x1c], 4
je 0x10041959
mov edx, str.4162
jmp 0x1004194e
test byte [ebp - 0x1c], 8
je 0x10041959
mov edx, str.4163
push ebx
mov ecx, edi
call fcn.10041500
add esp, 4
mov byte [ebp - 4], 5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x10041983
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
test esi, esi
je 0x100419a0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x100419c3
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x28], 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