Function at 0x4301b0
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 0x4302d0
mov esi, dword [ebp - 0x2b0]
dec eax
push 1
push 0x6294f0
lea eax, [esi + eax*2]
push eax
call fcn.004d9229
add esp, 0xc
test eax, eax
je 0x4302e6
push 0x6294f0
lea ecx, [ebp - 0x2b0]
call fcn.00406cf0
mov esi, dword [ebp - 0x2b0]
mov eax, dword [ebp - 0x2c0]
cmp eax, 1
jl 0x430311
mov ecx, dword [ebp - 0x2c4]
sub ecx, 2
push 1
push 0x6294f0
lea eax, [ecx + eax*2]
push eax
call fcn.004d9229
add esp, 0xc
test eax, eax
je 0x430321
push 0x6294f0
lea ecx, [ebp - 0x2c4]
call fcn.00406cf0
test esi, esi
je 0x43032d
cmp word [esi], 0
mov eax, esi
jne 0x430332
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 0x430359
cmp word [edi], 0
mov eax, edi
jne 0x43035e
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 0x4307e6
mov esi, eax
nop dword [eax]
nop dword [eax + eax]
push 0xff
lea eax, [ebp - 0x23c]
push 0x629df4
push eax
call fcn.004d9229
add esp, 0xc
test eax, eax
je 0x4307bd
push 0xff
lea eax, [ebp - 0x23c]
push 0x62c6c8
push eax
call fcn.004d9229
add esp, 0xc
test eax, eax
je 0x4307bd
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x298]
call fcn.00406930
cmp word [ebp - 0x23c], 0
je 0x430485
lea esi, [ebp - 0x23c]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x430400
mov eax, dword [ebp - 0x294]
sub esi, ecx
mov edi, dword [ebp - 0x290]
sar esi, 1
add eax, esi
cmp edi, eax
jg 0x430469
mov edi, 2
cmp eax, edi
jle 0x430436
nop word [eax + eax]
add edi, edi
cmp edi, eax
jl 0x430430
lea eax, [edi*2 + 2]
push eax
push dword [ebp - 0x298]
call fcn.004d2e2e
add esp, 8
test eax, eax
je 0x430468
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.004d8da4
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 0x430535
lea esi, [ebp - 0x23c]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4304b2
mov eax, dword [ebp - 0x280]
sub esi, ecx
mov edi, dword [ebp - 0x27c]
sar esi, 1
add eax, esi
cmp edi, eax
jg 0x430519
mov edi, 2
cmp eax, edi
jle 0x4304e6
nop dword [eax]
add edi, edi
cmp edi, eax
jl 0x4304e0
lea eax, [edi*2 + 2]
push eax
push dword [ebp - 0x284]
call fcn.004d2e2e
add esp, 8
test eax, eax
je 0x430518
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.004d8da4
add esp, 0xc
add dword [ebp - 0x280], esi
test byte [ebp - 0x268], 0x10
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x298]
je 0x430624
call fcn.0042fed0
test al, al
jne 0x430717
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x430582
cmp word [eax], 0
je 0x430582
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x430582
shr eax, 4
and al, 1
jne 0x430606
lea ecx, [ebp - 0x284]
call fcn.00432d00
test al, al
jne 0x430606
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.004301b0
test al, al
jne 0x430717
jmp 0x430710
call fcn.0042fed0
test al, al
jne 0x430717
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x430641
cmp word [ecx], 0
jne 0x430646
mov ecx, 0x628fa4
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x430656
cmp word [eax], 0
jne 0x43065b
mov eax, 0x628fa4
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x430717
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x43067e
cmp word [eax], 0
jne 0x430683
mov eax, 0x628fa4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x430717
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 0x430734
push eax
call fcn.004d2e13
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 0x43076f
push eax
call fcn.004d2e13
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 0x430790
push eax
call fcn.004d2e13
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 0x4307b7
push eax
call fcn.004d2e13
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 0x430390
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x2b0]
mov edi, dword [ebp - 0x2d8]
test edi, edi
je 0x4307f3
push edi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x2cc]
test eax, eax
je 0x430806
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x2c4]
test eax, eax
je 0x430819
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x2b8]
test eax, eax
je 0x43082c
push eax
call fcn.004d2e13
add esp, 4
test esi, esi
je 0x430839
push esi
call fcn.004d2e13
add esp, 4
mov ecx, dword [ebp - 0x2a4]
test ecx, ecx
je 0x43084c
push ecx
call fcn.004d2e13
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.004cdf2e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret