Function at 0x41b8e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f684
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x4a62c4]
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 edi, ecx
mov dword [ebp - 0x27c], edi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 2
jne 0x41bb31
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 0x41ba0e
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 dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040d860
mov byte [ebp - 4], 1
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x32a
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00404e20
mov esi, eax
push str.win11_download_Success
push esi
mov byte [ebp - 4], 2
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406330
lea ecx, [ebp - 0x230]
call fcn.004058f0
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.004058f0
mov edi, dword [ebp - 0x27c]
mov edx, dword [ebx + 0x14]
lea ebx, [edi + 0x118]
test edx, edx
jne 0x41ba1f
xor ecx, ecx
jmp 0x41ba33
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ba24
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0040b820
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41bc3a
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 0x41bb31
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 dword [ebp - 4], 3
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040d860
mov byte [ebp - 4], 4
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x32e
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00404e20
mov esi, eax
mov byte [ebp - 4], 5
push str.win11_not_exist
push esi
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406330
lea ecx, [ebp - 0x248]
call fcn.004058f0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.004058f0
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 0x41c2ca
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.0040d860
push 3
push 0x485cd4
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0x19
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.0040d860
mov byte [ebp - 4], 0x1a
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x3b4]
push 0x35a
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00404e20
mov esi, eax
push str.win11assistant_download_Invalid
push esi
mov byte [ebp - 4], 0x1b
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x3b4]
call fcn.00406330
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x19
cmp edx, 0x10
jb 0x41c253
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c249
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c332
jmp 0x41c249
push dword [ebx]
call fcn.00430020
add esp, 4
test eax, eax
jne 0x41bcfd
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 0x41bb31
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 dword [ebp - 4], 6
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040d860
mov byte [ebp - 4], 7
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x333
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00404e20
mov esi, eax
mov byte [ebp - 4], 8
push str.ldswin11_sign_invalid
jmp 0x41baf8
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 0x41bde8
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 dword [ebp - 4], 9
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040d860
mov byte [ebp - 4], 0xa
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x336
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00404e20
mov esi, eax
push str.ldswin11_download_success
push esi
mov byte [ebp - 4], 0xb
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406330
lea ecx, [ebp - 0x248]
call fcn.004058f0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.004058f0
mov edi, dword [ebp - 0x27c]
push 0
push 0
push 1
push 0
push str.update_down_succ
call fcn.004192f0
mov ecx, eax
call fcn.00448450
call fcn.0040aed0
mov ecx, eax
test ecx, ecx
je 0x41c337
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x284]
mov dword [ebp - 4], 0xc
push eax
push ebx
call fcn.00413580
mov esi, dword [ebp - 0x284]
lea ecx, [ebp - 0x230]
add esp, 8
push esi
call fcn.004166d0
push dword [edi + 0x11c]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xd
call fcn.004166d0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00419380
mov ecx, eax
call fcn.00411ea0
lea ecx, [ebp - 0x248]
mov edi, eax
call fcn.00405940
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xc
call fcn.00405940
test edi, edi
je 0x41bfa1
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 0x41bf79
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], 0xf
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040d860
mov byte [ebp - 4], 0x10
call fcn.0042e4b0
mov ebx, eax
lea ecx, [ebp - 0x31c]
push 0x33f
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00404e20
mov edi, eax
push str.verify_upgrade_ver_failed
push edi
mov byte [ebp - 4], 0x11
call fcn.00402c60
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406330
lea ecx, [ebp - 0x248]
call fcn.004058f0
lea ecx, [ebp - 0x230]
call fcn.004058f0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41bb31
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41bb31
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00455240
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x280]
call fcn.00412c30
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x280]
push str.__inst_path__s_
push eax
call fcn.0040a700
push 0
push 1
push 1
push dword [ebp - 0x280]
push dword [ebx]
call fcn.0042f760
add esp, 0x20
test eax, eax
jne 0x41c120
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 0x41c0fe
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], 0x13
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040d860
mov byte [ebp - 4], 0x14
call fcn.0042e4b0
mov ebx, eax
lea ecx, [ebp - 0x31c]
push 0x34f
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00404e20
mov edi, eax
push str.RunExe_win11_assistant_failed_path:
push edi
mov byte [ebp - 4], 0x15
call fcn.00402c60
mov eax, dword [ebp - 0x27c]
add esp, 8
mov esi, dword [ebx]
add eax, 0x118
mov ecx, edi
push eax
call fcn.00416380
push eax
mov ecx, ebx
call dword [esi + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406330
lea ecx, [ebp - 0x248]
call fcn.004058f0
lea ecx, [ebp - 0x230]
call fcn.004058f0
lea ecx, [ebp - 0x280]
call fcn.00405670
lea ecx, [ebp - 0x284]
mov dword [ebp - 4], 0xffffffff
call fcn.00405670
jmp 0x41bb31
push 0
push 0
push 1
push 0
push str.update_exe_run
call fcn.004192f0
mov ecx, eax
call fcn.00448450
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 0x41c214
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], 0x16
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040d860
mov byte [ebp - 4], 0x17
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x355
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00404e20
mov esi, eax
push str.update_exe_run_success
push esi
mov byte [ebp - 4], 0x18
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406330
lea ecx, [ebp - 0x248]
call fcn.004058f0
lea ecx, [ebp - 0x230]
call fcn.004058f0
mov ecx, dword [ebp - 0x27c]
push 0
push 0
push 0x10
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x280]
call fcn.00405670
lea ecx, [ebp - 0x284]
call fcn.00405670
mov eax, 1
jmp 0x41c314
push edx
push ecx
call fcn.00446e66
add esp, 8
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x41c2af
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c2a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c341
push edx
push ecx
call fcn.00446e66
add esp, 8
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
push 0
push 0
push 1
push 0
push str.win11assistant_down_fail
call fcn.004192f0
mov ecx, eax
call fcn.00448450
mov ebx, dword [ebp - 0x27c]
push dword [ebx + 0x118]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x118]
call fcn.00410b20
push 0
push 0
push 0x804
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
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.00447113
mov esp, ebp
pop ebp
ret 4
call fcn.00458349
push 0x80004005
call fcn.00406bd0
call fcn.00458349
int3