Function at 0x46597a
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x104
mov dword [ebp - 0x488], eax
xor edi, edi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x494], esi
push edi
push eax
call fcn.004e4da0
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e4da0
push 0x140
lea eax, [ebp - 0x480]
push edi
push eax
call fcn.004e4da0
mov dword [ebp - 0x498], edi
xor eax, eax
mov dword [ebp - 0x48c], edi
lea edi, [ebp - 0x320]
stosd dword es:[edi], eax
push 0x104
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x330]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x310]
xor edi, edi
push edi
push eax
call fcn.004e4da0
add esp, 0x30
test ebx, ebx
je 0x4660a2
test esi, esi
je 0x4660a2
push ebx
call fcn.004ee800
pop ecx
test eax, eax
je 0x4660a2
push ebx
call fcn.004ee800
pop ecx
cmp eax, 0x104
jae 0x4660a2
push esi
call fcn.004ee800
pop ecx
test eax, eax
je 0x4660a2
push esi
call fcn.004ee800
pop ecx
cmp eax, 0x104
jae 0x4660a2
push ebx
call fcn.0042916f
pop ecx
test eax, eax
jne 0x465a84
push esi
call fcn.0042916f
pop ecx
test eax, eax
je 0x4660a2
push ebx
call fcn.00429152
pop ecx
test eax, eax
jne 0x465aaf
push 0x1e61
push ebx
call fcn.004280f8
pop ecx
pop ecx
test eax, eax
jne 0x465aaf
push ebx
call fcn.0042b86f
pop ecx
test eax, eax
jne 0x4660a2
push esi
call fcn.00429152
pop ecx
test eax, eax
jne 0x465ada
push 0x1e61
push esi
call fcn.004280f8
pop ecx
pop ecx
test eax, eax
jne 0x465ada
push esi
call fcn.0042b86f
pop ecx
test eax, eax
jne 0x4660a2
push ebx
push ebx
call fcn.004ee800
pop ecx
mov edx, 0x526fc0
mov ecx, 0x53f098
cmp byte [eax + ebx - 1], 0x5c
lea eax, [ebp - 0x108]
cmove ecx, edx
push ecx
push eax
call fcn.00404f28
push 0x2831
lea eax, [ebp - 0x320]
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push eax
call fcn.004c9210
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.0046366c
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.004a0f55
add esp, 0x28
mov dword [ebp - 0x4a0], eax
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x49c], eax
cmp eax, 0xffffffff
jne 0x465b7b
cmp dword [ebp + 0x14], edi
je 0x466092
push dword [ebp + 0x18]
push edi
push dword [ebp - 0x488]
push ebx
push esi
call fcn.0046597a
add esp, 0x14
jmp 0x4660a4
mov edi, dword [ebp - 0x488]
cmp dword [ebp - 0x48c], 0
je 0x465bbe
call fcn.004ca9ca
sub eax, dword [ebp - 0x498]
cmp eax, 0x1388
jbe 0x465bbe
cmp dword [ebp + 0x18], 0
je 0x465bbe
push dword [ebp + 0x18]
call fcn.0046733c
and dword [ebp - 0x48c], 0
mov eax, 0x3e8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x454]
push eax
push ebx
push ebx
call fcn.004ee800
pop ecx
mov ecx, 0x521854
cmp byte [eax + ebx - 1], 0x5c
mov eax, 0x50d2a0
cmove ecx, eax
lea eax, [ebp - 0x108]
push ecx
push eax
call fcn.00404f28
add esp, 0x10
lea eax, [ebp - 0x454]
push eax
push esi
push esi
call fcn.004ee800
pop ecx
mov ecx, 0x521854
cmp byte [eax + esi - 1], 0x5c
mov eax, 0x50d2a0
cmove ecx, eax
lea eax, [ebp - 0x20c]
push ecx
push eax
call fcn.00404f28
add esp, 0x10
cmp dword [ebp - 0x4a0], 0
je 0x465d3b
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.004c84f4
push ecx
push ecx
mov edi, esp
lea esi, [ebp - 0x330]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x320]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004c9469
add esp, 0x20
test eax, eax
je 0x465d2f
sub esp, 0x10
lea esi, [ebp - 0x320]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x330]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004ca88e
add esp, 0x20
cmp eax, 0x927c0
jle 0x465d2f
lea esi, [ebp - 0x320]
sub esp, 0x10
lea edi, [ebp - 0x340]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x320]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x330]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004ca88e
mov esi, eax
xor eax, eax
mov dword [ebp - 0x336], eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.004c9d6f
xor ecx, ecx
lea eax, [ebp - 0x46c]
push ecx
push ecx
push eax
push ecx
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.0042c647
mov eax, esi
mov ecx, 0x3e8
cdq
add esp, 0x40
idiv ecx
push eax
call fcn.004c9ca3
push eax
lea eax, [ebp - 0x108]
push eax
push str.:2:TIME_DISCREPANCY__SyncFolders___had_to_adjust_the_timestamp_of___s__back_by__s_to_match_the_server_time_
call fcn.004255b9
add esp, 0x10
mov esi, dword [ebp - 0x494]
mov edi, dword [ebp - 0x488]
push edi
lea eax, [ebp - 0x480]
push esi
push eax
call fcn.0045b5d3
add esp, 0xc
test eax, eax
je 0x466054
lea eax, [ebp - 0x454]
push eax
push str._n__Syncing__s...
call fcn.0046816f
cmp dword [ebp - 0x48c], 0
pop ecx
pop ecx
jne 0x465d96
push 0x287a
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push dword [ebp + 0x18]
call fcn.00460f18
add esp, 0xc
mov dword [ebp - 0x48c], eax
call fcn.004ca9ca
mov dword [ebp - 0x498], eax
push 0x120
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x465dfd
lea eax, [ebp - 0x108]
push eax
call fcn.0042b86f
pop ecx
test eax, eax
jne 0x465dfd
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x120
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x465dfd
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x14]
push edi
push esi
push ebx
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_SetFileAttributes___s___FILE_ATTRIBUTE_COPY_PENDING__FILE_ATTRIBUTE_ARCHIVE__FAILED:__s
call fcn.004255b9
add esp, 0x1c
push 0x120
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x465e75
lea eax, [ebp - 0x20c]
push eax
call fcn.0042b86f
pop ecx
test eax, eax
jne 0x465e75
lea eax, [ebp - 0x20c]
push eax
call fcn.0042916f
pop ecx
test eax, eax
je 0x465e75
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x120
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x465e75
push str._GetLastError_
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push edi
push esi
push ebx
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_SetFileAttributes___s___FILE_ATTRIBUTE_COPY_PENDING__FILE_ATTRIBUTE_ARCHIVE__FAILED:__s
call fcn.004255b9
add esp, 0x1c
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00427967
add esp, 0xc
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x465eea
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00427967
add esp, 0xc
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x465eea
push str._GetLastError_
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x14]
push edi
push esi
push ebx
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_CopyFileWithDates___s_____s___FAILED:__s
call fcn.004255b9
add esp, 0x20
push 0x20
pop eax
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x465f79
lea eax, [ebp - 0x108]
push eax
call fcn.0042b86f
pop ecx
test eax, eax
jne 0x465f79
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x20
pop eax
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x465f79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042916f
pop ecx
push dword [ebp - 0x484]
test eax, eax
lea eax, [ebp - 0x108]
push str._GetLastError_
push eax
push dword [ebp + 0x14]
push edi
push esi
push ebx
je 0x465f6c
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_SetFileAttributes___s___FILE_ATTRIBUTE_ARCHIVE__FAILED_to_RESET_the_source_files_attributes___NOTE_the_file_DOES_exist:__s_ld
jmp 0x465f71
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_SetFileAttributes___s___FILE_ATTRIBUTE_ARCHIVE__FAILED_to_RESET_the_source_files_attributes___NOTE_the_file_DOES_NOT_exist:__s_ld
call fcn.004255b9
add esp, 0x20
cmp dword [ebp - 0x490], 0
mov eax, 0x122
push 0x20
pop ecx
cmovne eax, ecx
push eax
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x46603e
lea eax, [ebp - 0x20c]
push eax
call fcn.0042b86f
pop ecx
test eax, eax
jne 0x46603e
lea eax, [ebp - 0x20c]
push eax
call fcn.0042916f
pop ecx
test eax, eax
je 0x46603e
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x484]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x46603e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042916f
pop ecx
push dword [ebp - 0x490]
test eax, eax
lea eax, [ebp - 0x20c]
push str._GetLastError_
push dword [ebp - 0x484]
push eax
push dword [ebp + 0x14]
push edi
push esi
push ebx
je 0x466031
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_SetFileAttributes___s____ld__FAILED_to_RESET_the_dest_files_attributes__NOTE_the_file_DOES_exist:__s_ld
jmp 0x466036
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_SetFileAttributes___s____ld__FAILED_to_RESET_the_dest_files_attributes__NOTE_the_file_DOES_NOT_exist:__s_ld
call fcn.004255b9
add esp, 0x24
test byte [ebp - 0x484], 2
je 0x466054
lea eax, [ebp - 0x20c]
push eax
call fcn.00429e69
pop ecx
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x49c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x465b81
cmp dword [ebp - 0x48c], eax
je 0x466080
push dword [ebp + 0x18]
call fcn.0046733c
pop ecx
push dword [ebp - 0x49c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x14], 0
jne 0x466097
xor eax, eax
inc eax
jmp 0x4660a4
push dword [ebp + 0x18]
push 0
push edi
jmp 0x465b6c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret