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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x492840]
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.0043dc10
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043dc10
push 0x140
lea eax, [ebp - 0x480]
push edi
push eax
call fcn.0043dc10
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.0043dc10
add esp, 0x30
test ebx, ebx
je 0x420c8b
test esi, esi
je 0x420c8b
push ebx
call fcn.004476a0
pop ecx
test eax, eax
je 0x420c8b
push ebx
call fcn.004476a0
pop ecx
cmp eax, 0x104
jae 0x420c8b
push esi
call fcn.004476a0
pop ecx
test eax, eax
je 0x420c8b
push esi
call fcn.004476a0
pop ecx
cmp eax, 0x104
jae 0x420c8b
push ebx
call fcn.0040bca2
pop ecx
test eax, eax
jne 0x42066d
push esi
call fcn.0040bca2
pop ecx
test eax, eax
je 0x420c8b
push ebx
call fcn.0040bc85
pop ecx
test eax, eax
jne 0x420698
push 0x1e61
push ebx
call fcn.0040b065
pop ecx
pop ecx
test eax, eax
jne 0x420698
push ebx
call fcn.0040d49e
pop ecx
test eax, eax
jne 0x420c8b
push esi
call fcn.0040bc85
pop ecx
test eax, eax
jne 0x4206c3
push 0x1e61
push esi
call fcn.0040b065
pop ecx
pop ecx
test eax, eax
jne 0x4206c3
push esi
call fcn.0040d49e
pop ecx
test eax, eax
jne 0x420c8b
push ebx
push ebx
call fcn.004476a0
pop ecx
mov edx, 0x46dea4
mov ecx, 0x46e818
cmp byte [eax + ebx - 1], 0x5c
lea eax, [ebp - 0x108]
cmove ecx, edx
push ecx
push eax
call fcn.00403b2c
push 0x2857
lea eax, [ebp - 0x320]
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push eax
call fcn.004380d8
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.0041e91e
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.0042ecfe
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 0x420764
cmp dword [ebp + 0x14], edi
je 0x420c7b
push dword [ebp + 0x18]
push edi
push dword [ebp - 0x488]
push ebx
push esi
call fcn.00420563
add esp, 0x14
jmp 0x420c8d
mov edi, dword [ebp - 0x488]
cmp dword [ebp - 0x48c], 0
je 0x4207a7
call fcn.00438ea7
sub eax, dword [ebp - 0x498]
cmp eax, 0x1388
jbe 0x4207a7
cmp dword [ebp + 0x18], 0
je 0x4207a7
push dword [ebp + 0x18]
call fcn.00421e68
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.004476a0
pop ecx
mov ecx, str._s_s
cmp byte [eax + ebx - 1], 0x5c
mov eax, 0x461d28
cmove ecx, eax
lea eax, [ebp - 0x108]
push ecx
push eax
call fcn.00403b2c
add esp, 0x10
lea eax, [ebp - 0x454]
push eax
push esi
push esi
call fcn.004476a0
pop ecx
mov ecx, str._s_s
cmp byte [eax + esi - 1], 0x5c
mov eax, 0x461d28
cmove ecx, eax
lea eax, [ebp - 0x20c]
push ecx
push eax
call fcn.00403b2c
add esp, 0x10
cmp dword [ebp - 0x4a0], 0
je 0x420924
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.004374ae
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.00438259
add esp, 0x20
test eax, eax
je 0x420918
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.00438d9e
add esp, 0x20
cmp eax, 0x927c0
jle 0x420918
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.00438d9e
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.004388f2
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.0040dd03
mov eax, esi
mov ecx, 0x3e8
cdq
add esp, 0x40
idiv ecx
push eax
call fcn.00438826
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.0040906e
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.004183da
add esp, 0xc
test eax, eax
je 0x420c3d
lea eax, [ebp - 0x454]
push eax
push str._n__Syncing__s...
call fcn.00422907
cmp dword [ebp - 0x48c], 0
pop ecx
pop ecx
jne 0x42097f
push 0x28a0
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push dword [ebp + 0x18]
call fcn.0041c3d2
add esp, 0xc
mov dword [ebp - 0x48c], eax
call fcn.00438ea7
mov dword [ebp - 0x498], eax
push 0x120
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4209e6
lea eax, [ebp - 0x108]
push eax
call fcn.0040d49e
pop ecx
test eax, eax
jne 0x4209e6
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 0x4209e6
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.0040906e
add esp, 0x1c
push 0x120
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x420a5e
lea eax, [ebp - 0x20c]
push eax
call fcn.0040d49e
pop ecx
test eax, eax
jne 0x420a5e
lea eax, [ebp - 0x20c]
push eax
call fcn.0040bca2
pop ecx
test eax, eax
je 0x420a5e
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 0x420a5e
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.0040906e
add esp, 0x1c
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040ae7f
add esp, 0xc
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x420ad3
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.0040ae7f
add esp, 0xc
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x420ad3
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.0040906e
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 0x420b62
lea eax, [ebp - 0x108]
push eax
call fcn.0040d49e
pop ecx
test eax, eax
jne 0x420b62
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 0x420b62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040bca2
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 0x420b55
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 0x420b5a
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.0040906e
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 0x420c27
lea eax, [ebp - 0x20c]
push eax
call fcn.0040d49e
pop ecx
test eax, eax
jne 0x420c27
lea eax, [ebp - 0x20c]
push eax
call fcn.0040bca2
pop ecx
test eax, eax
je 0x420c27
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 0x420c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040bca2
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 0x420c1a
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 0x420c1f
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.0040906e
add esp, 0x24
test byte [ebp - 0x484], 2
je 0x420c3d
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c8d3
pop ecx
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x49c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42076a
cmp dword [ebp - 0x48c], eax
je 0x420c69
push dword [ebp + 0x18]
call fcn.00421e68
pop ecx
push dword [ebp - 0x49c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x14], 0
jne 0x420c80
xor eax, eax
inc eax
jmp 0x420c8d
push dword [ebp + 0x18]
push 0
push edi
jmp 0x420755
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret