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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ce3a
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x4a62e4]
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.0040bd70
mov ecx, eax
test ecx, ecx
je 0x4205a3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x250], eax
mov eax, 0x484f54
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
test eax, 0xffff0000
jne 0x420122
movzx eax, ax
push eax
call fcn.0041bd40
jmp 0x42012e
push 1
push 0x484f54
call fcn.0040c6c0
mov eax, dword [edi + 0x120]
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x42023b
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x420224
push 0x3a
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 3
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0xfb
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00405aa0
mov esi, eax
push str.microsoft_win11_upgrade_assistant_url_is_empty
push esi
mov byte [ebp - 4], 4
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00406fb0
lea ecx, [ebp - 0x230]
call fcn.00406570
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00406570
push 1
push 0x485108
lea ecx, [ebp - 0x250]
call fcn.0040c6c0
jmp 0x420537
mov ecx, dword [edi + 0x10c]
test ecx, ecx
je 0x420260
mov eax, dword [ecx]
push 0
call dword [eax]
mov ecx, dword [edi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [edi + 0x10c], 0
mov eax, dword [0x4a83f4]
test eax, eax
jne 0x4202e0
push 0x4a5058
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4a83f4], 0
jne 0x4202d0
push 0x1c
call fcn.00430db0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24c], ecx
test ecx, ecx
je 0x4202c2
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 0x4202c4
xor ecx, ecx
xchg dword [ebp - 0x24c], eax
mov dword [0x4a83f4], ecx
push 0x4a5058
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4a83f4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x420311
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov esi, eax
test esi, esi
je 0x420313
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 0x420313
xor esi, esi
mov dword [edi + 0x10c], esi
test esi, esi
je 0x420537
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00450d40
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 0x420379
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x10c]
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [edi + 0x10c]
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 + 0x10c]
push dword [edi + 0x120]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x4204a2
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x420537
push 0x3a
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 6
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0x113
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405aa0
mov esi, eax
push str.download_win11_upgrade_assistant_failed
push esi
mov byte [ebp - 4], 7
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00406fb0
lea ecx, [ebp - 0x248]
call fcn.00406570
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00406570
jmp 0x420537
mov ecx, dword [0x4a8434]
mov dword [ebp - 0x254], 1
test ecx, ecx
jne 0x420510
push 0x4a5094
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4a8434], 0
jne 0x4204ff
push 4
call fcn.00430db0
add esp, 4
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4204ed
mov ecx, eax
call fcn.004443e0
mov ecx, eax
jmp 0x4204ef
xor ecx, ecx
mov byte [ebp - 4], 1
xchg dword [ebp - 0x24c], eax
mov dword [0x4a8434], ecx
push 0x4a5094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4a8434]
push 0
push 0
push 1
push 0
push str.win11_down_start
call fcn.00444490
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 + 0xa8]
test ecx, ecx
je 0x420562
cmp dword [ebp - 0x254], 0
jne 0x420562
mov eax, dword [ecx]
push esi
push 0x484f58
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 0x420581
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.00443153
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00407850
int3