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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad6ca
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x4e23d4]
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.0040b110
mov ecx, eax
test ecx, ecx
je 0x422dd4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24c], eax
push 0x4b74dc
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0
call fcn.00408e00
test al, al
jne 0x42295b
push 1
push 0x4b74dc
lea ecx, [ebp - 0x24c]
call fcn.0040ba60
mov eax, dword [edi + 0x124]
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x422a68
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x422a51
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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 3
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0x100
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00405060
mov esi, eax
push str.microsoft_win11_upgrade_assistant_url_is_empty
push esi
mov byte [ebp - 4], 4
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00406570
lea ecx, [ebp - 0x230]
call fcn.00405b30
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00405b30
push 1
push 0x4b7690
lea ecx, [ebp - 0x24c]
call fcn.0040ba60
jmp 0x422d68
mov ecx, dword [edi + 0x110]
test ecx, ecx
je 0x422a8d
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 [0x4e58a4]
test eax, eax
jne 0x422b0f
push 0x4e1058
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4e58a4], 0
jne 0x422aff
push 0x1c
call fcn.0043d0d0
add esp, 4
mov dword [ebp - 0x250], eax
test eax, eax
je 0x422aed
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x422aef
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x250]
lock or dword [ecx], edx
mov dword [0x4e58a4], eax
push 0x4e1058
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4e58a4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x422b40
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov esi, eax
test esi, esi
je 0x422b42
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 0x422b42
xor esi, esi
mov dword [edi + 0x110], esi
test esi, esi
je 0x422d68
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004813a0
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 0x422ba8
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 0x422cd1
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x422d68
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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 6
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0x118
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405060
mov esi, eax
push str.download_win11_upgrade_assistant_failed
push esi
mov byte [ebp - 4], 7
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00406570
lea ecx, [ebp - 0x248]
call fcn.00405b30
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00405b30
jmp 0x422d68
mov ecx, dword [0x4e58f8]
mov dword [ebp - 0x254], 1
test ecx, ecx
jne 0x422d41
push 0x4e10b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4e58f8], 0
jne 0x422d30
push 4
call fcn.0043d0d0
add esp, 4
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x422d1a
mov ecx, eax
call fcn.0045d5a0
jmp 0x422d1c
xor eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x4e58f8], eax
push 0x4e10b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4e58f8]
push 0
push 0
push 1
push 0
push str.win11_down_start
call fcn.0045d650
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 - 0x24c]
mov ecx, dword [eax + 0xac]
test ecx, ecx
je 0x422d93
cmp dword [ebp - 0x254], 0
jne 0x422d93
mov eax, dword [ecx]
push esi
push 0x4b74e0
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 0x422db2
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.0045c263
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00406e10
int3