Function at 0x410010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cfc78
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], cx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x64], ecx
call fcn.0040f6e0
add esp, 4
test al, al
je 0x410221
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppModelRepositoryPackages
lea ecx, [esp + 0x14]
call fcn.00404030
push 1
push 0x4e0c60
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call fcn.004057c0
cmp dword [esp + 0x4c], 8
jb 0x4100b2
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x4100b6
xor eax, eax
jmp 0x4100cf
lea edx, [esp + 0x38]
mov eax, edx
lea esi, [eax + 2]
jmp 0x4100c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4100c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004057c0
mov eax, dword [0x50739c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50739c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0
push ecx
mov byte [esp + 0x6c], 2
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.PackageRootFolder
call fcn.00404030
mov byte [esp + 0x6c], 3
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00404cb0
add esp, 4
add eax, 0x10
mov dword [esi], eax
push SysReAllocString
lea ecx, [esp + 0x38]
mov byte [esp + 0x74], 2
call fcn.0040f060
push eax
mov byte [esp + 0x68], 4
call fcn.0040f4b0
add esp, 8
test eax, eax
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x2c]
sete byte [esp + 0xf]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41017b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41019b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x4101b0
mov byte [esp + 0x60], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x4101e3
push 0x4e0c60
lea ecx, [esp + 0x18]
call fcn.00404f70
push str.MicrosoftEdge.exe
lea ecx, [esp + 0x18]
call fcn.00404f70
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410239
mov byte [esp + 0x60], 1
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 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 0x410221
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x4c], 8
jb 0x410235
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0049c830
add esp, 4
xor al, al
jmp 0x410294
mov ecx, dword [esp + 0x18]
push esi
call fcn.004069c0
lea eax, [esi - 0x10]
mov byte [esp + 0x60], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410264
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 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 0x410289
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
call fcn.004050c0
mov al, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004a0e91
mov esp, ebp
pop ebp
ret