Function at 0x100477b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a34d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x100c0040]
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 0x100a416c
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 0x10047b91
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 0x10047b91
push 0xa
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, ebx
call fcn.10033e40
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x10047b8e
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push 0x100a416c
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 0x10047b71
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 0x10047b71
test bl, 1
je 0x10047984
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10047984
push 0x100a4178
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.10034fc0
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 0x10047b63
push edi
jmp 0x10047b5d
test bl, 2
je 0x10047a55
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10047a55
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.10034fc0
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.10034fc0
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 0x10047a13
push 0x100a4178
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 0x10047a25
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 0x10047a42
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jmp 0x10047b71
test bl, 0xc
je 0x10047b71
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.10034bb0
mov ecx, dword [ebp - 0x30]
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10047b54
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 0x10047ada
add ecx, 2
cmp word [ecx], 0
jne 0x10047ad1
mov esi, dword [ebp - 0x34]
mov edx, esi
push 0xffffffffffffffff
call fcn.10016e50
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, eax
cmp word [eax], 0
je 0x10047afd
add ecx, 2
cmp word [ecx], 0
jne 0x10047af4
push 0xffffffffffffffff
mov edx, ebx
call fcn.10016e50
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10047b23
test byte [ebp - 0x1c], 4
je 0x10047b39
mov edx, str.4162
jmp 0x10047b2e
test byte [ebp - 0x1c], 8
je 0x10047b39
mov edx, str.4163
push ebx
mov ecx, edi
call fcn.100476e0
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 0x10047b63
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 0x10047b80
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 0x10047ba3
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