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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b84ca
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x4f0464]
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.0040f380
mov ecx, eax
test ecx, ecx
je 0x427034
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24c], eax
push 0x4c34dc
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0
call fcn.0040d070
test al, al
jne 0x426bbb
push 1
push 0x4c34dc
lea ecx, [ebp - 0x24c]
call fcn.0040fcd0
mov eax, dword [edi + 0x124]
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x426cc8
call fcn.00445180
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x426cb1
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.00411d10
push 3
push 0x4c1b84
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.00411d10
mov byte [ebp - 4], 3
call fcn.00445180
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0x100
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004092d0
mov esi, eax
push str.microsoft_win11_upgrade_assistant_url_is_empty
push esi
mov byte [ebp - 4], 4
call fcn.00407110
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.0040a7e0
lea ecx, [ebp - 0x230]
call fcn.00409da0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00409da0
push 1
push 0x4c3690
lea ecx, [ebp - 0x24c]
call fcn.0040fcd0
jmp 0x426fc8
mov ecx, dword [edi + 0x110]
test ecx, ecx
je 0x426ced
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 [0x4f3b0c]
test eax, eax
jne 0x426d6f
push 0x4ef058
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4f3b0c], 0
jne 0x426d5f
push 0x1c
call fcn.00446280
add esp, 4
mov dword [ebp - 0x250], eax
test eax, eax
je 0x426d4d
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 0x426d4f
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x250]
lock or dword [ecx], edx
mov dword [0x4f3b0c], eax
push 0x4ef058
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4f3b0c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x426da0
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov esi, eax
test esi, esi
je 0x426da2
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 0x426da2
xor esi, esi
mov dword [edi + 0x110], esi
test esi, esi
je 0x426fc8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048c160
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 0x426e08
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 0x426f31
call fcn.00445180
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x426fc8
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.00411d10
push 3
push 0x4c1b84
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.00411d10
mov byte [ebp - 4], 6
call fcn.00445180
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0x118
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004092d0
mov esi, eax
push str.download_win11_upgrade_assistant_failed
push esi
mov byte [ebp - 4], 7
call fcn.00407110
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.0040a7e0
lea ecx, [ebp - 0x248]
call fcn.00409da0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00409da0
jmp 0x426fc8
mov ecx, dword [0x4f3b60]
mov dword [ebp - 0x254], 1
test ecx, ecx
jne 0x426fa1
push 0x4ef0b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4f3b60], 0
jne 0x426f90
push 4
call fcn.00446280
add esp, 4
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x426f7a
mov ecx, eax
call fcn.004683f0
jmp 0x426f7c
xor eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x4f3b60], eax
push 0x4ef0b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4f3b60]
push 0
push 0
push 1
push 0
push str.win11_down_start
call fcn.004684a0
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 0x426ff3
cmp dword [ebp - 0x254], 0
jne 0x426ff3
mov eax, dword [ecx]
push esi
push 0x4c34e0
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 0x427012
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.004670b3
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040b080
int3