Function at 0x1001f0c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
mov ebx, ecx
mov dword [esp + 0x34], edx
push esi
push edi
mov eax, dword [ebx + 0x58]
cmp dword [eax + 0xb4], 0
je 0x1001f0ea
call fcn.1002f230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 0xc8], 0
xorps xmm0, xmm0
mov dword [eax + 0xcc], 0
mov eax, dword [ebx + 0x58]
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
movlpd qword [esp + 0x30], xmm0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov eax, dword [ebx + 0x58]
movlpd qword [esp + 0x18], xmm0
mov esi, dword [eax + 0x7c]
cmp esi, dword [eax + 0x80]
je 0x1001f3ee
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
nop dword [eax]
cmp dword [eax + 0xb4], 0
xorps xmm0, xmm0
mov ecx, dword [esi]
mov dword [esp + 0x30], ecx
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x50], 0xffffffff
lea edi, [ecx + 0x90]
jne 0x1001f1a6
cmp dword [edi + 0x10], 0
je 0x1001f344
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1001f1b0
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001f3bd
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x40]
push eax
mov edx, edi
mov ecx, ebx
call fcn.1001ed80
add esp, 4
test al, al
je 0x1001f389
cmp dword [ebx], ebx
jne 0x1001f34d
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x1001f2d4
mov edx, dword [esp + 0x40]
add dword [esp + 0x24], edx
mov eax, dword [ebx + 0x58]
mov ecx, dword [esp + 0x44]
adc dword [esp + 0x28], ecx
add dword [eax + 0xc8], edx
adc dword [eax + 0xcc], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [ebx + 0x58]
add esi, 4
cmp esi, dword [eax + 0x80]
jne 0x1001f170
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add ecx, eax
adc edx, edi
add ecx, dword [esp + 0x24]
adc edx, dword [esp + 0x28]
call fcn.1015d7a0
movaps xmm1, xmm0
mulsd xmm0, qword [0x101e1c78]
addsd xmm0, xmm1
call fcn.1015d649
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov eax, edx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1001f26b
mov dword [ecx], edi
mov dword [ecx + 4], eax
call fcn.1004cb70
push dword [esp + 0x18]
push edi
mov esi, dword [eax]
push str.pim_haveEnoughDiskSpaceToInstallPackages_reqSize_...__llu
push 0x101aedac
push eax
mov esi, dword [esi + 0x50]
mov ecx, esi
call dword [0x1019a4f8]
call esi
mov esi, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [ebx + 0x58]
add ecx, 0x20
push esi
push edi
call fcn.100049f0
add esp, 8
test al, al
jne 0x1001f40b
push esi
push edi
push str.Error_do_not_have_enough_disk_space_...__llu
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d700
add esp, 0x14
mov eax, 0x17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x1001f2e2
cmp eax, 1
jne 0x1001f20f
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
cmp edi, dword [esp + 0x4c]
jb 0x1001f30c
mov eax, dword [esp + 0x48]
ja 0x1001f2fa
cmp edx, eax
jbe 0x1001f30c
mov ecx, edx
sub ecx, eax
mov eax, edi
sbb eax, dword [esp + 0x4c]
add dword [esp + 0x18], ecx
adc dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x58]
add dword [eax + 0xc8], edx
adc dword [eax + 0xcc], edi
cmp dword [esp + 0xc], edi
ja 0x1001f20f
jb 0x1001f333
mov ecx, dword [esp + 0x10]
cmp ecx, edx
jae 0x1001f213
mov ecx, edx
mov edx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
jmp 0x1001f217
mov ecx, dword [esp + 0x10]
jmp 0x1001f217
push str.PIM_library_reference_is_invalid
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d580
add esp, 0xc
push str.Error_Invalid_Library_reference._PIM_STATUS_INVALID_LIBRARY_REF_
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d700
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x1001f394
mov eax, dword [eax]
push eax
push str.Error_Failed_to_estimate_Package_Size_of_package__s.
push 0x101aedac
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004d700
add esp, 0x10
mov eax, 0x31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x1001f3c5
mov edi, dword [edi]
push edi
push str.Cant_estimate_the_size_for_this_package_as_pimx_file__s_is_missing
push 0x101aee58
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004dbb0
add esp, 0x10
mov eax, 0x29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
jmp 0x1001f22d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret