Function at 0x430d50
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 0x430e44
push eax
call fcn.004d2e43
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 0x430e6b
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [edi]
mov byte [ebp - 0x224], 0
test eax, eax
je 0x43123d
cmp word [eax], 0
je 0x43123d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43123d
shr eax, 4
and al, 1
je 0x43123d
mov eax, dword [ebp - 0x228]
cmp eax, 5
ja case.0x430eb5.2
mov esi, 1
jmp dword [eax*4 + 0x4312c8]
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 0x430f67
cmp word [esi], 0
je 0x430f5e
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430f20
sub ecx, edx
sar ecx, 1
cmp dword [edi + 4], ecx
jl 0x430f5e
push ecx
push esi
push dword [edi]
call fcn.004d9259
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.004d2e43
add esp, 4
mov eax, dword [ebp - 0x230]
jmp 0x4310f2
lea ecx, [ebp - 0x23c]
call fcn.0042e970
mov esi, dword [ebp - 0x23c]
test esi, esi
je 0x430f67
cmp word [esi], 0
je 0x430fd0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430f92
sub ecx, edx
sar ecx, 1
cmp dword [edi + 4], ecx
jl 0x430fd0
push ecx
push esi
push dword [edi]
call fcn.004d9259
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.004d2e43
mov eax, dword [ebp - 0x230]
add esp, 4
jmp 0x4310f2
lea ecx, [ebp - 0x250]
call fcn.0042e7f0
mov esi, dword [ebp - 0x250]
test esi, esi
je 0x4310ec
cmp word [esi], 0
je 0x4310e3
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431010
sub ecx, edx
sar ecx, 1
cmp dword [edi + 4], ecx
jl 0x4310e3
push ecx
push esi
push dword [edi]
call fcn.004d9259
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 0x4310dd
mov ecx, dword [edi + 4]
cmp ecx, 0xd
jl case.0x430eb5.5
mov eax, dword [edi]
push 0xd
push str.WeChat_Files_
lea eax, [eax + ecx*2]
add eax, 0xffffffe6
push eax
call fcn.004d9259
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.0042ea60
mov esi, dword [ebp - 0x250]
test esi, esi
je 0x4310ec
cmp word [esi], 0
je 0x4310e3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4310a5
sub ecx, edx
sar ecx, 1
cmp dword [edi + 4], ecx
jl 0x4310e3
push ecx
push esi
push dword [edi]
call fcn.004d9259
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.004d2e43
add esp, 4
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x4310ff
push eax
call fcn.004d2e43
add esp, 4
cmp byte [ebp - 0x224], 0
je case.0x430eb5.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.004308e0
mov eax, dword [edi]
add esp, 0x28
test eax, eax
je 0x43115a
cmp word [eax], 0
jne 0x43115f
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x4312a9
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 0x431214
push eax
call fcn.004d2e43
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 0x4312a7
push eax
call fcn.004d2e43
add esp, 4
jmp 0x4312a7
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.004cdf5d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret