Function at 0x41e5e0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47faea
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x4a62c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], 0
call fcn.0040aed0
mov ecx, eax
test ecx, ecx
je 0x41eae0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x250], eax
push 0x4871b4
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 0
call fcn.00408bc0
test al, al
jne 0x41e66b
push 1
push 0x4871b4
lea ecx, [ebp - 0x250]
call fcn.0040b820
mov eax, dword [edi + 0x124]
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x41e778
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41e761
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.0040d860
push 3
push 0x485cd4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040d860
mov byte [ebp - 4], 3
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0xfb
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00404e20
mov esi, eax
push str.microsoft_win11_upgrade_assistant_url_is_empty
push esi
mov byte [ebp - 4], 4
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00406330
lea ecx, [ebp - 0x230]
call fcn.004058f0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.004058f0
push 1
push 0x487368
lea ecx, [ebp - 0x250]
call fcn.0040b820
jmp 0x41ea74
mov ecx, dword [edi + 0x110]
test ecx, ecx
je 0x41e79d
mov eax, dword [ecx]
push 0
call dword [eax]
mov ecx, dword [edi + 0x110]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [edi + 0x110], 0
mov eax, dword [0x4a8184]
test eax, eax
jne 0x41e81d
push 0x4a5058
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4a8184], 0
jne 0x41e80d
push 0x1c
call fcn.0042f5b0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24c], ecx
test ecx, ecx
je 0x41e7ff
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
jmp 0x41e801
xor ecx, ecx
xchg dword [ebp - 0x24c], eax
mov dword [0x4a8184], ecx
push 0x4a5058
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4a8184]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41e84e
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov esi, eax
test esi, esi
je 0x41e850
mov edx, dword [esi]
mov ecx, esi
push 0
push str.ungzip
call dword [edx + 0x30]
mov eax, dword [esi]
mov ecx, esi
push 0
push str.gzip
call dword [eax + 0x30]
jmp 0x41e850
xor esi, esi
mov dword [edi + 0x110], esi
test esi, esi
je 0x41ea74
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00455240
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Windows11InstallationAssistant.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e8b6
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x110]
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [edi + 0x110]
lea eax, [edi + 0x74]
mov edx, edi
neg edx
mov esi, dword [ecx]
sbb edx, edx
and edx, eax
push edx
call dword [esi]
mov ecx, dword [edi + 0x110]
push dword [edi + 0x124]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x41e9df
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41ea74
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040d860
push 3
push 0x485cd4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040d860
mov byte [ebp - 4], 6
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0x113
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00404e20
mov esi, eax
push str.download_win11_upgrade_assistant_failed
push esi
mov byte [ebp - 4], 7
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00406330
lea ecx, [ebp - 0x248]
call fcn.004058f0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.004058f0
jmp 0x41ea74
mov ecx, dword [0x4a81c4]
mov dword [ebp - 0x254], 1
test ecx, ecx
jne 0x41ea4d
push 0x4a5094
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4a81c4], 0
jne 0x41ea3c
push 4
call fcn.0042f5b0
add esp, 4
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x41ea2a
mov ecx, eax
call fcn.004483a0
mov ecx, eax
jmp 0x41ea2c
xor ecx, ecx
mov byte [ebp - 4], 1
xchg dword [ebp - 0x24c], eax
mov dword [0x4a81c4], ecx
push 0x4a5094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4a81c4]
push 0
push 0
push 1
push 0
push str.win11_down_start
call fcn.00448450
push 0
push 0x2bf20
push 0x3eb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x258]
mov esi, dword [ebp - 0x250]
mov ecx, dword [eax + 0xac]
test ecx, ecx
je 0x41ea9f
cmp dword [ebp - 0x254], 0
jne 0x41ea9f
mov eax, dword [ecx]
push esi
push 0x4871b8
push ecx
call dword [eax + 0x18]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41eabe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447113
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00406bd0
int3