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

Disassembly:
push 0x27c
mov eax, 0x4df676
call fcn.004bed4f
mov ebx, ecx
lea esi, [ebx + 0x3b8]
xor edi, edi
mov dword [ebp - 0x284], ebx
call fcn.00445c45
and dword [ebp - 4], edi
call fcn.00499991
push eax
lea ecx, [ebp - 0x278]
call fcn.004727f7
mov byte [ebp - 4], 1
call fcn.00499991
push eax
lea ecx, [ebp - 0x280]
call fcn.004727f7
mov byte [ebp - 4], 2
call fcn.00499991
push eax
lea ecx, [ebp - 0x274]
call fcn.004727f7
mov byte [ebp - 4], 3
push dword [ebx + 0x3b4]
lea eax, [ebp - 0x278]
push 0x5575a0
push eax
call fcn.00402967
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 0x497130
mov ecx, 0x5231e4
lea eax, [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x496fb5
test dx, dx
je 0x496fb1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x496fb5
add eax, 4
add ecx, 4
test dx, dx
jne 0x496f8f
xor eax, eax
jmp 0x496fba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x497109
mov ecx, 0x547160
lea eax, [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x496ff3
test dx, dx
je 0x496fef
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x496ff3
add eax, 4
add ecx, 4
test dx, dx
jne 0x496fcd
xor eax, eax
jmp 0x496ff8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x497109
test byte [ebp - 0x26c], 0x10
jne 0x497109
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x274]
call fcn.004026bd
mov eax, dword [ebp - 0x274]
mov edi, dword [eax - 0xc]
push 0x5575ac
xor ecx, ecx
lea esi, [ebp - 0x274]
call fcn.004072a5
add edi, 0xfffffffd
cmp eax, edi
jne 0x497109
push 0x48
call fcn.004985b0
pop ecx
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x497069
push eax
call fcn.0048f98c
mov dword [ebp - 0x270], eax
jmp 0x497070
and dword [ebp - 0x270], 0
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x270]
test edi, edi
je 0x497109
lea eax, [ebp - 0x240]
push eax
push dword [ebx + 0x3b4]
lea esi, [edi + 0xc]
push str._s_s
push esi
call fcn.00402967
add esp, 0x10
push esi
lea ecx, [ebp - 0x288]
call fcn.0040228a
mov esi, dword [ebp - 0x288]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esi - 0x10]
cmp eax, 0xffffffff
jne 0x4970c8
call fcn.004027b0
jmp 0x497109
test al, 0x10
jne 0x4970c1
call fcn.004027b0
push 0
push edi
call fcn.004915bd
test eax, eax
je 0x497109
lea esi, [ebx + 0x3b8]
mov ebx, dword [esi + 8]
test ebx, ebx
jge 0x4970ef
call fcn.004998d4
lea edi, [ebx + 1]
call fcn.00445c45
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 0x496f84
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, ebx
call fcn.00496af3
xor edi, edi
xor esi, esi
cmp esi, dword [ebx + 0x3c0]
jge 0x497159
lea ecx, [ebx + 0x3b8]
mov eax, esi
call fcn.00406f3a
cmp dword [eax], 0
je 0x497156
inc edi
inc esi
jmp 0x49713b
lea ecx, [ebx + 0x74]
test edi, edi
jle 0x49716b
push 1
call fcn.0049a70d
push 1
jmp 0x497174
push 0
call fcn.0049a70d
push 0
lea ecx, [ebx + 0x1dc]
call fcn.0049a70d
push ecx
mov ecx, esp
mov dword [ebp - 0x284], esp
push str.LoadBackups_completed
call fcn.004024df
call fcn.0045c866
pop ecx
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.004027b0
xor eax, eax
inc eax
jmp 0x4971e8
call fcn.004bedab
ret