Function at 0x10022ff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045e4d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10067024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
push str.AI_PATH_VALIDATION_FAILED
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov edx, str.AI_PATH_VALIDATION_OPT
mov ecx, ebx
call fcn.10016940
mov esi, dword [ebp - 0x28]
add esp, 4
cmp dword [ebp - 0x2c], 0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10023328
push 0xa
lea edx, [ebp + 8]
mov dword [ebp + 8], 0xffffffff
mov ecx, esi
call fcn.10015a30
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10023328
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
mov edx, str.APPDIR
mov ecx, ebx
call fcn.10016940
mov esi, dword [ebp - 0x18]
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x1002330c
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test al, 1
je 0x10023127
push esi
call ecx
test eax, eax
je 0x1002311e
mov eax, dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
push 0x10056584
push str.AI_PATH_VALIDATION_FAILED
push ebx
call eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push 1
push eax
mov edx, str.4160
mov ecx, ebx
call fcn.10016bd0
add esp, 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [ebp - 0x20]
push 0x10
push 0
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100232f0
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test al, 2
je 0x100231f1
push esi
call ecx
test eax, eax
je 0x100231ee
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push 1
push eax
mov edx, str.4161
mov ecx, ebx
call fcn.10016bd0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24]
push 0
push eax
mov edx, str.Warning
mov ecx, ebx
call fcn.10016bd0
add esp, 0x10
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x34
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x100231b1
mov eax, dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
push 0x10056584
push str.AI_PATH_VALIDATION_FAILED
push ebx
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100231bf
push eax
call edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100231db
push eax
call edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x1002330c
mov eax, dword [ebp + 8]
test al, 0xc
je 0x1002330c
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x24]
push eax
mov edx, str.AI_PATH_VALIDATION_FILENAME
mov ecx, ebx
call fcn.10016940
mov eax, dword [ebp - 0x24]
add esp, 4
mov esi, dword [ebp - 0x20]
test eax, eax
je 0x100232f0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 6
xor ecx, ecx
mov esi, dword [ebp - 0x1c]
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 0x10023279
nop dword [eax]
add ecx, 2
cmp word [ecx], 0
jne 0x10023270
mov edx, dword [ebp - 0x18]
push 0xffffffffffffffff
call fcn.10008a90
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, eax
cmp word [eax], 0
je 0x1002329a
add ecx, 2
cmp word [ecx], 0
jne 0x10023291
mov esi, dword [ebp - 0x20]
mov edx, esi
push 0xffffffffffffffff
call fcn.10008a90
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100232c3
test byte [ebp + 8], 4
je 0x100232d9
mov edx, str.4162
jmp 0x100232ce
test byte [ebp + 8], 8
je 0x100232d9
mov edx, str.4163
push esi
mov ecx, ebx
call fcn.10022f20
add esp, 4
mov byte [ebp - 4], 5
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
test esi, esi
je 0x100232fb
push esi
call edi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
test esi, esi
je 0x10023317
push esi
call edi
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10023336
push esi
call edi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x2c], 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