Function at 0x417b20
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 0x49e042
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x4cd070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x7c], edi
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
push 0xffffffffffffffff
push str.WechatAppLauncher.exe
lea ecx, [ebp - 0xa4]
movq qword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0x94], 0
call fcn.00405e40
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.00405e40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 0x74], 0
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x74]
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x58], 0
push eax
mov dword [ebp - 0x54], 0
call fcn.0041c980
push fcn.00405df0
push 2
push 0x14
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 2
push eax
call fcn.0046563b
mov eax, dword [ebp - 0x5c]
mov esi, eax
cmp eax, dword [ebp - 0x58]
je 0x4182af
nop dword [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
push esi
lea ecx, [ebp - 0x70]
movups xmmword [ebp - 0x70], xmm0
call fcn.00405bb0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x417c92
cmp word [eax], 0
je 0x417c92
mov dword [ebp - 0x78], eax
jmp 0x417c9a
mov ecx, 0x4aebf4
mov dword [ebp - 0x78], ecx
mov eax, dword [edi + 0x94]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x417cad
cmp word [eax], 0
jne 0x417cbb
mov eax, 0x4aebf4
mov dword [ebp - 0x74], eax
cmp word [eax], 0
je 0x417cf1
mov edi, eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x417cc0
sub edi, ecx
lea ecx, [ebp - 0x3c]
sar edi, 1
push edi
call fcn.004064a0
push dword [ebp - 0x74]
push eax
push dword [ebp - 0x3c]
call fcn.00480d25
mov eax, dword [ebp - 0x38]
add esp, 0xc
add eax, edi
mov dword [ebp - 0x38], eax
jmp 0x417cf4
mov eax, dword [ebp - 0x38]
inc eax
lea ecx, [ebp - 0x3c]
push eax
call fcn.004064a0
push 0x4b5884
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00480d25
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov eax, dword [ebp - 0x78]
inc ecx
mov dword [ebp - 0x38], ecx
test eax, eax
je 0x417d5f
cmp word [eax], 0
je 0x417d5f
mov edi, eax
lea edx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x417d30
sub edi, edx
sar edi, 1
lea eax, [ecx + edi]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004064a0
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00480d25
add esp, 0xc
add dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x417d71
cmp word [eax], 0
je 0x417d71
mov dword [ebp - 0x78], eax
jmp 0x417d79
mov ecx, 0x4aebf4
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc0]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x417d91
cmp word [eax], 0
jne 0x417d9f
mov eax, 0x4aebf4
mov dword [ebp - 0x74], eax
cmp word [eax], 0
je 0x417dd5
mov edi, eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x417da4
sub edi, ecx
lea ecx, [ebp - 0x28]
sar edi, 1
push edi
call fcn.004064a0
push dword [ebp - 0x74]
push eax
push dword [ebp - 0x28]
call fcn.00480d25
mov eax, dword [ebp - 0x24]
add esp, 0xc
add eax, edi
mov dword [ebp - 0x24], eax
jmp 0x417dd8
mov eax, dword [ebp - 0x24]
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.004064a0
mov edi, dword [ebp - 0x28]
push 0x4b5884
push eax
push edi
mov dword [ebp - 0x74], edi
call fcn.00480d25
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov eax, dword [ebp - 0x78]
inc ecx
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x417e45
cmp word [eax], 0
je 0x417e45
mov edi, eax
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x417e10
sub edi, edx
sar edi, 1
lea eax, [ecx + edi]
push eax
lea ecx, [ebp - 0x28]
call fcn.004064a0
mov ecx, dword [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x28]
push eax
push ecx
mov dword [ebp - 0x74], ecx
call fcn.00480d25
add esp, 0xc
add dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x417e4f
cmp word [edi], 0
jne 0x417e5d
mov edi, 0x4aebf4
mov dword [ebp - 0x74], edi
cmp word [edi], 0
je 0x417e92
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x417e60
sub edi, ecx
lea ecx, [ebp - 0x50]
sar edi, 1
push edi
call fcn.004064a0
mov ecx, dword [ebp - 0x74]
push ecx
push eax
push dword [ebp - 0x50]
call fcn.00480d25
mov eax, dword [ebp - 0x4c]
add esp, 0xc
add eax, edi
mov dword [ebp - 0x4c], eax
jmp 0x417e95
mov eax, dword [ebp - 0x4c]
add eax, 4
lea ecx, [ebp - 0x50]
push eax
call fcn.004064a0
mov edi, dword [ebp - 0x50]
push str._tmp
push eax
push edi
call fcn.00480d25
add dword [ebp - 0x4c], 4
add esp, 0xc
test edi, edi
je 0x417ec3
cmp word [edi], 0
mov eax, edi
jne 0x417ec8
mov eax, 0x4aebf4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x417eef
test edi, edi
je 0x417ee3
cmp word [edi], 0
jne 0x417ee8
mov edi, 0x4aebf4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x28]
call fcn.0042a7d0
mov edi, dword [ebp - 0x28]
test al, al
jne 0x417fcd
test edi, edi
je 0x417f36
cmp word [edi], 0
je 0x417f36
sub esp, 8
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.004237d0
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
je 0x417f33
cmp byte [eax], 0
je 0x417f33
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x74], eax
jmp 0x417f3d
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x74], 0x4afda8
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4d2184]
cmp eax, dword [ecx + 4]
jle 0x417fa0
push 0x4d2184
call fcn.0046505e
add esp, 4
cmp dword [0x4d2184], 0xffffffff
jne 0x417fa0
push 0x40
push 0
push 0x4d2188
mov byte [ebp - 4], 7
call fcn.0047e1d0
add esp, 4
call fcn.004026c0
push 0x4a1660
call fcn.004653b5
add esp, 4
mov byte [ebp - 4], 6
push 0x4d2184
call fcn.0046501f
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x74]
push str.copyOuterFiles._renameFile_faild._path_s__lastErr_d
push str.UpdateMgr
push 0x224
push str.managerUpdateMgr.cpp
push 4
push 0x4d2188
call fcn.00402c30
add esp, 0x20
test edi, edi
je 0x417fd9
cmp word [edi], 0
mov ecx, edi
jne 0x417fde
mov ecx, 0x4aebf4
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x417feb
cmp word [eax], 0
jne 0x417ff0
mov eax, 0x4aebf4
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
test al, al
jne 0x418114
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x50]
call fcn.0042a7d0
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x418047
cmp word [edi], 0
je 0x418047
sub esp, 8
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.004237d0
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
je 0x418044
cmp byte [eax], 0
je 0x418044
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x74], eax
jmp 0x41804e
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x74], 0x4afda8
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41807a
cmp word [eax], 0
je 0x41807a
sub esp, 8
lea edx, [ebp - 0x30]
mov ecx, eax
call fcn.004237d0
mov eax, dword [ebp - 0x30]
add esp, 8
test eax, eax
je 0x41807a
cmp byte [eax], 0
mov dword [ebp - 0x78], eax
jne 0x418081
mov dword [ebp - 0x78], 0x4afda8
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4d2184]
cmp eax, dword [ecx + 4]
jle 0x4180e4
push 0x4d2184
call fcn.0046505e
add esp, 4
cmp dword [0x4d2184], 0xffffffff
jne 0x4180e4
push 0x40
push 0
push 0x4d2188
mov byte [ebp - 4], 8
call fcn.0047e1d0
add esp, 4
call fcn.004026c0
push 0x4a1660
call fcn.004653b5
add esp, 4
mov byte [ebp - 4], 6
push 0x4d2184
call fcn.0046501f
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push str.copyOuterFiles._copyFile_faild._srcPath_s__destPath_s__lastErr_d
push str.UpdateMgr
push 0x22e
push str.managerUpdateMgr.cpp
push 4
push 0x4d2188
call fcn.00402c30
add esp, 0x24
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x418121
cmp word [eax], 0
jne 0x418126
mov eax, 0x4aebf4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x4181b6
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x418144
cmp word [eax], 0
jne 0x418149
mov eax, 0x4aebf4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
je 0x4181b6
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x418181
cmp word [eax], 0
je 0x418181
sub esp, 8
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.004237d0
mov eax, dword [ebp - 0x44]
add esp, 8
test eax, eax
je 0x418181
cmp byte [eax], 0
mov dword [ebp - 0x74], eax
jne 0x418188
mov dword [ebp - 0x74], 0x4afda8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x74]
push str.copyOuterFiles._deleteFile_faild._path_s__lastErr_d
push str.UpdateMgr
push 0x233
push str.managerUpdateMgr.cpp
push 4
call fcn.0040e400
push eax
call fcn.00402c30
add esp, 0x20
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4181cd
push eax
call fcn.00480a27
add esp, 4
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x4181f9
push eax
call fcn.00480a27
add esp, 4
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
test edi, edi
je 0x41820d
push edi
call fcn.00480a27
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 0x418239
push eax
call fcn.00480a27
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x418250
push eax
call fcn.00480a27
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 0x41827c
push eax
call fcn.00480a27
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x418290
push eax
call fcn.00480a27
add esp, 4
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4182a0
push eax
call fcn.00480a27
add esp, 4
mov edi, dword [ebp - 0x7c]
add esi, 0x14
cmp esi, dword [ebp - 0x58]
jne 0x417c20
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4d2184]
cmp eax, dword [ecx + 4]
jle 0x418312
push 0x4d2184
call fcn.0046505e
add esp, 4
cmp dword [0x4d2184], 0xffffffff
jne 0x418312
push 0x40
push 0
push 0x4d2188
mov byte [ebp - 4], 9
call fcn.0047e1d0
add esp, 4
call fcn.004026c0
push 0x4a1660
call fcn.004653b5
add esp, 4
mov byte [ebp - 4], 2
push 0x4d2184
call fcn.0046501f
add esp, 4
push str.copy_OuterList_done.
push str.UpdateMgr
push 0x236
push str.managerUpdateMgr.cpp
push 2
push 0x4d2188
call fcn.00402c30
mov esi, dword [ebp - 0x5c]
add esp, 0x18
test esi, esi
je 0x41836a
push dword [ebp - 0x7c]
mov edx, dword [ebp - 0x58]
push ecx
mov ecx, esi
call fcn.00413ef0
mov ecx, dword [ebp - 0x54]
mov eax, 0x66666667
sub ecx, esi
add esp, 8
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00413d80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00464f19
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret