Function at 0x1002ea50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018f90e
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x101f62b4]
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 ebx, edx
mov dword [ebp - 0x2ac], ebx
mov eax, ecx
mov dword [ebp - 0x29c], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x298], edi
call fcn.1000cd70
test al, al
jne 0x1002eac2
push str.Invalid_PIMLibraryRef.
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d580
add esp, 0xc
mov eax, 2
jmp 0x1002f162
call fcn.1004cb70
add ebx, 4
mov ecx, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x1002ead4
mov ecx, dword [ebx]
mov esi, dword [eax]
push ecx
push str.Checking_size_and_status_of_Package:__s
push 0x101aedac
mov esi, dword [esi + 0x40]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
mov esi, dword [ebp - 0x2ac]
add esp, 0x10
cmp dword [esi + 0xa0], 0
jne 0x1002ecc1
push 0xb4
lea eax, [ebp - 0x1d8]
push 0
push eax
call fcn.10160450
add esp, 0xc
lea ecx, [ebp - 0x1d8]
call fcn.1000c2a0
lea eax, [ebp - 0x1d4]
mov dword [ebp - 4], 0
cmp eax, ebx
je 0x1002eb50
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x1002eb41
mov eax, dword [ebx]
push dword [ebx + 0x10]
lea ecx, [ebp - 0x1d4]
push eax
call fcn.10018930
lea ecx, [ebp - 0x120]
call fcn.1000bee0
mov esi, dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 1
push ebx
push ecx
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0xbc]
add ecx, 0x20
call fcn.1001e700
mov edx, dword [esi + 0x58]
mov eax, dword [eax]
mov ecx, dword [edx + 0xbc]
cmp eax, dword [ecx + 0x20]
je 0x1002eba0
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [eax + 0x28]
call fcn.1001ecf0
mov edx, dword [esi + 0x58]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ecx, [edx + 0xa4]
mov byte [ebp - 4], 2
cmp dword [ecx + 0x14], 8
jb 0x1002ebc4
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x28]
call fcn.101012c0
add esp, 4
test al, al
jne 0x1002ebf7
push 0x101c2818
push 0x101aee58
call fcn.1004cb70
push eax
call fcn.1004dbb0
add esp, 0xc
mov esi, 1
jmp 0x1002ec9e
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1002d8c0
sub esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.10018740
mov ecx, edi
call fcn.10042b80
mov ecx, esp
push ebx
call fcn.10018740
mov ecx, dword [ebp + 8]
call fcn.1002e8e0
add esp, 0x18
mov byte [ebp - 0x128], 1
lea eax, [ebp - 0x1d4]
lea ecx, [ebp - 0x380]
push eax
call fcn.10018740
lea eax, [ebp - 0x1d8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x368]
call fcn.1002fab0
lea eax, [ebp - 0x380]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x2a8]
push eax
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0xbc]
add ecx, 0x28
call fcn.10030ae0
lea ecx, [ebp - 0x380]
call fcn.1002f190
lea ecx, [ebp - 0x70]
xor esi, esi
call fcn.1000ad20
lea ecx, [ebp - 0x28]
call fcn.1000ad20
lea ecx, [ebp - 0x120]
call fcn.1000bf50
lea ecx, [ebp - 0x1d8]
call fcn.1000c3e0
jmp 0x1002f160
lea eax, [esi + 0x90]
push eax
lea ecx, [ebp - 0x40]
call fcn.10002700
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 6
call fcn.100fd6c0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002ed27
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.File__s_is_missing._Cant_estimate_the_size_for_this_package
push 0x101aee58
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004dbb0
add esp, 0x10
mov esi, 0x29
jmp 0x1002f010
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0xa0]
call fcn.10018740
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.10029400
lea eax, [ebp - 0x58]
push eax
lea ecx, [esi + 0xa8]
call fcn.1002d440
lea edx, [ebp - 0x2a8]
lea ecx, [eax + 0x18]
call fcn.10005f80
test al, al
jne 0x1002ed99
push str.Error_Failed_to_get_package_size.
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d700
add esp, 0xc
mov esi, 0x31
jmp 0x1002effd
mov eax, dword [ebp - 0x29c]
add esi, 4
mov dword [ebp - 0x2a0], esi
mov eax, dword [eax + 0x58]
cmp dword [eax + 0xbc], 0
jne 0x1002ee0a
call fcn.1004cb70
cmp dword [esi + 0x14], 0x10
jb 0x1002edc7
mov esi, dword [esi]
mov dword [ebp - 0x2a0], esi
mov ebx, dword [ebp - 0x2a4]
mov edi, dword [ebp - 0x2a8]
mov esi, dword [eax]
push ebx
push edi
push dword [ebp - 0x2a0]
mov esi, dword [esi + 0x50]
mov ecx, esi
push str.Package__s_is_not_installed_on_the_machine._Size_required:__llu
push 0x101aedac
push eax
call dword [0x1019a4f8]
call esi
mov eax, dword [ebp - 0x298]
add esp, 0x18
xor esi, esi
mov dword [eax], edi
mov dword [eax + 4], ebx
jmp 0x1002effd
push 0xb4
lea eax, [ebp - 0x290]
push 0
push eax
call fcn.10160450
add esp, 0xc
lea ecx, [ebp - 0x290]
call fcn.1000c2a0
push esi
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 9
call fcn.10018650
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x2a0], 1
call fcn.1000bee0
mov edx, dword [ebp - 0x2ac]
mov eax, ecx
push eax
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 0xa
push eax
mov eax, dword [ebp - 0x29c]
add edx, 0x34
mov ecx, esi
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0xbc]
add eax, 0x20
push eax
call fcn.10029570
mov eax, dword [ebp - 0x29c]
lea ecx, [ebp - 0x88]
add esp, 0xc
add eax, 0xc
push eax
call fcn.10018740
mov edx, dword [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
lea edx, [edx + 0x4c]
call fcn.100fda00
lea edx, [ebp - 0x291]
mov byte [ebp - 0x291], 0
lea ecx, [ebp - 0x88]
call fcn.100fdb00
add esp, 4
test al, al
je 0x1002ef6d
cmp byte [ebp - 0x291], 0
je 0x1002ef6d
mov eax, dword [ebp - 0x2a0]
cmp eax, 2
jne 0x1002ef4e
call fcn.1004cb70
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x1002eefc
mov ecx, dword [ebx]
mov ebx, dword [ebp - 0x2a4]
mov edi, dword [ebp - 0x2a8]
mov esi, dword [eax]
push ebx
push edi
push ecx
mov esi, dword [esi + 0x50]
mov ecx, esi
push str.Same_version_of_package__s_is_installed_on_the_machine._This_will_be_repaired._Size_required:__llu
push 0x101aedac
push eax
call dword [0x1019a4f8]
call esi
mov eax, dword [ebp - 0x298]
mov ecx, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x2ac]
add eax, 4
push eax
call fcn.10018740
mov ecx, dword [ebp + 8]
call fcn.1002e8e0
add esp, 0x18
jmp 0x1002ef7e
cmp eax, 3
jne 0x1002f04d
sub esp, 0x18
mov ecx, esp
push esi
call fcn.10018740
mov ecx, dword [ebp + 8]
call fcn.1002e8e0
add esp, 0x18
mov eax, dword [ebp - 0x2a8]
mov dword [edi], eax
mov eax, dword [ebp - 0x2a4]
mov dword [edi + 4], eax
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x380]
call fcn.10018740
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x368]
call fcn.1002fab0
lea eax, [ebp - 0x380]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x2a8]
push eax
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax + 0xbc]
add ecx, 0x28
call fcn.10030ae0
lea ecx, [ebp - 0x380]
call fcn.1002f190
xor esi, esi
lea ecx, [ebp - 0x88]
call fcn.1000ad20
lea ecx, [ebp - 0x120]
call fcn.1000bf50
lea ecx, [ebp - 0x290]
call fcn.1000c3e0
lea ecx, [ebp - 0x58]
call fcn.1000ad20
lea ecx, [ebp - 0xa0]
call fcn.1000ad20
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x1002f160
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f156
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f17e
jmp 0x1002f156
cmp eax, 1
je 0x1002ef6d
cmp eax, 4
jne 0x1002f127
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x29c]
mov byte [ebp - 4], 0xc
mov ecx, dword [eax + 0x58]
add ecx, 0xa4
cmp dword [ecx + 0x14], 8
jb 0x1002f08c
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x28]
call fcn.101012c0
add esp, 4
test al, al
jne 0x1002f0c7
push 0x101c2818
push 0x101aee58
call fcn.1004cb70
push eax
call fcn.1004dbb0
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.1000ad20
mov esi, 1
jmp 0x1002efdc
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1002d8c0
sub esp, 0xc
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.10018740
mov ecx, edi
call fcn.10042b80
mov ecx, esp
push esi
call fcn.10018740
mov ecx, dword [ebp + 8]
call fcn.1002e8e0
add esp, 0x18
mov byte [ebp - 0x1e0], 1
lea ecx, [ebp - 0x70]
call fcn.1000ad20
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.1000ad20
jmp 0x1002ef7e
cmp dword [ebx + 0x14], 0x10
jb 0x1002f12f
mov ebx, dword [ebx]
push ebx
push str.Invalid_Package_State_for_Package_Name_s
push 0x101aedac
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004d580
add esp, 0x10
mov esi, 1
jmp 0x1002efdc
push edx
push ecx
call fcn.1015cbd5
add esp, 8
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.1015c875
mov esp, ebp
pop ebp
ret
call fcn.101686f5
int3