Function at 0x430220
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Enumerate files recursively
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 0x5bacac
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
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 esi, edx
push ecx
lea ecx, [ebp - 0x2b0]
call fcn.00406930
push esi
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 4], 0
call fcn.00406930
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
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
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push ecx
lea ecx, [ebp - 0x2b0]
mov byte [eax], 2
mov dword [eax + 8], edx
call fcn.00407000
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
mov ecx, esp
push str.forceRenameFileUseCopyIfFail_:__s___s
push str.Utils
mov byte [ecx], 2
mov dword [ecx + 8], eax
mov ecx, 2
push str.Utils::forceRenameFileUseCopyIfFailWithRet
push 0x381
call fcn.00403890
xorps xmm0, xmm0
mov dword [ebp - 0x2c8], 0
add esp, 0x70
movups xmmword [ebp - 0x2d8], xmm0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2ac]
cmp eax, 1
jl 0x430340
mov esi, dword [ebp - 0x2b0]
dec eax
push 1
push 0x6294f0
lea eax, [esi + eax*2]
push eax
call fcn.004d9259
add esp, 0xc
test eax, eax
je 0x430356
push 0x6294f0
lea ecx, [ebp - 0x2b0]
call fcn.00406cf0
mov esi, dword [ebp - 0x2b0]
mov eax, dword [ebp - 0x2c0]
cmp eax, 1
jl 0x430381
mov ecx, dword [ebp - 0x2c4]
sub ecx, 2
push 1
push 0x6294f0
lea eax, [ecx + eax*2]
push eax
call fcn.004d9259
add esp, 0xc
test eax, eax
je 0x430391
push 0x6294f0
lea ecx, [ebp - 0x2c4]
call fcn.00406cf0
test esi, esi
je 0x43039d
cmp word [esi], 0
mov eax, esi
jne 0x4303a2
mov eax, 0x628fa4
push eax
lea eax, [ebp - 0x2d8]
push str._s.
push eax
call fcn.00406ec0
mov edi, dword [ebp - 0x2d8]
add esp, 0xc
test edi, edi
je 0x4303c9
cmp word [edi], 0
mov eax, edi
jne 0x4303ce
mov eax, 0x628fa4
lea ecx, [ebp - 0x268]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
mov byte [ebp - 0x269], 1
cmp eax, 0xffffffff
je 0x430856
mov esi, eax
nop dword [eax]
nop dword [eax + eax]
push 0xff
lea eax, [ebp - 0x23c]
push 0x629df4
push eax
call fcn.004d9259
add esp, 0xc
test eax, eax
je 0x43082d
push 0xff
lea eax, [ebp - 0x23c]
push 0x62c6c8
push eax
call fcn.004d9259
add esp, 0xc
test eax, eax
je 0x43082d
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x298]
call fcn.00406930
cmp word [ebp - 0x23c], 0
je 0x4304f5
lea esi, [ebp - 0x23c]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x430470
mov eax, dword [ebp - 0x294]
sub esi, ecx
mov edi, dword [ebp - 0x290]
sar esi, 1
add eax, esi
cmp edi, eax
jg 0x4304d9
mov edi, 2
cmp eax, edi
jle 0x4304a6
nop word [eax + eax]
add edi, edi
cmp edi, eax
jl 0x4304a0
lea eax, [edi*2 + 2]
push eax
push dword [ebp - 0x298]
call fcn.004d2e5e
add esp, 8
test eax, eax
je 0x4304d8
mov ecx, dword [ebp - 0x294]
xor edx, edx
mov dword [ebp - 0x298], eax
mov word [eax + ecx*2], dx
mov dword [ebp - 0x290], edi
inc edi
lea eax, [ebp - 0x23c]
push eax
push edi
push dword [ebp - 0x298]
call fcn.004d8dd4
add esp, 0xc
add dword [ebp - 0x294], esi
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x284]
call fcn.00406930
mov byte [ebp - 4], 4
cmp word [ebp - 0x23c], 0
je 0x4305a5
lea esi, [ebp - 0x23c]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x430522
mov eax, dword [ebp - 0x280]
sub esi, ecx
mov edi, dword [ebp - 0x27c]
sar esi, 1
add eax, esi
cmp edi, eax
jg 0x430589
mov edi, 2
cmp eax, edi
jle 0x430556
nop dword [eax]
add edi, edi
cmp edi, eax
jl 0x430550
lea eax, [edi*2 + 2]
push eax
push dword [ebp - 0x284]
call fcn.004d2e5e
add esp, 8
test eax, eax
je 0x430588
mov ecx, dword [ebp - 0x280]
xor edx, edx
mov dword [ebp - 0x284], eax
mov word [eax + ecx*2], dx
mov dword [ebp - 0x27c], edi
inc edi
lea eax, [ebp - 0x23c]
push eax
push edi
push dword [ebp - 0x284]
call fcn.004d8dd4
add esp, 0xc
add dword [ebp - 0x280], esi
test byte [ebp - 0x268], 0x10
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x298]
je 0x430694
call fcn.0042ff40
test al, al
jne 0x430787
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x4305f2
cmp word [eax], 0
je 0x4305f2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4305f2
shr eax, 4
and al, 1
jne 0x430676
lea ecx, [ebp - 0x284]
call fcn.00432d70
test al, al
jne 0x430676
push ecx
lea ecx, [ebp - 0x284]
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.mkDirEx_err_dir_s
push str.Utils
push str.Utils::forceRenameFileUseCopyIfFailWithRet
mov dword [eax + 8], edx
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
push 0x3a5
mov byte [eax], 2
call fcn.00403890
add esp, 0x70
mov byte [ebp - 0x269], 0
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x298]
call fcn.00430220
test al, al
jne 0x430787
jmp 0x430780
call fcn.0042ff40
test al, al
jne 0x430787
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x4306b1
cmp word [ecx], 0
jne 0x4306b6
mov ecx, 0x628fa4
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x4306c6
cmp word [eax], 0
jne 0x4306cb
mov eax, 0x628fa4
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x430787
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x4306ee
cmp word [eax], 0
jne 0x4306f3
mov eax, 0x628fa4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x430787
push ecx
lea ecx, [ebp - 0x284]
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
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push ecx
lea ecx, [ebp - 0x298]
mov byte [eax], 2
mov dword [eax + 8], edx
call fcn.00407000
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
mov ecx, esp
push str.copy_err_from__s_to__s
push str.Utils
mov byte [ecx], 2
mov dword [ecx + 8], eax
mov ecx, 2
push str.Utils::forceRenameFileUseCopyIfFailWithRet
push 0x3b5
call fcn.00403890
add esp, 0x70
mov byte [ebp - 0x269], 0
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x4307a4
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x284], 0
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x280], 0
test eax, eax
je 0x4307df
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x430800
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x298], 0
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x294], 0
test eax, eax
je 0x430827
push eax
call fcn.004d2e43
add esp, 4
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x430400
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x2b0]
mov edi, dword [ebp - 0x2d8]
test edi, edi
je 0x430863
push edi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x2cc]
test eax, eax
je 0x430876
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x2c4]
test eax, eax
je 0x430889
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x2b8]
test eax, eax
je 0x43089c
push eax
call fcn.004d2e43
add esp, 4
test esi, esi
je 0x4308a9
push esi
call fcn.004d2e43
add esp, 4
mov ecx, dword [ebp - 0x2a4]
test ecx, ecx
je 0x4308bc
push ecx
call fcn.004d2e43
add esp, 4
mov al, byte [ebp - 0x269]
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