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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x496980]
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.00440bf0
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00440bf0
push 0x140
lea eax, [ebp - 0x480]
push edi
push eax
call fcn.00440bf0
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.00440bf0
add esp, 0x30
test ebx, ebx
je 0x422aa2
test esi, esi
je 0x422aa2
push ebx
call fcn.0044a680
pop ecx
test eax, eax
je 0x422aa2
push ebx
call fcn.0044a680
pop ecx
cmp eax, 0x104
jae 0x422aa2
push esi
call fcn.0044a680
pop ecx
test eax, eax
je 0x422aa2
push esi
call fcn.0044a680
pop ecx
cmp eax, 0x104
jae 0x422aa2
push ebx
call fcn.0041007a
pop ecx
test eax, eax
jne 0x422484
push esi
call fcn.0041007a
pop ecx
test eax, eax
je 0x422aa2
push ebx
call fcn.0041005d
pop ecx
test eax, eax
jne 0x4224af
push 0x1e61
push ebx
call fcn.0040f36d
pop ecx
pop ecx
test eax, eax
jne 0x4224af
push ebx
call fcn.004116f7
pop ecx
test eax, eax
jne 0x422aa2
push esi
call fcn.0041005d
pop ecx
test eax, eax
jne 0x4224da
push 0x1e61
push esi
call fcn.0040f36d
pop ecx
pop ecx
test eax, eax
jne 0x4224da
push esi
call fcn.004116f7
pop ecx
test eax, eax
jne 0x422aa2
push ebx
push ebx
call fcn.0044a680
pop ecx
mov edx, 0x46f9dc
mov ecx, 0x470350
cmp byte [eax + ebx - 1], 0x5c
lea eax, [ebp - 0x108]
cmove ecx, edx
push ecx
push eax
call fcn.00404d0d
push 0x2838
lea eax, [ebp - 0x320]
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push eax
call fcn.004352f8
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.004207c2
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.0042f0d8
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 0x42257b
cmp dword [ebp + 0x14], edi
je 0x422a92
push dword [ebp + 0x18]
push edi
push dword [ebp - 0x488]
push ebx
push esi
call fcn.0042237a
add esp, 0x14
jmp 0x422aa4
mov edi, dword [ebp - 0x488]
cmp dword [ebp - 0x48c], 0
je 0x4225be
call fcn.00435f53
sub eax, dword [ebp - 0x498]
cmp eax, 0x1388
jbe 0x4225be
cmp dword [ebp + 0x18], 0
je 0x4225be
push dword [ebp + 0x18]
call fcn.00423c9b
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.0044a680
pop ecx
mov ecx, 0x470358
cmp byte [eax + ebx - 1], 0x5c
mov eax, 0x465c7c
cmove ecx, eax
lea eax, [ebp - 0x108]
push ecx
push eax
call fcn.00404d0d
add esp, 0x10
lea eax, [ebp - 0x454]
push eax
push esi
push esi
call fcn.0044a680
pop ecx
mov ecx, 0x470358
cmp byte [eax + esi - 1], 0x5c
mov eax, 0x465c7c
cmove ecx, eax
lea eax, [ebp - 0x20c]
push ecx
push eax
call fcn.00404d0d
add esp, 0x10
cmp dword [ebp - 0x4a0], 0
je 0x42273b
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.004346cb
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.00435446
add esp, 0x20
test eax, eax
je 0x42272f
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.00435e49
add esp, 0x20
cmp eax, 0x927c0
jle 0x42272f
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.00435e49
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.0043599d
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.00411f52
mov eax, esi
mov ecx, 0x3e8
cdq
add esp, 0x40
idiv ecx
push eax
call fcn.004358d1
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.0040d324
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.0041a0ee
add esp, 0xc
test eax, eax
je 0x422a54
lea eax, [ebp - 0x454]
push eax
push str._n__Syncing__s...
call fcn.00424a86
cmp dword [ebp - 0x48c], 0
pop ecx
pop ecx
jne 0x422796
push 0x2881
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push dword [ebp + 0x18]
call fcn.0041e274
add esp, 0xc
mov dword [ebp - 0x48c], eax
call fcn.00435f53
mov dword [ebp - 0x498], eax
push 0x120
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4227fd
lea eax, [ebp - 0x108]
push eax
call fcn.004116f7
pop ecx
test eax, eax
jne 0x4227fd
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 0x4227fd
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.0040d324
add esp, 0x1c
push 0x120
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x422875
lea eax, [ebp - 0x20c]
push eax
call fcn.004116f7
pop ecx
test eax, eax
jne 0x422875
lea eax, [ebp - 0x20c]
push eax
call fcn.0041007a
pop ecx
test eax, eax
je 0x422875
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 0x422875
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.0040d324
add esp, 0x1c
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040f070
add esp, 0xc
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x4228ea
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.0040f070
add esp, 0xc
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x4228ea
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.0040d324
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 0x422979
lea eax, [ebp - 0x108]
push eax
call fcn.004116f7
pop ecx
test eax, eax
jne 0x422979
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 0x422979
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x108]
push eax
call fcn.0041007a
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 0x42296c
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 0x422971
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.0040d324
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 0x422a3e
lea eax, [ebp - 0x20c]
push eax
call fcn.004116f7
pop ecx
test eax, eax
jne 0x422a3e
lea eax, [ebp - 0x20c]
push eax
call fcn.0041007a
pop ecx
test eax, eax
je 0x422a3e
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 0x422a3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041007a
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 0x422a31
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 0x422a36
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.0040d324
add esp, 0x24
test byte [ebp - 0x484], 2
je 0x422a54
lea eax, [ebp - 0x20c]
push eax
call fcn.00410cab
pop ecx
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x49c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x422581
cmp dword [ebp - 0x48c], eax
je 0x422a80
push dword [ebp + 0x18]
call fcn.00423c9b
pop ecx
push dword [ebp - 0x49c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x14], 0
jne 0x422a97
xor eax, eax
inc eax
jmp 0x422aa4
push dword [ebp + 0x18]
push 0
push edi
jmp 0x42256c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f5c5
leave
ret