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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad264
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x4e23d4]
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 0x41fe11
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 0x41fcee
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 dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040daa0
mov byte [ebp - 4], 1
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x348
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00405060
mov esi, eax
push str.win11_download_Success
push esi
mov byte [ebp - 4], 2
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406570
lea ecx, [ebp - 0x230]
call fcn.00405b30
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00405b30
mov edi, dword [ebp - 0x27c]
mov edx, dword [ebx + 0x14]
lea ebx, [edi + 0x118]
test edx, edx
jne 0x41fcff
xor ecx, ecx
jmp 0x41fd13
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fd04
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0040ba60
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ff1a
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 0x41fe11
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 dword [ebp - 4], 3
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040daa0
mov byte [ebp - 4], 4
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x34c
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405060
mov esi, eax
mov byte [ebp - 4], 5
push str.win11_not_exist
push esi
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406570
lea ecx, [ebp - 0x248]
call fcn.00405b30
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.00405b30
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 0x4205aa
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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 0x1a
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x3b4]
push 0x378
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00405060
mov esi, eax
push str.win11assistant_download_Invalid
push esi
mov byte [ebp - 4], 0x1b
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x3b4]
call fcn.00406570
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x19
cmp edx, 0x10
jb 0x420533
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420529
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420612
jmp 0x420529
push dword [ebx]
call fcn.0043db40
add esp, 4
test eax, eax
jne 0x41ffdd
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 0x41fe11
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 dword [ebp - 4], 6
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040daa0
mov byte [ebp - 4], 7
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x351
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405060
mov esi, eax
mov byte [ebp - 4], 8
push str.ldswin11_sign_invalid
jmp 0x41fdd8
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 0x4200c8
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 dword [ebp - 4], 9
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040daa0
mov byte [ebp - 4], 0xa
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x354
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405060
mov esi, eax
push str.ldswin11_download_success
push esi
mov byte [ebp - 4], 0xb
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406570
lea ecx, [ebp - 0x248]
call fcn.00405b30
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.00405b30
mov edi, dword [ebp - 0x27c]
push 0
push 0
push 1
push 0
push str.update_down_succ
call fcn.0041d500
mov ecx, eax
call fcn.0045d650
call fcn.0040b110
mov ecx, eax
test ecx, ecx
je 0x420617
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.0041d080
mov esi, dword [ebp - 0x284]
lea ecx, [ebp - 0x230]
add esp, 8
push esi
call fcn.00419f20
push dword [edi + 0x11c]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xd
call fcn.00419f20
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041d590
mov ecx, eax
call fcn.00412140
lea ecx, [ebp - 0x248]
mov edi, eax
call fcn.00405b80
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xc
call fcn.00405b80
test edi, edi
je 0x420281
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 0x420259
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], 0xf
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040daa0
mov byte [ebp - 4], 0x10
call fcn.0043bfd0
mov ebx, eax
lea ecx, [ebp - 0x31c]
push 0x35d
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405060
mov edi, eax
push str.verify_upgrade_ver_failed
push edi
mov byte [ebp - 4], 0x11
call fcn.00402ea0
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406570
lea ecx, [ebp - 0x248]
call fcn.00405b30
lea ecx, [ebp - 0x230]
call fcn.00405b30
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41fe11
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41fe11
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004813a0
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.004150a0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x280]
push str.__inst_path__s_
push eax
call fcn.0040a940
push 0
push 1
push 1
push dword [ebp - 0x280]
push dword [ebx]
call fcn.0043d280
add esp, 0x20
test eax, eax
jne 0x420400
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 0x4203de
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], 0x13
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040daa0
mov byte [ebp - 4], 0x14
call fcn.0043bfd0
mov ebx, eax
lea ecx, [ebp - 0x31c]
push 0x36d
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405060
mov edi, eax
push str.RunExe_win11_assistant_failed_path:
push edi
mov byte [ebp - 4], 0x15
call fcn.00402ea0
mov eax, dword [ebp - 0x27c]
add esp, 8
mov esi, dword [ebx]
add eax, 0x118
mov ecx, edi
push eax
call fcn.00419c10
push eax
mov ecx, ebx
call dword [esi + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406570
lea ecx, [ebp - 0x248]
call fcn.00405b30
lea ecx, [ebp - 0x230]
call fcn.00405b30
lea ecx, [ebp - 0x280]
call fcn.004058b0
lea ecx, [ebp - 0x284]
mov dword [ebp - 4], 0xffffffff
call fcn.004058b0
jmp 0x41fe11
push 0
push 0
push 1
push 0
push str.update_exe_run
call fcn.0041d500
mov ecx, eax
call fcn.0045d650
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 0x4204f4
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], 0x16
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040daa0
mov byte [ebp - 4], 0x17
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x373
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405060
mov esi, eax
push str.update_exe_run_success
push esi
mov byte [ebp - 4], 0x18
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406570
lea ecx, [ebp - 0x248]
call fcn.00405b30
lea ecx, [ebp - 0x230]
call fcn.00405b30
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.004058b0
lea ecx, [ebp - 0x284]
call fcn.004058b0
mov eax, 1
jmp 0x4205f4
push edx
push ecx
call fcn.0045bfb6
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 0x42058f
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420585
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420621
push edx
push ecx
call fcn.0045bfb6
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.0041d500
mov ecx, eax
call fcn.0045d650
mov ebx, dword [ebp - 0x27c]
push dword [ebx + 0x118]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x118]
call fcn.00410dc0
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.0045c263
mov esp, ebp
pop ebp
ret 4
call fcn.004844a9
push 0x80004005
call fcn.00406e10
call fcn.004844a9
int3