Function at 0x403210
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
jmp 0x4741c7
push ebp
lea ebp, [esp - 0x420]
sub esp, 0x4a0
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x41c], eax
mov eax, dword [ebp + 0x428]
push ebx
push esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x42c]
push edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x430]
mov ebx, 0x103
push ebx
mov dword [ebp - 0x3c], eax
xor esi, esi
lea eax, [ebp + 0x319]
push esi
push eax
mov byte [ebp + 0x318], 0
call fcn.00508d00
push ebx
lea eax, [ebp + 0x215]
push esi
push eax
mov byte [ebp + 0x214], 0
call fcn.00508d00
push 0x13c
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 0x30], esi
call fcn.00508d00
xor eax, eax
mov word [ebp - 0x60], si
lea edi, [ebp - 0x5e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x70], si
lea edi, [ebp - 0x6e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [ebp + 0x111]
push esi
push eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov byte [ebp + 0x110], 0
call fcn.00508d00
mov edi, dword [ebp - 0x38]
add esp, 0x30
cmp edi, esi
je 0x474881
cmp dword [ebp - 0x34], esi
je 0x474881
push edi
call fcn.00508320
test eax, eax
pop ecx
jbe 0x474881
push edi
call fcn.00508320
inc ebx
cmp eax, ebx
pop ecx
jae 0x474881
push dword [ebp - 0x34]
call fcn.00508320
test eax, eax
pop ecx
jbe 0x474881
push dword [ebp - 0x34]
call fcn.00508320
cmp eax, ebx
pop ecx
jae 0x474881
push edi
call fcn.00402b5d
test eax, eax
pop ecx
jne 0x4742ee
push dword [ebp - 0x34]
call fcn.00402b5d
test eax, eax
pop ecx
je 0x474881
push edi
call fcn.004014d3
test eax, eax
pop ecx
mov ebx, 0x1e61
jne 0x47431a
push ebx
push edi
call fcn.0040291e
test eax, eax
pop ecx
pop ecx
jne 0x47431a
push edi
call fcn.00401096
test eax, eax
pop ecx
jne 0x474881
push dword [ebp - 0x34]
call fcn.004014d3
test eax, eax
pop ecx
jne 0x474347
push ebx
push dword [ebp - 0x34]
call fcn.0040291e
test eax, eax
pop ecx
pop ecx
jne 0x474347
push dword [ebp - 0x34]
call fcn.00401096
test eax, eax
pop ecx
jne 0x474881
push edi
call fcn.00508320
cmp byte [eax + edi - 1], 0x5c
pop ecx
push edi
lea eax, [ebp + 0x318]
jne 0x474363
push 0x5b3960
jmp 0x474368
push 0x5b9124
push eax
call fcn.0050dd60
add esp, 0xc
push 0x2833
lea eax, [ebp - 0x60]
push str..Network.c
push eax
call fcn.0040169a
lea eax, [ebp + 0x110]
push esi
push eax
call fcn.00402261
lea eax, [ebp + 0x110]
push eax
push dword [ebp - 0x34]
call fcn.004020db
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x4c], eax
jne 0x4743f0
cmp dword [ebp + 0x434], esi
jne 0x4743d5
xor eax, eax
inc eax
jmp 0x474883
push dword [ebp + 0x438]
push esi
push dword [ebp - 0x3c]
push edi
push dword [ebp - 0x34]
call fcn.00403210
add esp, 0x14
jmp 0x474883
mov ebx, str._GetLastError_
cmp dword [ebp - 0x44], esi
je 0x47442c
call fcn.00401e97
sub eax, dword [ebp - 0x48]
cmp eax, 0x1388
jbe 0x47442c
cmp dword [ebp + 0x438], esi
je 0x47442c
push dword [ebp + 0x438]
call fcn.0040317a
mov dword [ebp - 0x44], esi
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call fcn.00508320
cmp byte [eax + edi - 1], 0x5c
pop ecx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x318]
jne 0x47444c
push 0x586728
jmp 0x474451
push 0x59ad44
push eax
call fcn.0050dd60
add esp, 0x10
push dword [ebp - 0x34]
call fcn.00508320
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x34]
cmp byte [ecx + eax - 1], 0x5c
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp + 0x214]
jne 0x474481
push 0x586728
jmp 0x474486
push 0x59ad44
push eax
call fcn.0050dd60
add esp, 0x10
cmp dword [ebp - 0x50], esi
je 0x474574
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004013b1
push ecx
push ecx
mov edi, esp
lea esi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x60]
mov edi, esp
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.00401861
add esp, 0x20
test eax, eax
je 0x47456f
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x70]
mov edi, esp
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.0040141a
add esp, 0x20
cmp eax, 0x927c0
jle 0x47456f
lea esi, [ebp - 0x60]
lea edi, [ebp - 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x70]
mov edi, esp
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.0040141a
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x80]
xor esi, esi
push eax
mov word [ebp - 0x74], si
mov word [ebp - 0x76], si
call fcn.00401a32
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp + 0x318]
push esi
push eax
call fcn.00401659
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
add esp, 0x40
push eax
call fcn.004010af
push eax
lea eax, [ebp + 0x318]
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.004020c2
add esp, 0x10
mov edi, dword [ebp - 0x38]
xor esi, esi
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x34]
push eax
call fcn.00402ae5
add esp, 0xc
test eax, eax
je 0x47484d
lea eax, [ebp - 4]
push eax
push str._n__Syncing__s...
call fcn.0046b763
cmp dword [ebp - 0x44], esi
pop ecx
pop ecx
jne 0x4745c6
push 0x287c
push str..Network.c
push dword [ebp + 0x438]
call fcn.00401267
add esp, 0xc
mov dword [ebp - 0x44], eax
call fcn.00401e97
mov dword [ebp - 0x48], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x120
push esi
lea eax, [ebp + 0x318]
push eax
call edi
test eax, eax
jne 0x47462d
lea eax, [ebp + 0x318]
push eax
call fcn.00401096
test eax, eax
pop ecx
jne 0x47462d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp + 0x318]
push eax
call edi
test eax, eax
jne 0x47462d
push ebx
lea eax, [ebp + 0x318]
push eax
push dword [ebp + 0x434]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_SetFileAttributes___s___FILE_ATTRIBUTE_COPY_PENDING__FILE_ATTRIBUTE_ARCHIVE__FAILED:__s
call fcn.004020c2
add esp, 0x1c
push esi
lea eax, [ebp + 0x214]
push eax
call edi
test eax, eax
jne 0x47469a
lea eax, [ebp + 0x214]
push eax
call fcn.00401096
test eax, eax
pop ecx
jne 0x47469a
lea eax, [ebp + 0x214]
push eax
call fcn.00402b5d
test eax, eax
pop ecx
je 0x47469a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp + 0x214]
push eax
call edi
test eax, eax
jne 0x47469a
push ebx
lea eax, [ebp + 0x214]
push eax
push dword [ebp + 0x434]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_SetFileAttributes___s___FILE_ATTRIBUTE_COPY_PENDING__FILE_ATTRIBUTE_ARCHIVE__FAILED:__s
call fcn.004020c2
add esp, 0x1c
push 0
lea eax, [ebp + 0x214]
push eax
lea eax, [ebp + 0x318]
push eax
call fcn.00401398
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x47470b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp + 0x214]
push eax
lea eax, [ebp + 0x318]
push eax
call fcn.00401398
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x47470b
push ebx
lea eax, [ebp + 0x214]
push eax
lea eax, [ebp + 0x318]
push eax
push dword [ebp + 0x434]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_CopyFileWithDates___s_____s___FAILED:__s
call fcn.004020c2
add esp, 0x20
push 0x20
lea eax, [ebp + 0x318]
push eax
call edi
test eax, eax
jne 0x47478d
lea eax, [ebp + 0x318]
push eax
call fcn.00401096
test eax, eax
pop ecx
jne 0x47478d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x20
lea eax, [ebp + 0x318]
push eax
call edi
test eax, eax
jne 0x47478d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x318]
push eax
call fcn.00402b5d
pop ecx
push dword [ebp - 0x40]
test eax, eax
push ebx
lea eax, [ebp + 0x318]
push eax
push dword [ebp + 0x434]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
je 0x474780
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 0x474785
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.004020c2
add esp, 0x20
neg esi
sbb esi, esi
and esi, 0xfffffefe
add esi, 0x122
push esi
lea eax, [ebp + 0x214]
push eax
mov dword [ebp - 0x40], esi
call edi
test eax, eax
jne 0x474835
lea eax, [ebp + 0x214]
push eax
call fcn.00401096
test eax, eax
pop ecx
jne 0x474835
lea eax, [ebp + 0x214]
push eax
call fcn.00402b5d
test eax, eax
pop ecx
je 0x474835
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp + 0x214]
push eax
call edi
test eax, eax
jne 0x474835
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp + 0x214]
push eax
call fcn.00402b5d
pop ecx
push esi
push ebx
push dword [ebp - 0x40]
test eax, eax
lea eax, [ebp + 0x214]
push eax
push dword [ebp + 0x434]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
je 0x474828
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 0x47482d
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.004020c2
add esp, 0x24
test byte [ebp - 0x40], 2
je 0x474848
lea eax, [ebp + 0x214]
push eax
call fcn.00401825
pop ecx
mov edi, dword [ebp - 0x38]
xor esi, esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4743f5
cmp dword [ebp - 0x44], esi
je 0x474873
push dword [ebp + 0x438]
call fcn.0040317a
pop ecx
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4743c5
xor eax, eax
mov ecx, dword [ebp + 0x41c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x420
leave
ret