Function at 0x40c8e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4c5be8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
mov eax, dword [0x4f4de0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x60], eax
call fcn.0040c000
add esp, 4
test al, al
je 0x40cae5
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppModelRepositoryPackages
lea ecx, [esp + 0x14]
call fcn.00404050
push 1
push 0x4d689c
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 1
call fcn.004062f0
cmp dword [esp + 0x48], 8
jb 0x40c97a
mov edx, dword [esp + 0x34]
test edx, edx
jne 0x40c97e
xor eax, eax
jmp 0x40c992
lea edx, [esp + 0x34]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c983
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004062f0
mov edx, dword [0x4fc0d8]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc0d8
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
push 0
push ecx
mov byte [esp + 0x68], 2
mov ecx, esp
mov dword [esp + 0x24], esp
push str.PackageRootFolder
call fcn.00404050
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00404760
add esp, 4
add eax, 0x10
mov dword [esi], eax
push SysReAllocStringLen
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 2
call fcn.0040b9b0
push eax
mov byte [esp + 0x64], 4
call fcn.0040be00
add esp, 8
test eax, eax
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x28]
sete byte [esp + 0xf]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ca3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x40ca74
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40caa7
push 0x4d689c
lea ecx, [esp + 0x18]
call fcn.004050b0
push str.MicrosoftEdge.exe
lea ecx, [esp + 0x18]
call fcn.004050b0
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cafd
mov byte [esp + 0x5c], 1
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cac0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cae5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x48], 8
jb 0x40caf9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00493cb0
add esp, 4
xor al, al
jmp 0x40cb56
push esi
mov ecx, ebp
call fcn.00405480
lea eax, [esi - 0x10]
mov byte [esp + 0x5c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cb26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
call fcn.00405450
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00497941
add esp, 0x54
ret