Function at 0x1002d180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018017e
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x360], esi
mov eax, ecx
mov dword [ebp - 0x34c], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x35c], ebx
call fcn.1000f0a0
test al, al
jne 0x1002d1f2
push str.Invalid_PIMLibraryRef.
push 0x101a55a8
call fcn.10002de0
push eax
call fcn.100037f0
add esp, 0xc
mov eax, 2
jmp 0x1002db1c
call fcn.10002de0
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
mov ecx, edi
jb 0x1002d204
mov ecx, dword [edi]
mov esi, dword [eax]
push ecx
push str.Checking_size_and_status_of_Package:__s
push 0x101a55a8
mov esi, dword [esi + 0x40]
mov ecx, esi
push eax
call dword [0x1018a4d4]
call esi
mov esi, dword [ebp - 0x360]
add esp, 0x10
cmp dword [esi + 0x9c], 0
jne 0x1002d4d8
lea ecx, [ebp - 0x150]
call fcn.1000e790
lea eax, [ebp - 0x14c]
mov dword [ebp - 4], 0
cmp eax, edi
je 0x1002d26a
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1002d25b
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x14c]
push eax
call fcn.100040c0
lea ecx, [ebp - 0x280]
call fcn.100049b0
mov eax, dword [ebp - 0x34c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
push edi
push ecx
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x360], eax
mov eax, dword [eax + 0xbc]
add eax, 0x20
mov ecx, eax
mov dword [ebp - 0x354], eax
call fcn.1000c920
mov esi, dword [ebp - 0x14]
cmp byte [esi + 0xd], 0
jne 0x1002d2d8
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
jb 0x1002d2b8
mov edx, dword [esi + 0x10]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x1002d2c2
mov ecx, dword [edi]
push dword [esi + 0x20]
push edx
mov edx, dword [edi + 0x10]
call fcn.1000b8e0
shr eax, 0x1f
add esp, 8
test al, al
je 0x1002d2e0
mov esi, dword [ebp - 0x354]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x360]
mov eax, dword [ecx + 0xbc]
cmp esi, dword [eax + 0x20]
je 0x1002d30b
lea eax, [ebp - 0x280]
push eax
lea ecx, [esi + 0x28]
call fcn.10004b50
mov esi, dword [ebp - 0x34c]
mov ecx, dword [esi + 0x58]
jmp 0x1002d311
mov esi, dword [ebp - 0x34c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
add ecx, 0xa4
mov byte [ebp - 4], 2
cmp dword [ecx + 0x14], 8
jb 0x1002d335
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x28]
call fcn.100e5460
add esp, 4
test al, al
jne 0x1002d368
push 0x101b6110
push 0x101a53f8
call fcn.10002de0
push eax
call fcn.10003e20
add esp, 0xc
mov esi, 1
jmp 0x1002d449
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1002c050
sub esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.1000a460
mov ecx, ebx
call fcn.1003ed60
mov ecx, esp
push edi
call fcn.1000a460
mov ecx, dword [ebp + 8]
call fcn.1002d070
add esp, 0x18
mov byte [ebp - 0xa4], 1
lea eax, [ebp - 0x14c]
lea ecx, [ebp - 0x348]
push eax
call fcn.1000a460
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x330]
call fcn.1002e500
lea eax, [ebp - 0x348]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x358]
push eax
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0xbc]
add ecx, 0x28
call fcn.1002f7e0
lea ecx, [ebp - 0x348]
call fcn.1002db50
mov edx, dword [ebp - 0x2c]
xor esi, esi
cmp edx, 0x10
jb 0x1002d43b
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002d431
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002db38
push edx
push ecx
call fcn.1014d535
add esp, 8
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1002d47d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002d473
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002db38
push edx
push ecx
call fcn.1014d535
add esp, 8
lea ecx, [ebp - 0x280]
call fcn.10004a20
mov eax, dword [ebp - 0xac]
push dword [eax + 4]
lea eax, [ebp - 0xac]
push eax
mov ecx, eax
call fcn.10019a20
push 0xdc
push dword [ebp - 0xac]
call fcn.1014d535
add esp, 8
lea ecx, [ebp - 0xc4]
call fcn.10001bc0
lea ecx, [ebp - 0xd0]
call fcn.10019350
lea ecx, [ebp - 0x150]
call fcn.10004a20
jmp 0x1002db1a
mov ebx, esi
lea ecx, [ebp - 0x88]
lea eax, [ebx + 0x8c]
push eax
call fcn.10004390
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 6
call fcn.100e0ed0
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002d552
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push str.File__s_is_missing._Cant_estimate_the_size_for_this_package
push 0x101a53f8
push ecx
call fcn.10002de0
add esp, 4
push eax
call fcn.10003e20
add esp, 0x10
mov esi, 0x29
jmp 0x1002db0f
lea eax, [ebx + 0x1c]
push eax
lea ecx, [ebp - 0xa0]
call fcn.1000a460
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 8
mov ecx, ebx
call fcn.10027420
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebx + 0xa4]
call fcn.10009f70
cmp dword [eax + 0x2c], 0x10
lea esi, [eax + 0x18]
mov eax, esi
jb 0x1002d59d
mov eax, dword [esi]
push 0xa
push 0
push eax
call fcn.1015d35f
mov ecx, eax
mov dword [ebp - 0x364], eax
and ecx, edx
mov dword [ebp - 0x350], edx
add esp, 0xc
cmp ecx, 0xffffffff
je 0x1002da51
mov ecx, eax
or ecx, edx
je 0x1002da51
mov esi, dword [ebp - 0x34c]
add ebx, 4
mov eax, dword [esi + 0x58]
cmp dword [eax + 0xbc], 0
jne 0x1002d632
call fcn.10002de0
cmp dword [ebx + 0x14], 0x10
jb 0x1002d5ef
mov ebx, dword [ebx]
push dword [ebp - 0x350]
mov edi, dword [ebp - 0x364]
mov esi, dword [eax]
push edi
push ebx
push str.Package__s_is_not_installed_on_the_machine._Size_required:__llu
mov esi, dword [esi + 0x50]
mov ecx, esi
push 0x101a55a8
push eax
call dword [0x1018a4d4]
call esi
mov ecx, dword [ebp - 0x35c]
add esp, 0x18
mov eax, dword [ebp - 0x350]
xor esi, esi
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x1002da93
lea ecx, [ebp - 0x200]
call fcn.1000e790
lea eax, [ebp - 0x1fc]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x1002d664
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x1002d655
mov eax, dword [ebx]
push dword [ebx + 0x10]
lea ecx, [ebp - 0x1fc]
push eax
call fcn.100040c0
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x354], 1
call fcn.100049b0
mov eax, ecx
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x354]
mov ecx, ebx
push eax
mov eax, dword [esi + 0x58]
mov esi, dword [ebp - 0x360]
mov eax, dword [eax + 0xbc]
add eax, 0x20
lea edx, [esi + 0x34]
push eax
call fcn.10027590
mov eax, dword [ebp - 0x34c]
lea ecx, [ebp - 0x58]
add esp, 0xc
add eax, 0xc
push eax
call fcn.1000a460
push ecx
lea edx, [esi + 0x4c]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x58]
call fcn.100e1210
add esp, 4
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1002d78c
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
setne al
test al, al
je 0x1002d78c
mov eax, dword [ebp - 0x354]
cmp eax, 2
jne 0x1002d76d
call fcn.10002de0
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x1002d71f
mov ecx, dword [edi]
push dword [ebp - 0x350]
mov ebx, dword [ebp - 0x364]
mov esi, dword [eax]
push ebx
push ecx
push str.Same_version_of_package__s_is_installed_on_the_machine._This_will_be_repaired._Size_required:__llu
mov esi, dword [esi + 0x50]
mov ecx, esi
push 0x101a55a8
push eax
call dword [0x1018a4d4]
call esi
mov ecx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x350]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov ecx, esp
push edi
call fcn.1000a460
mov ecx, dword [ebp + 8]
call fcn.1002d070
add esp, 0x18
jmp 0x1002d7a3
cmp eax, 3
jne 0x1002d8a2
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.1000a460
mov ecx, dword [ebp + 8]
call fcn.1002d070
add esp, 0x18
mov ecx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x350]
mov edi, dword [ebp - 0x364]
mov dword [ecx + 4], eax
mov dword [ecx], edi
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x348]
call fcn.1000a460
lea eax, [ebp - 0x200]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x330]
call fcn.1002e500
lea eax, [ebp - 0x348]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x358]
push eax
mov eax, dword [ebp - 0x34c]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax + 0xbc]
add ecx, 0x28
call fcn.1002f7e0
lea ecx, [ebp - 0x348]
call fcn.1002db50
xor esi, esi
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x1002d835
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002d82b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002db42
push edx
push ecx
call fcn.1014d535
add esp, 8
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.10004a20
mov eax, dword [ebp - 0x15c]
push dword [eax + 4]
lea eax, [ebp - 0x15c]
push eax
mov ecx, eax
call fcn.10019a20
push 0xdc
push dword [ebp - 0x15c]
call fcn.1014d535
add esp, 8
lea ecx, [ebp - 0x174]
call fcn.10001bc0
lea ecx, [ebp - 0x180]
call fcn.10019350
lea ecx, [ebp - 0x200]
call fcn.10004a20
jmp 0x1002da93
cmp eax, 1
je 0x1002d78c
cmp eax, 4
jne 0x1002da22
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x34c]
mov byte [ebp - 4], 0xc
mov ecx, dword [eax + 0x58]
add ecx, 0xa4
cmp dword [ecx + 0x14], 8
jb 0x1002d8e1
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x28]
call fcn.100e5460
add esp, 4
test al, al
jne 0x1002d94c
push 0x101b6110
push 0x101a53f8
call fcn.10002de0
push eax
call fcn.10003e20
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp edx, 0x10
jb 0x1002da47
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002d938
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002db3d
push edx
push ecx
call fcn.1014d535
add esp, 8
mov esi, 1
jmp 0x1002d801
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1002c050
sub esp, 0xc
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.1000a460
mov ecx, dword [ebp - 0x35c]
call fcn.1003ed60
mov ecx, esp
push edi
call fcn.1000a460
mov ecx, dword [ebp + 8]
call fcn.1002d070
mov byte [ebp - 4], 0xc
add esp, 0x18
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 0x154], 1
cmp edx, 0x10
jb 0x1002d9cf
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002d9c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002db3d
push edx
push ecx
call fcn.1014d535
add esp, 8
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x1002d7a3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002da13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002db3d
push edx
push ecx
call fcn.1014d535
add esp, 8
jmp 0x1002d7a3
cmp dword [edi + 0x14], 0x10
jb 0x1002da2a
mov edi, dword [edi]
push edi
push str.Invalid_Package_State_for_Package_Name_s
push 0x101a55a8
push ecx
call fcn.10002de0
add esp, 4
push eax
call fcn.100037f0
add esp, 0x10
mov esi, 1
jmp 0x1002d801
cmp dword [esi + 0x14], 0x10
jb 0x1002da59
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
mov esi, 0x31
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x1002dac7
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002dabd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002db42
push edx
push ecx
call fcn.1014d535
add esp, 8
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 0x10
jb 0x1002db0f
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002db05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002db42
push edx
push ecx
call fcn.1014d535
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.10001bc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
call fcn.10158895
call fcn.10158895
call fcn.10158895
int3