Function at 0x421920
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7b09
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x4f0464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x27c], ebx
call fcn.0048c160
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push str.ThemesUIwin11_assistant.dat
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push 0x4c3df4
push 0x83
push dword [0x4f4258]
call fcn.00421800
mov ecx, eax
call fcn.00416790
test eax, eax
jne 0x421b02
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 0x421abb
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 dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00411d10
mov byte [ebp - 4], 1
call fcn.00445180
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x2bd
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004092d0
mov esi, eax
push str.ReleaseWebUI_Failed
push esi
mov byte [ebp - 4], 2
call fcn.00407110
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.0040a7e0
lea ecx, [ebp - 0x230]
call fcn.00409da0
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00409da0
call fcn.0040f380
mov ecx, eax
test ecx, ecx
je 0x421d8b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x4c1740
mov ecx, ebx
mov dword [ebp - 4], 3
call fcn.0040d070
test al, al
jne 0x421d6b
push 0
push 0x4c1740
mov ecx, ebx
call fcn.0040fcd0
jmp 0x421d6b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421c0d
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 0x421bfc
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 dword [ebp - 4], 4
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.00411d10
mov byte [ebp - 4], 5
call fcn.00445180
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x2c5
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004092d0
mov esi, eax
push str.win11_assistant.dat_no_exists
push esi
mov byte [ebp - 4], 6
call fcn.00407110
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.0040a7e0
lea ecx, [ebp - 0x248]
call fcn.00409da0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.00409da0
push 0x4c1740
mov ecx, ebx
call fcn.00415f80
jmp 0x421d6b
call fcn.0040f380
mov ecx, eax
test ecx, ecx
je 0x421d95
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 7
push eax
lea eax, [ebp - 0x27c]
push str.zip:__0CA42E8A_E041_492E_B7C2_703494DED02F_s
push eax
call fcn.0040ebb0
add esp, 0xc
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 0x421d38
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], al
call fcn.00411d10
push 3
push 0x4c1b84
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 8
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.00411d10
mov byte [ebp - 4], 9
call fcn.00445180
mov edi, eax
lea ecx, [ebp - 0x3ac]
push 0x2cc
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.004092d0
mov esi, eax
push str.WebResourcesPath:
push esi
mov byte [ebp - 4], 0xa
call fcn.00407110
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00407110
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3ac]
call fcn.0040a7e0
lea ecx, [ebp - 0x260]
call fcn.00409da0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 7
call fcn.00409da0
mov esi, dword [ebp - 0x27c]
add esi, 0xfffffff0
push esi
call fcn.00419830
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x421d6b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004670b3
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b080
push 0x80004005
call fcn.0040b080
int3