Function at 0x1001ed80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018e6f3
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0xf0], ebx
mov esi, ecx
mov dword [ebp - 0xe0], esi
mov edi, dword [ebp + 8]
call fcn.1000cd70
test al, al
jne 0x1001ede9
push str.Invalid_PIMLibraryRef.
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d700
add esp, 0xc
xor al, al
jmp 0x1001f0a0
lea edx, [esi + 0x30]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 0
call fcn.1000bee0
mov eax, ecx
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0
lea esi, [ebx + 0x34]
add ebx, 4
push eax
push edx
mov edx, esi
mov dword [ebp - 0xec], esi
mov ecx, ebx
call fcn.10029570
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0x2c]
add esp, 0xc
add eax, 0xc
push eax
call fcn.10018740
mov edx, dword [ebp - 0xf0]
push ecx
add edx, 0x4c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.100fda00
add esp, 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1001ef12
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
setne al
test al, al
je 0x1001ef12
mov ecx, dword [ebp - 0xe8]
cmp ecx, 4
jne 0x1001ef17
call fcn.1004cb70
cmp dword [esi + 0x14], 0x10
jb 0x1001eebf
mov esi, dword [esi]
mov dword [ebp - 0xec], esi
cmp dword [ebx + 0x14], 0x10
jb 0x1001eec7
mov ebx, dword [ebx]
push dword [ebp - 0xec]
mov esi, dword [eax]
push ebx
push str.Package_name__s__package_version__s_is_a_Old_Package__a_newer_package_is_installed_in_the_system.
push 0x101aedac
mov esi, dword [esi + 0x50]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x14
mov dword [edi + 0x10], 3
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
jmp 0x1001f081
mov ecx, 1
cmp dword [ebp - 0x80], 0
jbe 0x1001efb8
cmp ecx, 1
je 0x1001efb8
xor eax, eax
cmp ecx, 3
sete al
inc eax
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 0x58]
add eax, 0x20
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1002d8c0
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.10005ff0
test al, al
jne 0x1001ef82
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.1000ad20
jmp 0x1001efcd
lea edx, [edi + 8]
lea ecx, [ebp - 0x5c]
call fcn.100057c0
test al, al
jne 0x1001ef74
push str.Error_Failed_to_get_size_of_old_package_on_the_system.
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d700
add esp, 0xc
lea ecx, [ebp - 0x5c]
call fcn.1000ad20
xor bl, bl
jmp 0x1001f083
mov dword [edi + 0x10], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ebx, dword [ebp - 0xf0]
lea edx, [ebp - 0x44]
xorps xmm0, xmm0
mov ecx, ebx
movlpd qword [ebp - 0xe4], xmm0
call fcn.10029400
test eax, eax
jne 0x1001f081
lea eax, [ebp - 0x44]
add ebx, 0xa8
push eax
mov ecx, ebx
call fcn.1002d440
lea edx, [ebp - 0xe4]
lea ecx, [eax + 0x18]
call fcn.10005f80
test al, al
jne 0x1001f02f
push str.Error_Failed_to_get_package_size.
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d700
add esp, 0xc
xor bl, bl
jmp 0x1001f083
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xe4]
test edx, edx
ja 0x1001f07c
jb 0x1001f045
test eax, eax
jne 0x1001f07c
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.1002d440
add eax, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x1001f05b
mov eax, dword [eax]
push eax
push str.Error_invalid_value_for_the_package_assets_size__s._Should_be_integer.
push 0x101aedac
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004d700
add esp, 0x10
xor bl, bl
jmp 0x1001f083
mov dword [edi], eax
mov dword [edi + 4], edx
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.1000ad20
lea ecx, [ebp - 0xdc]
call fcn.1000bf50
lea ecx, [ebp - 0x44]
call fcn.1000ad20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret