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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x490], 0
push 0x103
push 0
lea eax, [ebp - 0x48f]
push eax
call fcn.005b02a0
add esp, 0xc
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea ecx, [ebp - 0x127]
push ecx
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x388], 0
push 0x13c
push 0
lea edx, [ebp - 0x384]
push edx
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 8], 0
mov word [ebp - 0x138], 0
xor eax, eax
mov dword [ebp - 0x136], eax
mov dword [ebp - 0x132], eax
mov dword [ebp - 0x12e], eax
mov word [ebp - 0x12a], ax
mov word [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov word [ebp - 0xa], cx
mov byte [ebp - 0x240], 0
push 0x103
push 0
lea edx, [ebp - 0x23f]
push edx
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4b0371
cmp dword [ebp + 0xc], 0
jne 0x4b0378
xor eax, eax
jmp 0x4b0c5f
mov eax, dword [ebp + 8]
push eax
call fcn.005b4690
add esp, 4
test eax, eax
jbe 0x4b039b
mov ecx, dword [ebp + 8]
push ecx
call fcn.005b4690
add esp, 4
cmp eax, 0x104
jb 0x4b03a2
xor eax, eax
jmp 0x4b0c5f
mov edx, dword [ebp + 0xc]
push edx
call fcn.005b4690
add esp, 4
test eax, eax
jbe 0x4b03c5
mov eax, dword [ebp + 0xc]
push eax
call fcn.005b4690
add esp, 4
cmp eax, 0x104
jb 0x4b03cc
xor eax, eax
jmp 0x4b0c5f
mov ecx, dword [ebp + 8]
push ecx
call fcn.004028ab
add esp, 4
test eax, eax
jne 0x4b03f3
mov edx, dword [ebp + 0xc]
push edx
call fcn.004028ab
add esp, 4
test eax, eax
jne 0x4b03f3
xor eax, eax
jmp 0x4b0c5f
mov eax, dword [ebp + 8]
push eax
call fcn.00401b77
add esp, 4
test eax, eax
jne 0x4b042f
push 0x1e61
mov ecx, dword [ebp + 8]
push ecx
call fcn.004023ec
add esp, 8
test eax, eax
jne 0x4b042f
mov edx, dword [ebp + 8]
push edx
call fcn.004012f8
add esp, 4
test eax, eax
je 0x4b042f
xor eax, eax
jmp 0x4b0c5f
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401b77
add esp, 4
test eax, eax
jne 0x4b046b
push 0x1e61
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004023ec
add esp, 8
test eax, eax
jne 0x4b046b
mov edx, dword [ebp + 0xc]
push edx
call fcn.004012f8
add esp, 4
test eax, eax
je 0x4b046b
xor eax, eax
jmp 0x4b0c5f
mov eax, dword [ebp + 8]
push eax
call fcn.005b4690
add esp, 4
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
jne 0x4b049e
mov eax, dword [ebp + 8]
push eax
push 0x6984b0
lea ecx, [ebp - 0x490]
push ecx
call fcn.005b6660
add esp, 0xc
jmp 0x4b04b6
mov edx, dword [ebp + 8]
push edx
push 0x6984b4
lea eax, [ebp - 0x490]
push eax
call fcn.005b6660
add esp, 0xc
push 0x2833
push 0x6984bc
lea ecx, [ebp - 0x138]
push ecx
call fcn.00402036
add esp, 0xc
push 0
lea edx, [ebp - 0x240]
push edx
call fcn.00401311
add esp, 8
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401041
add esp, 8
test eax, eax
je 0x4b0500
mov dword [ebp - 4], 1
jmp 0x4b0507
mov dword [ebp - 4], 0
lea edx, [ebp - 0x388]
push edx
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xffffffff
jne 0x4b0559
cmp dword [ebp + 0x14], 0
jne 0x4b053a
mov eax, 1
jmp 0x4b0c5f
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040230b
add esp, 0x14
jmp 0x4b0c5f
cmp dword [ebp - 8], 0
je 0x4b0595
call fcn.0040323d
sub eax, dword [ebp - 0x244]
cmp eax, 0x1388
jbe 0x4b0595
cmp dword [ebp + 0x18], 0
je 0x4b0595
mov edx, dword [ebp + 0x18]
push edx
call fcn.004020ef
add esp, 4
mov dword [ebp - 8], 0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
push eax
call fcn.005b4690
add esp, 4
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
jne 0x4b05cf
lea eax, [ebp - 0x35c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x6984c8
lea edx, [ebp - 0x490]
push edx
call fcn.005b6660
add esp, 0x10
jmp 0x4b05ee
lea eax, [ebp - 0x35c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x6984d0
lea edx, [ebp - 0x490]
push edx
call fcn.005b6660
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
call fcn.005b4690
add esp, 4
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
jne 0x4b0628
lea eax, [ebp - 0x35c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x6984d8
lea edx, [ebp - 0x128]
push edx
call fcn.005b6660
add esp, 0x10
jmp 0x4b0647
lea eax, [ebp - 0x35c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x6984e0
lea edx, [ebp - 0x128]
push edx
call fcn.005b6660
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4b0800
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x374]
push ecx
call fcn.00401938
add esp, 0xfffffff8
mov edx, esp
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0xc], ecx
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp - 0x138]
mov dword [edx], eax
mov ecx, dword [ebp - 0x134]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x130]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x12c]
mov dword [edx + 0xc], ecx
call fcn.004025d6
add esp, 0x20
test eax, eax
je 0x4b0800
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp - 0x138]
mov dword [edx], eax
mov ecx, dword [ebp - 0x134]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x130]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x12c]
mov dword [edx + 0xc], ecx
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0xc], ecx
call fcn.00401a00
add esp, 0x20
cmp eax, 0x927c0
jle 0x4b0800
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x4a4], edx
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x49c], ecx
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x498], edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x138]
mov dword [eax], ecx
mov edx, dword [ebp - 0x134]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x130]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x12c]
mov dword [eax + 0xc], edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
call fcn.00401a00
add esp, 0x20
mov dword [ebp - 0x494], eax
mov word [ebp - 0x498], 0
mov word [ebp - 0x49a], 0
lea eax, [ebp - 0x374]
push eax
lea ecx, [ebp - 0x4a4]
push ecx
call fcn.00402973
add esp, 8
push 0
push 0
lea edx, [ebp - 0x374]
push edx
push 0
push 0
lea eax, [ebp - 0x490]
push eax
call fcn.00401fb9
add esp, 0x18
mov eax, dword [ebp - 0x494]
cdq
mov ecx, 0x3e8
idiv ecx
push eax
call fcn.00401343
add esp, 4
push eax
lea edx, [ebp - 0x490]
push edx
push str.:2:TIME_DISCREPANCY__SyncFolders___had_to_adjust_the_timestamp_of___s__back_by__s_to_match_the_server_time_
call fcn.00401014
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x388]
push edx
call fcn.00402793
add esp, 0xc
test eax, eax
je 0x4b0bfd
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a8], 0
lea eax, [ebp - 0x35c]
push eax
push str._n__Syncing__s...
call fcn.004b5930
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4b0871
push 0x287c
push 0x698568
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004016ae
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.0040323d
mov dword [ebp - 0x244], eax
push 0x120
lea edx, [ebp - 0x490]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b08e4
lea eax, [ebp - 0x490]
push eax
call fcn.004012f8
add esp, 4
test eax, eax
jne 0x4b08e4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x120
lea ecx, [ebp - 0x490]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b08e4
push 0x698574
lea edx, [ebp - 0x490]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x698588
call fcn.00401014
add esp, 0x1c
push 0x120
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b096a
lea edx, [ebp - 0x128]
push edx
call fcn.004012f8
add esp, 4
test eax, eax
jne 0x4b096a
lea eax, [ebp - 0x128]
push eax
call fcn.004028ab
add esp, 4
test eax, eax
je 0x4b096a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x120
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b096a
push 0x698620
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_SetFileAttributes___s___FILE_ATTRIBUTE_COPY_PENDING__FILE_ATTRIBUTE_ARCHIVE__FAILED:__s
call fcn.00401014
add esp, 0x1c
push 0
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x490]
push edx
call fcn.0040190b
add esp, 0xc
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
jne 0x4b09f3
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x490]
push ecx
call fcn.0040190b
add esp, 0xc
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
jne 0x4b09f3
push 0x6986c8
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x490]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.:6:SyncFolders___s_____s_____s____d__encountered_a_problem:_CopyFileWithDates___s_____s___FAILED:__s
call fcn.00401014
add esp, 0x20
push 0x20
lea edx, [ebp - 0x490]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b0ac4
lea eax, [ebp - 0x490]
push eax
call fcn.004012f8
add esp, 4
test eax, eax
jne 0x4b0ac4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x20
lea ecx, [ebp - 0x490]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b0ac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4b0], eax
lea edx, [ebp - 0x490]
push edx
call fcn.004028ab
add esp, 4
test eax, eax
je 0x4b0a94
mov eax, dword [ebp - 0x4b0]
push eax
push 0x698740
lea ecx, [ebp - 0x490]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
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
call fcn.00401014
add esp, 0x20
jmp 0x4b0ac4
mov eax, dword [ebp - 0x4b0]
push eax
push 0x69880c
lea ecx, [ebp - 0x490]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
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.00401014
add esp, 0x20
cmp dword [ebp - 0x4ac], 0
jne 0x4b0ad9
mov dword [ebp - 0x4a8], 0x122
jmp 0x4b0ae3
mov dword [ebp - 0x4a8], 0x20
mov eax, dword [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b0be3
lea edx, [ebp - 0x128]
push edx
call fcn.004012f8
add esp, 4
test eax, eax
jne 0x4b0be3
lea eax, [ebp - 0x128]
push eax
call fcn.004028ab
add esp, 4
test eax, eax
je 0x4b0be3
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x4a8]
push ecx
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b0be3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4b4], eax
lea eax, [ebp - 0x128]
push eax
call fcn.004028ab
add esp, 4
test eax, eax
je 0x4b0bac
mov ecx, dword [ebp - 0x4b4]
push ecx
push 0x6988e0
mov edx, dword [ebp - 0x4a8]
push edx
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
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
call fcn.00401014
add esp, 0x24
jmp 0x4b0be3
mov edx, dword [ebp - 0x4b4]
push edx
push 0x698998
mov eax, dword [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x128]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
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.00401014
add esp, 0x24
mov eax, dword [ebp - 0x4a8]
and eax, 2
je 0x4b0bfd
lea ecx, [ebp - 0x128]
push ecx
call fcn.0040255e
add esp, 4
lea edx, [ebp - 0x388]
push edx
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4b0559
cmp dword [ebp - 8], 0
je 0x4b0c2b
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004020ef
add esp, 4
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x14], 0
jne 0x4b0c45
mov eax, 1
jmp 0x4b0c5f
mov eax, dword [ebp + 0x18]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040230b
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret