Function at 0x48c050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea edx, [ebp - 0x20]
push edi
xor ecx, ecx
push edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], cx
call fcn.0048bd20
add esp, 4
test al, al
je 0x48c1f4
mov eax, dword [str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppModelRepositoryPackages]
push eax
lea ecx, [ebp - 0x28]
call fcn.00464b60
push 1
push 0x560120
lea ecx, [ebp - 0x28]
call fcn.0044a1a0
cmp dword [ebp - 8], 8
jb 0x48c0bf
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x48c0c2
xor eax, eax
jmp 0x48c0d6
lea edx, [ebp - 0x1c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48c0c7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.0044a1a0
mov edx, dword [0x599458]
mov eax, dword [edx + 0xc]
mov ecx, 0x599458
call eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push ecx
add eax, 0x10
mov ecx, esp
push str.PackageRootFolder
mov dword [ebp - 0x24], eax
call fcn.00464b60
mov esi, dword [ebp - 0x28]
push ecx
add esi, 0xfffffff0
mov edi, esp
push esi
call fcn.0041eae0
add esp, 4
add eax, 0x10
push SysReAllocString
lea ecx, [ebp - 0x3c]
mov dword [edi], eax
call fcn.00448da0
push eax
call fcn.00462950
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x34]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48c15a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c179
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x48c197
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c1db
mov ecx, dword [eax]
push eax
jmp 0x48c1d4
push 0x560120
lea ecx, [ebp - 0x24]
call fcn.004502c0
push str.MicrosoftEdge.exe
lea ecx, [ebp - 0x24]
call fcn.004502c0
mov edi, dword [ebp - 0x24]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48c219
add edi, 0xfffffff0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48c1db
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
or edx, 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c1f4
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
cmp dword [ebp - 8], 8
jb 0x48c206
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0051d230
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
push edi
call fcn.00459860
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c23e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c257
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ecx, [ebp - 0x20]
call fcn.00449950
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret