Function at 0x41cf80
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9bd3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
push 0xffffffffffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0
push str.WechatAppLauncher.exe
lea ecx, [ebp - 0xa4]
movups xmmword [ebp - 0xa4], xmm0
call fcn.00406c40
push 0xffffffffffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
push str.Uninstall.exe
lea ecx, [ebp - 0x90]
movups xmmword [ebp - 0x90], xmm0
call fcn.00406c40
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0
push ecx
lea eax, [ebp - 0x7c]
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00420e50
push 0x406bf0
push 2
push 0x14
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 2
push eax
call fcn.004ce602
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], ecx
cmp eax, ecx
je 0x41d54a
push eax
lea ecx, [ebp - 0x7c]
call fcn.00406930
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x41d095
cmp word [eax], 0
mov dword [ebp - 0x14], eax
jne 0x41d09c
mov dword [ebp - 0x14], 0x628fa4
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x41d0ac
cmp word [eax], 0
jne 0x41d0b1
mov eax, 0x628fa4
push eax
lea ecx, [ebp - 0x68]
call fcn.00406cf0
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [edi + 8]
inc eax
cmp esi, eax
jg 0x41d0fb
mov esi, 2
cmp eax, esi
jle 0x41d0d6
add esi, esi
cmp esi, eax
jl 0x41d0d0
lea eax, [esi*2 + 2]
push eax
push dword [edi]
call fcn.004d2e2e
add esp, 8
test eax, eax
je 0x41d0fa
mov ecx, dword [edi + 4]
xor edx, edx
mov dword [edi], eax
mov word [eax + ecx*2], dx
mov dword [edi + 8], esi
inc esi
push 0x6294f0
push esi
push dword [edi]
call fcn.004d8da4
inc dword [edi + 4]
add esp, 0xc
mov ecx, edi
push dword [ebp - 0x14]
call fcn.00406cf0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x41d128
cmp word [eax], 0
mov dword [ebp - 0x14], eax
jne 0x41d12f
mov dword [ebp - 0x14], 0x628fa4
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0xc0]
test eax, eax
je 0x41d142
cmp word [eax], 0
jne 0x41d147
mov eax, 0x628fa4
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406cf0
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [edi + 8]
inc eax
cmp esi, eax
jg 0x41d191
mov esi, 2
cmp eax, esi
jle 0x41d16c
add esi, esi
cmp esi, eax
jl 0x41d166
lea eax, [esi*2 + 2]
push eax
push dword [edi]
call fcn.004d2e2e
add esp, 8
test eax, eax
je 0x41d190
mov ecx, dword [edi + 4]
xor edx, edx
mov dword [edi], eax
mov word [eax + ecx*2], dx
mov dword [edi + 8], esi
inc esi
push 0x6294f0
push esi
push dword [edi]
call fcn.004d8da4
inc dword [edi + 4]
add esp, 0xc
mov ecx, edi
push dword [ebp - 0x14]
call fcn.00406cf0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41d1bb
cmp word [eax], 0
jne 0x41d1c0
mov eax, 0x628fa4
push eax
lea ecx, [ebp - 0x28]
call fcn.00406cf0
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [edi + 8]
add eax, 4
cmp esi, eax
jg 0x41d20c
mov esi, 2
cmp eax, esi
jle 0x41d1e7
add esi, esi
cmp esi, eax
jl 0x41d1e1
lea eax, [esi*2 + 2]
push eax
push dword [edi]
call fcn.004d2e2e
add esp, 8
test eax, eax
je 0x41d20b
mov ecx, dword [edi + 4]
xor edx, edx
mov dword [edi], eax
mov word [eax + ecx*2], dx
mov dword [edi + 8], esi
inc esi
push str._tmp
push esi
push dword [edi]
call fcn.004d8da4
add dword [edi + 4], 4
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41d22d
cmp word [eax], 0
jne 0x41d232
mov eax, 0x628fa4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41d257
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41d24b
cmp word [eax], 0
jne 0x41d250
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
call fcn.0042ff80
test al, al
jne 0x41d2dc
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push ecx
lea ecx, [ebp - 0x3c]
movups xmmword [eax], xmm0
call fcn.00407000
sub esp, 0x10
mov edi, eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004182c0
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdatemanagerUpdateMgr.cpp
mov eax, esp
mov ecx, 4
push str.copyOuterFiles._renameFile_faild._path_s__lastErr_d
push str.UpdateMgr
push str.UpdateMgr::copyOuterFiles
push 0x1fa
mov byte [eax], 2
mov dword [eax + 8], edi
call fcn.00403890
add esp, 0x70
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x41d2e9
cmp word [ecx], 0
jne 0x41d2ee
mov ecx, 0x628fa4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x41d2fb
cmp word [eax], 0
jne 0x41d300
mov eax, 0x628fa4
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x41d3a0
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x28]
call fcn.0042ff80
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push ecx
lea ecx, [ebp - 0x3c]
movups xmmword [eax], xmm0
call fcn.00407000
sub esp, 0x10
mov edi, eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004182c0
sub esp, 0x10
mov eax, esp
push ecx
lea ecx, [ebp - 0x68]
mov byte [eax], 2
mov dword [eax + 8], edi
call fcn.00407000
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdatemanagerUpdateMgr.cpp
mov ecx, esp
push str.copyOuterFiles._copyFile_faild._srcPath_s__destPath_s__lastErr_d
push str.UpdateMgr
mov byte [ecx], 2
mov dword [ecx + 8], eax
mov ecx, 4
push str.UpdateMgr::copyOuterFiles
push 0x204
call fcn.00403890
add esp, 0x70
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41d3ad
cmp word [eax], 0
jne 0x41d3b2
mov eax, 0x628fa4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41d456
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41d3cf
cmp word [eax], 0
jne 0x41d3d4
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
je 0x41d456
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push ecx
lea ecx, [ebp - 0x28]
movups xmmword [eax], xmm0
call fcn.00407000
sub esp, 0x10
mov edi, eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004182c0
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdatemanagerUpdateMgr.cpp
mov eax, esp
mov ecx, 4
push str.copyOuterFiles._deleteFile_faild._path_s__lastErr_d
push str.UpdateMgr
push str.UpdateMgr::copyOuterFiles
push 0x209
mov byte [eax], 2
mov dword [eax + 8], edi
call fcn.00403890
add esp, 0x70
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41d46d
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
test eax, eax
je 0x41d499
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41d4b0
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
test eax, eax
je 0x41d4dc
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x41d4f3
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
test eax, eax
je 0x41d511
push eax
call fcn.004d2e13
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x41d525
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x41d535
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
add eax, 0x14
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x54]
jne 0x41d054
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdatemanagerUpdateMgr.cpp
mov eax, esp
mov ecx, 2
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push str.copy_OuterList_done.
push str.UpdateMgr
push str.UpdateMgr::copyOuterFiles
push 0x20c
movups xmmword [eax], xmm0
call fcn.00403890
mov ecx, dword [ebp - 0x50]
add esp, 0x70
test ecx, ecx
je 0x41d5fd
mov edx, dword [ebp - 0x4c]
push ecx
call fcn.00418530
mov ecx, dword [ebp - 0x48]
mov eax, 0x66666667
mov esi, dword [ebp - 0x50]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x41d5f3
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d611
push ecx
push esi
call fcn.004ce396
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d85d5
int3