Function at 0x4af7fa
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push 0x27c
mov eax, 0x50f839
call fcn.004e3d9f
mov ebx, ecx
lea esi, [ebx + 0x3b8]
xor edi, edi
mov dword [ebp - 0x284], ebx
call fcn.004aa745
and dword [ebp - 4], edi
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x278]
call fcn.004027f9
mov byte [ebp - 4], 1
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x280]
call fcn.004027f9
mov byte [ebp - 4], 2
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x274]
call fcn.004027f9
mov byte [ebp - 4], 3
push dword [ebx + 0x3b4]
lea eax, [ebp - 0x278]
push 0x5ce690
push eax
call fcn.00402a1d
add esp, 0xc
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
je 0x4afa48
mov ecx, 0x5af644
lea eax, [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4af8cd
test dx, dx
je 0x4af8c9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4af8cd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4af8a7
xor eax, eax
jmp 0x4af8d2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4afa21
mov ecx, 0x5bc960
lea eax, [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4af90b
test dx, dx
je 0x4af907
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4af90b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4af8e5
xor eax, eax
jmp 0x4af910
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4afa21
test byte [ebp - 0x26c], 0x10
jne 0x4afa21
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x274]
call fcn.00402719
mov eax, dword [ebp - 0x274]
mov edi, dword [eax - 0xc]
push 0x5ce69c
xor ecx, ecx
lea esi, [ebp - 0x274]
call fcn.0040788c
add edi, 0xfffffffd
cmp eax, edi
jne 0x4afa21
push 0x48
call fcn.004bd312
pop ecx
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4af981
push eax
call fcn.004a813b
mov dword [ebp - 0x270], eax
jmp 0x4af988
and dword [ebp - 0x270], 0
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x270]
test edi, edi
je 0x4afa21
lea eax, [ebp - 0x240]
push eax
push dword [ebx + 0x3b4]
lea esi, [edi + 0xc]
push str._s_s
push esi
call fcn.00402a1d
add esp, 0x10
push esi
lea ecx, [ebp - 0x288]
call fcn.00402305
mov esi, dword [ebp - 0x288]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esi - 0x10]
cmp eax, 0xffffffff
jne 0x4af9e0
call fcn.0040285b
jmp 0x4afa21
test al, 0x10
jne 0x4af9d9
call fcn.0040285b
push 0
push edi
call fcn.004a9d6c
test eax, eax
je 0x4afa21
lea esi, [ebx + 0x3b8]
mov ebx, dword [esi + 8]
test ebx, ebx
jge 0x4afa07
call fcn.004be614
lea edi, [ebx + 1]
call fcn.004aa745
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x270]
mov dword [eax + ebx*4], ecx
mov ebx, dword [ebp - 0x284]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4af89c
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, ebx
call fcn.004af40b
xor edi, edi
xor esi, esi
cmp esi, dword [ebx + 0x3c0]
jge 0x4afa71
lea ecx, [ebx + 0x3b8]
mov eax, esi
call fcn.0041419a
cmp dword [eax], 0
je 0x4afa6e
inc edi
inc esi
jmp 0x4afa53
lea ecx, [ebx + 0x74]
test edi, edi
jle 0x4afa83
push 1
call fcn.004bf472
push 1
jmp 0x4afa8c
push 0
call fcn.004bf472
push 0
lea ecx, [ebx + 0x1dc]
call fcn.004bf472
push ecx
mov ecx, esp
mov dword [ebp - 0x284], esp
push str.LoadBackups_completed
call fcn.0040253b
call fcn.00454d39
pop ecx
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.0040285b
xor eax, eax
inc eax
jmp 0x4afb00
call fcn.004e3dfb
ret