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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c9c4
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x4a62e4]
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 0x41d3b1
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41d28e
push 0x3a
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 1
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x32a
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00405aa0
mov esi, eax
push str.win11_download_Success
push esi
mov byte [ebp - 4], 2
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406fb0
lea ecx, [ebp - 0x230]
call fcn.00406570
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00406570
mov edi, dword [ebp - 0x27c]
mov edx, dword [ebx + 0x14]
lea ebx, [edi + 0x114]
test edx, edx
jne 0x41d29f
xor ecx, ecx
jmp 0x41d2b3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d2a4
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0040c6c0
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d4ba
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41d3b1
push 0x3a
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 4
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x32e
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405aa0
mov esi, eax
mov byte [ebp - 4], 5
push str.win11_not_exist
push esi
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406fb0
lea ecx, [ebp - 0x248]
call fcn.00406570
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.00406570
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41db4a
push 0x3a
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 0x1a
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x3b4]
push 0x35a
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00405aa0
mov esi, eax
push str.win11assistant_download_Invalid
push esi
mov byte [ebp - 4], 0x1b
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x3b4]
call fcn.00406fb0
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x19
cmp edx, 0x10
jb 0x41dad3
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41dac9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dbb2
jmp 0x41dac9
push dword [ebx]
call fcn.00433820
add esp, 4
test eax, eax
jne 0x41d57d
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41d3b1
push 0x3a
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 7
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x333
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405aa0
mov esi, eax
mov byte [ebp - 4], 8
push str.ldswin11_sign_invalid
jmp 0x41d378
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41d668
push 0x3a
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 0xa
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x336
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405aa0
mov esi, eax
push str.ldswin11_download_success
push esi
mov byte [ebp - 4], 0xb
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406fb0
lea ecx, [ebp - 0x248]
call fcn.00406570
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.00406570
mov edi, dword [ebp - 0x27c]
push 0
push 0
push 1
push 0
push str.update_down_succ
call fcn.0041acf0
mov ecx, eax
call fcn.00444490
call fcn.0040bd70
mov ecx, eax
test ecx, ecx
je 0x41dbb7
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.00415190
mov esi, dword [ebp - 0x284]
lea ecx, [ebp - 0x230]
add esp, 8
push esi
call fcn.004182e0
push dword [edi + 0x118]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xd
call fcn.004182e0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004133b0
mov ecx, eax
call fcn.00412e10
lea ecx, [ebp - 0x248]
mov edi, eax
call fcn.004065c0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xc
call fcn.004065c0
test edi, edi
je 0x41d821
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41d7f9
push 0x3a
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 0x10
call fcn.0042fcb0
mov ebx, eax
lea ecx, [ebp - 0x31c]
push 0x33f
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405aa0
mov edi, eax
push str.verify_upgrade_ver_failed
push edi
mov byte [ebp - 4], 0x11
call fcn.00403950
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406fb0
lea ecx, [ebp - 0x248]
call fcn.00406570
lea ecx, [ebp - 0x230]
call fcn.00406570
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41d3b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41d3b1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00450d40
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.00414840
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x280]
push str.__inst_path__s_
push eax
call fcn.0040b5a0
push 0
push 1
push 1
push dword [ebp - 0x280]
push dword [ebx]
call fcn.00433140
add esp, 0x20
test eax, eax
jne 0x41d9a0
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41d97e
push 0x3a
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 0x14
call fcn.0042fcb0
mov ebx, eax
lea ecx, [ebp - 0x31c]
push 0x34f
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405aa0
mov edi, eax
push str.RunExe_win11_assistant_failed_path:
push edi
mov byte [ebp - 4], 0x15
call fcn.00403950
mov eax, dword [ebp - 0x27c]
add esp, 8
mov esi, dword [ebx]
add eax, 0x114
mov ecx, edi
push eax
call fcn.00417f90
push eax
mov ecx, ebx
call dword [esi + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406fb0
lea ecx, [ebp - 0x248]
call fcn.00406570
lea ecx, [ebp - 0x230]
call fcn.00406570
lea ecx, [ebp - 0x280]
call fcn.004062f0
lea ecx, [ebp - 0x284]
mov dword [ebp - 4], 0xffffffff
call fcn.004062f0
jmp 0x41d3b1
push 0
push 0
push 1
push 0
push str.update_exe_run
call fcn.0041acf0
mov ecx, eax
call fcn.00444490
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41da94
push 0x3a
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 0x17
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x355
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405aa0
mov esi, eax
push str.update_exe_run_success
push esi
mov byte [ebp - 4], 0x18
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00406fb0
lea ecx, [ebp - 0x248]
call fcn.00406570
lea ecx, [ebp - 0x230]
call fcn.00406570
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.004062f0
lea ecx, [ebp - 0x284]
call fcn.004062f0
mov eax, 1
jmp 0x41db94
push edx
push ecx
call fcn.00442ea6
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 0x41db2f
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41db25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dbc1
push edx
push ecx
call fcn.00442ea6
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.0041acf0
mov ecx, eax
call fcn.00444490
mov ebx, dword [ebp - 0x27c]
push dword [ebx + 0x114]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x114]
call fcn.004117d0
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.00443153
mov esp, ebp
pop ebp
ret 4
call fcn.00453ee9
push 0x80004005
call fcn.00407850
call fcn.00453ee9
int3