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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, ecx
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x30]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x20]
push 0x8b
push str....._base_files_file_enumerator_win.cc
push str.Next
push ebx
call fcn.005613a0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.005546a0
lea eax, [edi + 0x284]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x258]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x26c]
mov dword [esp + 8], eax
lea eax, [edi + 4]
mov dword [esp + 0x18], eax
lea eax, [edi + 0x30]
mov dword [esp + 0x1c], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], edi
cmp byte [edi], 0
je 0x4aeeff
push dword [esp + 0x18]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4aeedb
call esi
cmp dword [edi + 0x254], 0xffffffff
je 0x4aef19
mov ebx, edi
xor edi, edi
dec edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0x1c]
push esi
call fcn.005e54a4
add esp, 4
lea ecx, [esp + 0x20]
push eax
push esi
call fcn.00561710
mov ecx, ebx
lea ebx, [esp + 0x20]
push ebx
call fcn.004b04e0
test al, al
jne 0x4aeec5
mov edx, ebx
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov ecx, dword [esp + 0xc]
mov esi, edx
push edx
push eax
call fcn.004bbb10
test bl, 0x10
mov edi, dword [esp + 0x14]
jne 0x4aef6c
and ebx, 0x10
shr ebx, 4
mov ecx, edi
push ebx
call fcn.004b05c0
test al, al
mov ebx, esi
je 0x4aeebd
mov eax, dword [edi + 0x278]
cmp eax, 1
jne 0x4aeef6
cmp byte [edi + 0x277], 0
mov eax, dword [esp + 8]
js 0x4af0c0
cmp byte [esp + 0x2b], 0
mov ecx, ebx
jns 0x4aee86
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
jne 0x4aeebd
lea ecx, [esp + 0x20]
call fcn.005617f0
lea ecx, [esp + 0x30]
call fcn.00554710
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005c9f16
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [ebp + 8]
call fcn.005617f0
mov ecx, ebx
call fcn.005617f0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x14]
jmp 0x4aedab
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x4aedcc
test eax, eax
je 0x4aee93
jmp 0x4af0d6
mov eax, dword [edi + 0x28c]
mov ecx, dword [edi + 0x290]
cmp eax, ecx
jne 0x4aef7e
mov ecx, dword [ebp + 8]
call fcn.00561680
jmp 0x4aee9c
mov byte [edi], 0
cmp dword [edi + 0x278], 0
jne 0x4aef3f
cmp byte [edi + 0x277], 0
js 0x4aef5a
mov byte [edi + 0x277], 1
mov ecx, dword [esp + 8]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x4aedab
cmp dword [edi + 0x27c], 0
je 0x4aedab
jmp 0x4af0ac
mov dword [edi + 0x270], 1
mov ecx, dword [edi + 0x26c]
jmp 0x4aef39
cmp byte [edi + 0x264], 1
jne 0x4aee45
jmp 0x4af144
mov esi, ebx
mov ebx, dword [edi + 0x288]
mov edx, 0
cmova edx, ebx
sub edx, eax
add edx, ecx
test edx, edx
jle 0x4af0a3
add eax, edx
dec eax
xor edx, edx
div ebx
cmp edx, ecx
je 0x4af0a6
mov eax, dword [edi + 0x284]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0xc]
push eax
call fcn.00561810
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x28c], eax
je 0x4af0a9
mov ebx, esi
test eax, eax
je 0x4af0cb
lea edx, [eax - 1]
mov dword [edi + 0x290], edx
mov ecx, dword [esp + 0x10]
push eax
push edx
call fcn.004af180
mov eax, dword [edi + 0x288]
cmp eax, 5
jae 0x4af0f3
xor eax, eax
dec eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x278]
test eax, eax
jne 0x4af089
movsx eax, byte [edi + 0x277]
mov edx, dword [esp + 8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jns 0x4af038
mov eax, dword [edi + 0x270]
mov edx, dword [edi + 0x26c]
test eax, eax
js 0x4af0a1
sete cl
test edx, edx
setne ch
or ch, cl
je 0x4af0a1
mov ecx, dword [esp + 0xc]
push eax
push edx
push ebx
call fcn.00562f80
cmp byte [esp + 0x2b], 0
mov eax, ebx
jns 0x4af061
mov eax, dword [esp + 0x20]
push 2
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x24]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [edi + 0x254], eax
mov byte [edi], 1
mov ecx, ebx
call fcn.005617f0
jmp 0x4aedcc
cmp eax, 1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4af0e0
mov ecx, dword [esp + 0xc]
push 1
push 0x783326
jmp 0x4af04e
ud2
int3
int3
int3
push eax
call fcn.004ac7f0
add esp, 4
mov dword [edi + 0x280], eax
jmp 0x4aef0f
mov eax, dword [esp + 8]
mov eax, dword [eax]
jmp 0x4aee79
mov eax, dword [edi + 0x288]
jmp 0x4aefdb
call fcn.00649760
jmp 0x4aeebd
call fcn.00649760
lea ecx, [esp + 0x20]
call fcn.00561680
jmp 0x4af054
mov edx, dword [edi + 0x28c]
mov ebx, dword [edi + 0x290]
xor ecx, ecx
cmp edx, ebx
cmova ecx, eax
sub ecx, edx
add ecx, ebx
mov ebx, esi
dec eax
mov edx, eax
sub edx, ecx
cmp edx, ecx
jb 0x4aeffe
mov ebx, ecx
shr ebx, 2
add ebx, ecx
cmp ebx, 4
mov edx, 3
cmovae edx, ebx
mov ebx, esi
cmp edx, eax
jae 0x4aeffe
mov ecx, dword [esp + 0x10]
push edx
call fcn.006434e0
jmp 0x4aeffe
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x4af14f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
mov edi, dword [esp + 0x14]
jb 0x4aee45
mov ecx, dword [esp + 0x10]
push dword [ebp + 8]
call fcn.004af270
jmp 0x4aee45