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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x4cc8c0]
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.00466ad0
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00466ad0
push 0x140
lea eax, [ebp - 0x480]
push edi
push eax
call fcn.00466ad0
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.00466ad0
add esp, 0x30
test ebx, ebx
je 0x4319f2
test esi, esi
je 0x4319f2
push ebx
call fcn.00470560
pop ecx
test eax, eax
je 0x4319f2
push ebx
call fcn.00470560
pop ecx
cmp eax, 0x104
jae 0x4319f2
push esi
call fcn.00470560
pop ecx
test eax, eax
je 0x4319f2
push esi
call fcn.00470560
pop ecx
cmp eax, 0x104
jae 0x4319f2
push ebx
call fcn.00410961
pop ecx
test eax, eax
jne 0x4313d4
push esi
call fcn.00410961
pop ecx
test eax, eax
je 0x4319f2
push ebx
call fcn.00410944
pop ecx
test eax, eax
jne 0x4313ff
push 0x1e61
push ebx
call fcn.0040fb2d
pop ecx
pop ecx
test eax, eax
jne 0x4313ff
push ebx
call fcn.0041210b
pop ecx
test eax, eax
jne 0x4319f2
push esi
call fcn.00410944
pop ecx
test eax, eax
jne 0x43142a
push 0x1e61
push esi
call fcn.0040fb2d
pop ecx
pop ecx
test eax, eax
jne 0x43142a
push esi
call fcn.0041210b
pop ecx
test eax, eax
jne 0x4319f2
push ebx
push ebx
call fcn.00470560
pop ecx
mov edx, 0x49e354
mov ecx, 0x49ecc8
cmp byte [eax + ebx - 1], 0x5c
lea eax, [ebp - 0x108]
cmove ecx, edx
push ecx
push eax
call fcn.0040401c
push 0x2836
lea eax, [ebp - 0x320]
push str.C:UsersOfficeDocumentsVisual_StudioPAULANetwork.c
push eax
call fcn.0045f310
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.0042f4e9
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.004529d5
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 0x4314cb
cmp dword [ebp + 0x14], edi
je 0x4319e2
push dword [ebp + 0x18]
push edi
push dword [ebp - 0x488]
push ebx
push esi
call fcn.004312ca
add esp, 0x14
jmp 0x4319f4
mov edi, dword [ebp - 0x488]
cmp dword [ebp - 0x48c], 0
je 0x43150e
call fcn.004609ba
sub eax, dword [ebp - 0x498]
cmp eax, 0x1388
jbe 0x43150e
cmp dword [ebp + 0x18], 0
je 0x43150e
push dword [ebp + 0x18]
call fcn.00432bc5
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.00470560
pop ecx
mov ecx, 0x49ecd0
cmp byte [eax + ebx - 1], 0x5c
mov eax, 0x48b250
cmove ecx, eax
lea eax, [ebp - 0x108]
push ecx
push eax
call fcn.0040401c
add esp, 0x10
lea eax, [ebp - 0x454]
push eax
push esi
push esi
call fcn.00470560
pop ecx
mov ecx, 0x49ecd0
cmp byte [eax + esi - 1], 0x5c
mov eax, 0x48b250
cmove ecx, eax
lea eax, [ebp - 0x20c]
push ecx
push eax
call fcn.0040401c
add esp, 0x10
cmp dword [ebp - 0x4a0], 0
je 0x43168b
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.0045e68d
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.0045f51b
add esp, 0x20
test eax, eax
je 0x43167f
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.0046087e
add esp, 0x20
cmp eax, 0x927c0
jle 0x43167f
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.0046087e
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.0045fd5f
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.00412c75
mov eax, esi
mov ecx, 0x3e8
cdq
add esp, 0x40
idiv ecx
push eax
call fcn.0045fc93
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.0040d511
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.00428972
add esp, 0xc
test eax, eax
je 0x4319a4
lea eax, [ebp - 0x454]
push eax
push str._n__Syncing__s...
call fcn.004339b2
cmp dword [ebp - 0x48c], 0
pop ecx
pop ecx
jne 0x4316e6
push 0x287f
push str.C:UsersOfficeDocumentsVisual_StudioPAULANetwork.c
push dword [ebp + 0x18]
call fcn.0042cf9f
add esp, 0xc
mov dword [ebp - 0x48c], eax
call fcn.004609ba
mov dword [ebp - 0x498], eax
push 0x120
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x43174d
lea eax, [ebp - 0x108]
push eax
call fcn.0041210b
pop ecx
test eax, eax
jne 0x43174d
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 0x43174d
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.0040d511
add esp, 0x1c
push 0x120
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4317c5
lea eax, [ebp - 0x20c]
push eax
call fcn.0041210b
pop ecx
test eax, eax
jne 0x4317c5
lea eax, [ebp - 0x20c]
push eax
call fcn.00410961
pop ecx
test eax, eax
je 0x4317c5
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 0x4317c5
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.0040d511
add esp, 0x1c
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040f4b3
add esp, 0xc
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x43183a
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.0040f4b3
add esp, 0xc
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x43183a
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.0040d511
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 0x4318c9
lea eax, [ebp - 0x108]
push eax
call fcn.0041210b
pop ecx
test eax, eax
jne 0x4318c9
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 0x4318c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x108]
push eax
call fcn.00410961
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 0x4318bc
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 0x4318c1
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.0040d511
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 0x43198e
lea eax, [ebp - 0x20c]
push eax
call fcn.0041210b
pop ecx
test eax, eax
jne 0x43198e
lea eax, [ebp - 0x20c]
push eax
call fcn.00410961
pop ecx
test eax, eax
je 0x43198e
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 0x43198e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00410961
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 0x431981
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 0x431986
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.0040d511
add esp, 0x24
test byte [ebp - 0x484], 2
je 0x4319a4
lea eax, [ebp - 0x20c]
push eax
call fcn.0041165b
pop ecx
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x49c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4314d1
cmp dword [ebp - 0x48c], eax
je 0x4319d0
push dword [ebp + 0x18]
call fcn.00432bc5
pop ecx
push dword [ebp - 0x49c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x14], 0
jne 0x4319e7
xor eax, eax
inc eax
jmp 0x4319f4
push dword [ebp + 0x18]
push 0
push edi
jmp 0x4314bc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret