Function at 0x1001b950
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a86d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10059024]
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.10010bc0
mov esi, dword [ebp - 0x28]
add esp, 4
cmp dword [ebp - 0x2c], 0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1001bc88
push 0xa
lea edx, [ebp + 8]
mov dword [ebp + 8], 0xffffffff
mov ecx, esi
call fcn.1000fd60
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x1001bc88
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.10010bc0
mov esi, dword [ebp - 0x18]
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x1001bc6c
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test al, 1
je 0x1001ba87
push esi
call ecx
test eax, eax
je 0x1001ba7e
mov eax, dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
push 0x10049620
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.10010e50
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 0x1001bc50
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test al, 2
je 0x1001bb51
push esi
call ecx
test eax, eax
je 0x1001bb4e
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.10010e50
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.10010e50
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 0x1001bb11
mov eax, dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
push 0x10049620
push str.AI_PATH_VALIDATION_FAILED
push ebx
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1001bb1f
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 0x1001bb3b
push eax
call edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x1001bc6c
mov eax, dword [ebp + 8]
test al, 0xc
je 0x1001bc6c
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.10010bc0
mov eax, dword [ebp - 0x24]
add esp, 4
mov esi, dword [ebp - 0x20]
test eax, eax
je 0x1001bc50
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 0x1001bbd9
nop dword [eax]
add ecx, 2
cmp word [ecx], 0
jne 0x1001bbd0
mov edx, dword [ebp - 0x18]
push 0xffffffffffffffff
call fcn.10007d70
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, eax
cmp word [eax], 0
je 0x1001bbfa
add ecx, 2
cmp word [ecx], 0
jne 0x1001bbf1
mov esi, dword [ebp - 0x20]
mov edx, esi
push 0xffffffffffffffff
call fcn.10007d70
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001bc23
test byte [ebp + 8], 4
je 0x1001bc39
mov edx, str.4162
jmp 0x1001bc2e
test byte [ebp + 8], 8
je 0x1001bc39
mov edx, str.4163
push esi
mov ecx, ebx
call fcn.1001b880
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 0x1001bc5b
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 0x1001bc77
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 0x1001bc96
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