Function at 0x4b1006
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x42c]
sub esp, 0x5ac
mov byte [ebp - 0x58d], al
lea eax, [ebp - 0x57c]
mov dword [esp], eax
call fcn.004a88cf
mov eax, dword [ebp - 0x57c]
mov dword [esp + 4], str._s
mov dword [esp], ebx
add eax, 4
mov dword [esp + 8], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x56c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x58c], eax
push ecx
push ecx
test eax, eax
je 0x4b1334
lea esi, [ebp - 0x540]
lea ecx, [ebp - 0x578]
mov dword [esp], esi
call fcn.004c664a
lea ecx, [ebp - 0x578]
push eax
mov dword [esp + 4], 0
mov dword [esp], 0x2d
call fcn.0051d03c
push edx
push edx
cmp eax, 0xffffffff
je 0x4b10dd
mov dword [esp + 8], eax
lea eax, [ebp - 0x578]
lea ebx, [ebp - 0x22c]
mov dword [esp], eax
mov ecx, ebx
mov dword [esp + 4], 0
call fcn.004c6ff0
lea ecx, [ebp - 0x578]
sub esp, 0xc
mov dword [esp], ebx
call fcn.004c69a8
mov ecx, ebx
push edi
call fcn.004c641a
lea eax, [ebp - 0x578]
mov dword [esp], eax
call fcn.004a8da8
test eax, eax
jne 0x4b1132
lea ecx, [ebp - 0x578]
call fcn.004c641a
lea eax, [ebp - 0x56c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ecx
push ecx
test eax, eax
jne 0x4b106c
mov eax, dword [ebp - 0x58c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push eax
jmp 0x4b1334
mov eax, dword [ebp - 0x57c]
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x42c]
mov dword [esp + 4], str._s_s
add eax, 4
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_sprintf
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
test al, 0x10
je 0x4b10ef
cmp byte [ebp - 0x58d], 0
mov eax, esi
jne 0x4b1322
lea ebx, [ebp - 0x22c]
mov dword [esp + 8], esi
mov dword [esp + 4], str._s_system.crc
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], ebx
call edi
sub esp, 0x1c
mov edx, eax
test eax, eax
jne 0x4b1280
mov dword [esp + 8], esi
mov dword [esp + 4], str._s_routeros.crc
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], ebx
call edi
sub esp, 0x1c
mov edx, eax
test eax, eax
jne 0x4b1280
mov dword [esp + 8], esi
mov dword [esp + 4], str._s_roteros.crc
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], ebx
call edi
sub esp, 0x1c
mov edx, eax
test eax, eax
je 0x4b10ef
lea ebx, [ebp - 0x574]
mov dword [esp], edx
mov dword [ebp - 0x594], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, dword [ebp - 0x594]
sub esp, 0x10
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], edx
je 0x4b132c
call eax
lea edi, [ebp - 0x57e]
lea eax, [ebp - 0x582]
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push ecx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push eax
lea eax, [ebp - 0x580]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
movzx eax, word [ebp - 0x580]
movzx edx, word [ebp - 0x582]
sub esp, 0xc
sub eax, edx
cmp eax, 0x1f
jle 0x4b10ef
lea eax, [ebp - 0x42c]
call fcn.004b0b6a
jmp 0x4b10ef
call eax
push edx
jmp 0x4b10ef
lea ecx, [ebp - 0x57c]
call fcn.004c641a
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret