Function at 0x4a8d4b
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2d4
mov eax, 0x56e031
call fcn.00513d8b
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x58f45c
push eax
mov dword [ebp - 0x2cc], eax
mov esi, ebx
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x2d4], esi
push eax
mov dword [ebp - 0x2d0], esi
call fcn.004476cd
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
push 7
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x2c], ax
inc eax
cmp dword [ebp - 0x48], ecx
mov dword [ebp - 0x2d8], eax
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], al
lea eax, [ebp - 0x5c]
cmova eax, dword [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x2e0], edi
cmp edi, 0xffffffff
je 0x4a8f60
mov byte [ebp - 4], 2
test byte [ebp - 0x2c4], 0x10
je 0x4a8f26
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x44]
call fcn.00450c25
push 0x58f464
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.004aa6f7
test eax, eax
je 0x4a8f1a
push 0x58f468
lea ecx, [ebp - 0x44]
call fcn.004aa6f7
test eax, eax
je 0x4a8f1a
cmp dword [ebp - 0x34], 8
jbe 0x4a8f1a
push str.Resource
push 8
push ebx
lea ecx, [ebp - 0x44]
call fcn.004aa69b
test eax, eax
jne 0x4a8f1a
cmp dword [ebp - 0x1c], eax
je 0x4a8e58
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004aa66d
test eax, eax
jns 0x4a8ec9
push 0x58f350
push dword [ebp - 0x2cc]
lea eax, [ebp - 0x74]
push eax
call fcn.004476cd
add esp, 0xc
mov ecx, eax
sub esp, 0x18
mov byte [ebp - 4], 4
or esi, 1
mov dword [ebp - 0x2dc], esp
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2d0], esi
push dword [ebp - 0x34]
cmova eax, dword [ebp - 0x44]
push eax
call fcn.00455975
mov ecx, dword [ebp - 0x2dc]
push eax
call fcn.004a86da
or esi, 2
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x2d0], esi
call fcn.004a9d4a
add esp, 0x18
mov byte [ebp - 0x2c5], 1
test al, al
jne 0x4a8ecf
mov byte [ebp - 0x2c5], bl
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 4], 3
test al, 1
je 0x4a8ef1
and eax, 0xfffffffe
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x2d4], eax
call fcn.0045556e
cmp byte [ebp - 0x2c5], 0
je 0x4a8f06
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004a8998
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0045556e
mov esi, dword [ebp - 0x2d4]
jmp 0x4a8f26
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0045556e
lea eax, [ebp - 0x2c4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a8dd7
inc eax
jmp 0x4a8f56
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x1c], 0
jbe 0x4a8ff3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push 0x58f350
push eax
call fcn.004a7f37
add esp, 0xc
mov ecx, dword [ebp - 0x2cc]
push eax
mov byte [ebp - 4], 6
call fcn.004aa56e
lea ecx, [ebp - 0x74]
call fcn.0045556e
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], bl
cmp eax, 7
jbe 0x4a904f
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], ecx
mov byte [ebp - 4], 7
cmp eax, 0x1000
jb 0x4a8fe8
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.004543c6
mov eax, dword [ebp - 0x2d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2cc]
push eax
push ecx
call fcn.00513968
pop ecx
pop ecx
jmp 0x4a904f
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], bl
cmp eax, 7
jbe 0x4a9049
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], ecx
mov byte [ebp - 4], 8
cmp eax, 0x1000
jb 0x4a9040
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.004543c6
mov eax, dword [ebp - 0x2d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2cc]
push eax
push ecx
call fcn.00513968
pop ecx
pop ecx
mov byte [ebp - 0x2d8], bl
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0045556e
mov al, byte [ebp - 0x2d8]
call fcn.00513cdd
ret