Function at 0x430ce0
Capabilities:
Check if file exists
Delete directory
Get common file path
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 0x5bad5b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
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 dword [ebp - 0x228], edx
mov edi, ecx
push edi
lea ecx, [ebp - 0x23c]
call fcn.00406930
mov esi, eax
sub esp, 0x10
mov dword [ebp - 4], 0
movups xmm0, xmmword [0x628d68]
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
push ecx
mov ecx, esi
movups xmmword [eax], xmm0
call fcn.00407000
sub esp, 0x10
mov esi, eax
mov ecx, esp
push dword [ebp - 0x228]
call fcn.004197f0
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
mov ecx, esp
push str.Path:__s__type:__d
push str.Utils::deleteDir
mov byte [ecx], 2
mov dword [ecx + 8], esi
mov ecx, 4
push str.Utils::deleteDir
push 0x401
call fcn.00403890
mov dword [ebp - 4], 0xffffffff
add esp, 0x70
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x430dd4
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0
test eax, eax
je 0x430dfb
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [edi]
mov byte [ebp - 0x224], 0
test eax, eax
je 0x4311cd
cmp word [eax], 0
je 0x4311cd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4311cd
shr eax, 4
and al, 1
je 0x4311cd
mov eax, dword [ebp - 0x228]
cmp eax, 5
ja case.0x430e45.2
mov esi, 1
jmp dword [eax*4 + 0x431258]
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
mov dword [ebp - 0x22c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x23c]
push eax
movups xmmword [ebp - 0x23c], xmm0
call fcn.00406c40
push str.WeChat_Files_
lea ecx, [ebp - 0x23c]
call fcn.00406cf0
mov esi, dword [ebp - 0x23c]
test esi, esi
je 0x430ef7
cmp word [esi], 0
je 0x430eee
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430eb0
sub ecx, edx
sar ecx, 1
cmp dword [edi + 4], ecx
jl 0x430eee
push ecx
push esi
push dword [edi]
call fcn.004d9229
mov ecx, dword [ebp - 0x224]
add esp, 0xc
test eax, eax
movzx ecx, cl
mov edx, 1
sete al
test al, al
cmovne ecx, edx
mov dword [ebp - 0x224], ecx
push esi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x230]
jmp 0x431082
lea ecx, [ebp - 0x23c]
call fcn.0042e900
mov esi, dword [ebp - 0x23c]
test esi, esi
je 0x430ef7
cmp word [esi], 0
je 0x430f60
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430f22
sub ecx, edx
sar ecx, 1
cmp dword [edi + 4], ecx
jl 0x430f60
push ecx
push esi
push dword [edi]
call fcn.004d9229
mov ecx, dword [ebp - 0x224]
add esp, 0xc
test eax, eax
movzx ecx, cl
mov edx, 1
sete al
test al, al
cmovne ecx, edx
mov byte [ebp - 0x224], cl
push esi
call fcn.004d2e13
mov eax, dword [ebp - 0x230]
add esp, 4
jmp 0x431082
lea ecx, [ebp - 0x250]
call fcn.0042e780
mov esi, dword [ebp - 0x250]
test esi, esi
je 0x43107c
cmp word [esi], 0
je 0x431073
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430fa0
sub ecx, edx
sar ecx, 1
cmp dword [edi + 4], ecx
jl 0x431073
push ecx
push esi
push dword [edi]
call fcn.004d9229
mov ecx, dword [ebp - 0x224]
add esp, 0xc
test eax, eax
movzx ecx, cl
mov edx, 1
sete al
test al, al
cmovne ecx, edx
jmp 0x43106d
mov ecx, dword [edi + 4]
cmp ecx, 0xd
jl case.0x430e45.5
mov eax, dword [edi]
push 0xd
push str.WeChat_Files_
lea eax, [eax + ecx*2]
add eax, 0xffffffe6
push eax
call fcn.004d9229
mov ecx, dword [ebp - 0x224]
add esp, 0xc
test eax, eax
movzx ecx, cl
cmove ecx, esi
mov byte [ebp - 0x224], cl
lea ecx, [ebp - 0x250]
call fcn.0042e9f0
mov esi, dword [ebp - 0x250]
test esi, esi
je 0x43107c
cmp word [esi], 0
je 0x431073
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431035
sub ecx, edx
sar ecx, 1
cmp dword [edi + 4], ecx
jl 0x431073
push ecx
push esi
push dword [edi]
call fcn.004d9229
mov ecx, dword [ebp - 0x224]
add esp, 0xc
test eax, eax
movzx ecx, cl
sete al
test al, al
mov eax, 1
cmovne ecx, eax
mov byte [ebp - 0x224], cl
push esi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x43108f
push eax
call fcn.004d2e13
add esp, 4
cmp byte [ebp - 0x224], 0
je case.0x430e45.2
sub esp, 0x14
mov ecx, esp
push 0xffffffffffffffff
push 0x628fa4
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
sub esp, 0x14
mov ecx, esp
push edi
call fcn.00406930
call fcn.00430870
mov eax, dword [edi]
add esp, 0x28
test eax, eax
je 0x4310ea
cmp word [eax], 0
jne 0x4310ef
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x431239
push edi
lea ecx, [ebp - 0x23c]
call fcn.00406930
mov edx, eax
sub esp, 0x10
mov dword [ebp - 4], 1
movups xmm0, xmmword [0x628d68]
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
push ecx
mov ecx, edx
movups xmmword [eax], xmm0
call fcn.00407000
sub esp, 0x10
mov esi, eax
mov ecx, esp
push dword [ebp - 0x228]
call fcn.004197f0
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
mov ecx, esp
push str._s_is_not_our_path__type:_d__stop_del_dir
push str.Utils
mov byte [ecx], 2
mov dword [ecx + 8], esi
mov ecx, 2
push str.Utils::deleteDir
push 0x43a
call fcn.00403890
mov eax, dword [ebp - 0x23c]
add esp, 0x70
test eax, eax
je 0x4311a4
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0
test eax, eax
je 0x431237
push eax
call fcn.004d2e13
add esp, 4
jmp 0x431237
push ecx
mov ecx, edi
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, 4
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.deleteDir__path_dot_exist__path_s
push str.Utils
push str.Utils::deleteDir
mov dword [eax + 8], edx
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
push 0x405
mov byte [eax], 2
call fcn.00403890
add esp, 0x70
xor al, al
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