Function at 0x1001d380
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017ecb3
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x101e42fc]
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 - 0xec], ebx
mov esi, ecx
mov dword [ebp - 0xe8], esi
mov edi, dword [ebp + 8]
call fcn.1000f0a0
test al, al
jne 0x1001d3e9
push str.Invalid_PIMLibraryRef.
push 0x101a55a8
call fcn.10002de0
push eax
call fcn.10003970
add esp, 0xc
xor al, al
jmp 0x1001d78a
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.100049b0
mov eax, ecx
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0
lea esi, [ebx + 0x34]
add ebx, 4
push eax
push edx
mov edx, esi
mov dword [ebp - 0xe4], esi
mov ecx, ebx
call fcn.10027590
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0x2c]
add esp, 0xc
add eax, 0xc
push eax
call fcn.1000a460
mov edx, dword [ebp - 0xec]
push ecx
add edx, 0x4c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.100e1210
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 0x1001d514
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 0x1001d514
mov ecx, dword [ebp - 0xe0]
cmp ecx, 4
jne 0x1001d519
call fcn.10002de0
cmp dword [esi + 0x14], 0x10
jb 0x1001d4bf
mov esi, dword [esi]
mov dword [ebp - 0xe4], esi
cmp dword [ebx + 0x14], 0x10
jb 0x1001d4c7
mov ebx, dword [ebx]
push dword [ebp - 0xe4]
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 0x101a55a8
mov esi, dword [esi + 0x50]
mov ecx, esi
push eax
call dword [0x1018a4d4]
call esi
add esp, 0x14
mov dword [edi + 0x10], 3
mov dword [edi], 0
mov bl, 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
jmp 0x1001d70b
mov ecx, 1
cmp dword [ebp - 0x80], 0
jbe 0x1001d61a
cmp ecx, 1
je 0x1001d61a
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 - 0xe8]
mov eax, dword [eax + 0x58]
add eax, 0x20
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1002c050
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.10039b70
test al, al
jne 0x1001d5aa
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x1001d62f
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d60e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d7a6
jmp 0x1001d60e
lea edx, [edi + 8]
lea ecx, [ebp - 0x5c]
call fcn.100394f0
test al, al
jne 0x1001d576
push str.Error_Failed_to_get_size_of_old_package_on_the_system.
push 0x101a55a8
call fcn.10002de0
push eax
call fcn.10003970
mov edx, dword [ebp - 0x48]
add esp, 0xc
cmp edx, 0x10
jb 0x1001d709
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d5ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d7a6
push edx
push ecx
call fcn.1014d535
add esp, 8
jmp 0x1001d709
push edx
push ecx
call fcn.1014d535
add esp, 8
jmp 0x1001d62f
mov dword [edi + 0x10], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ebx, dword [ebp - 0xec]
lea edx, [ebp - 0x44]
mov ecx, ebx
call fcn.10027420
test eax, eax
je 0x1001d64a
mov bl, 1
jmp 0x1001d70b
lea eax, [ebp - 0x44]
add ebx, 0xa4
push eax
mov ecx, ebx
call fcn.10009f70
cmp dword [eax + 0x2c], 0x10
lea esi, [eax + 0x18]
mov eax, esi
jb 0x1001d668
mov eax, dword [esi]
push 0xa
push 0
push eax
call fcn.1015d35f
mov ecx, eax
add esp, 0xc
and ecx, edx
cmp ecx, 0xffffffff
je 0x1001d6cc
mov ecx, eax
or ecx, edx
je 0x1001d6cc
test edx, edx
ja 0x1001d6c3
jb 0x1001d68e
test eax, eax
jne 0x1001d6c3
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.10009f70
add eax, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x1001d6a4
mov eax, dword [eax]
push eax
push str.Error_invalid_value_for_the_package_assets_size__s._Should_be_integer.
push 0x101a55a8
push ecx
call fcn.10002de0
add esp, 4
push eax
call fcn.10003970
add esp, 0x10
jmp 0x1001d709
mov dword [edi], eax
mov bl, 1
mov dword [edi + 4], edx
jmp 0x1001d70b
cmp dword [esi + 0x14], 0x10
jb 0x1001d6d4
mov esi, dword [esi]
push esi
push str.Failed_to_get_unsigned_long_long_value_from_assetsSize_:_s
push 0x101a55a8
push ecx
call fcn.10002de0
add esp, 4
push eax
call fcn.100037f0
add esp, 0x10
push str.Error_Failed_to_get_package_size.
push 0x101a55a8
call fcn.10002de0
push eax
call fcn.10003970
add esp, 0xc
xor bl, bl
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1001d73b
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d731
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d7ab
push edx
push ecx
call fcn.1014d535
add esp, 8
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10004a20
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x1001d788
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d77e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d7ab
push edx
push ecx
call fcn.1014d535
add esp, 8
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.1014d1d5
mov esp, ebp
pop ebp
ret
call fcn.10158895
call fcn.10158895
int3