Function at 0x41dac0
Capabilities:
Check if file exists
Get file attributes

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 0x5b9c6d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x6441a4]
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
lea ecx, [edi + 0x244]
mov al, 1
xchg byte [ecx], al
sub esp, 0x14
lea eax, [edi + 0xc0]
mov ecx, esp
push eax
call fcn.00406930
call fcn.00434610
add esp, 0x14
lea esi, [edi + 0x1e8]
lea ecx, [ebp - 0x48]
push esi
call fcn.00406930
mov eax, dword [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
test eax, eax
je 0x41db4d
cmp word [eax], 0
jne 0x41db52
mov eax, 0x628fa4
push str.WeChatWin.dll
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406cf0
mov ecx, eax
call fcn.00406cf0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00433890
mov eax, dword [ebp - 0x2c]
add esp, 4
test eax, eax
je 0x41db8d
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
test eax, eax
je 0x41dbb9
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x41dbd0
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
test eax, eax
je 0x41dbee
push eax
call fcn.004d2e13
add esp, 4
push esi
lea ecx, [ebp - 0x48]
call fcn.00406930
mov eax, dword [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
test eax, eax
je 0x41dc12
cmp word [eax], 0
jne 0x41dc17
mov eax, 0x628fa4
push str.WeChatWin.dll
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406cf0
mov ecx, eax
call fcn.00406cf0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00433890
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
add esp, 4
movups xmm1, xmmword [eax]
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
push eax
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
push eax
movd eax, xmm0
push eax
movd eax, xmm1
push eax
lea eax, [ebp - 0x5c]
push str._d._d._d._d
push eax
call fcn.00406ec0
mov eax, dword [ebp - 0x2c]
add esp, 0x18
test eax, eax
je 0x41dca0
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
test eax, eax
je 0x41dccc
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x41dce3
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
test eax, eax
je 0x41dd0f
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.00407000
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov edx, eax
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, 2
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.onUpdateSuccess._update_success._new_version:__s
push str.UpdateMgr
push str.UpdateMgr::onUpdateSuccess
mov dword [eax + 8], edx
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdatemanagerUpdateMgr.cpp
push 0x259
mov byte [eax], 2
call fcn.00403890
mov esi, dword [edi + 0x224]
add esp, 0x5c
mov ecx, esp
push 0xffffffffffffffff
push str.Version
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
call fcn.00406c40
mov ecx, esi
call fcn.00432c50
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00406930
call fcn.0041d8e0
push 1
call fcn.0041e690
call fcn.0041f870
sub esp, 0x14
mov ecx, esp
push 0xffffffffffffffff
push str.NeedUpdateType
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
call fcn.00406c40
xor ecx, ecx
call fcn.004326f0
add esp, 0x14
test al, al
jne 0x41de78
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdatemanagerUpdateMgr.cpp
mov eax, esp
mov ecx, 4
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.set_reg_NeedUpdateType_failed
push str.UpdateMgr
push str.UpdateMgr::onUpdateSuccess
push 0x264
movups xmmword [eax], xmm0
call fcn.00403890
add esp, 0x70
push ecx
lea ecx, [edi + 0x1fc]
mov edx, 5
call fcn.00430ce0
add esp, 4
mov dword [edi + 0x1a8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x23c]
mov dword [edi + 0x1b8], eax
mov eax, dword [edi + 0x19c]
test eax, eax
je 0x41df20
cmp dword [eax + 4], 0
je 0x41df20
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.wait_for_m_stopWechatThread_end.
push str.UpdateMgr
push str.UpdateMgr::onUpdateSuccess
push 0x26f
movups xmmword [eax], xmm0
call fcn.00403890
mov ecx, dword [edi + 0x19c]
add esp, 0x70
call fcn.00419810
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.start_clean_install_dir.
push str.UpdateMgr
push str.UpdateMgr::onUpdateSuccess
push 0x273
movups xmmword [eax], xmm0
call fcn.00403890
mov esi, dword [edi]
lea eax, [edi + 0xc0]
add esp, 0x5c
mov ecx, esp
push eax
call fcn.00406930
mov ecx, esi
call fcn.00433990
mov eax, dword [edi + 0x210]
add esp, 0x14
test eax, eax
je 0x41dfce
cmp word [eax], 0
je 0x41dfce
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41dfce
shr eax, 4
and al, 1
je 0x41dfce
push ecx
mov edx, 3
lea ecx, [edi + 0x210]
call fcn.00430ce0
add esp, 4
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.update_all_done._post_complete_msg
push str.UpdateMgr
push str.UpdateMgr::onUpdateSuccess
push 0x28f
movups xmmword [eax], xmm0
call fcn.00403890
add esp, 0x70
push 0
push 0
push 0x469
push dword [edi + 0x22c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, edi
call fcn.0041e100
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov esi, eax
sub esi, dword [edi + 0x23c]
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
mov ecx, esp
push esi
movups xmmword [eax], xmm0
call fcn.004197f0
push str.update_total_cost__d_ms
push str.UpdateMgr
push str.UpdateMgr::onUpdateSuccess
push 0x294
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdatemanagerUpdateMgr.cpp
mov ecx, 2
call fcn.00403890
mov eax, dword [ebp - 0x5c]
add esp, 0x70
test eax, eax
je 0x41e0c5
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x41e0d5
push eax
call fcn.004d2e13
add esp, 4
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.004cdf2e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret