Function at 0x4af020
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 [0x808040]
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.0055fb40
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00552b00
lea eax, [edi + 0x284]
mov dword [esp + 0x14], 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 + 0x10], eax
lea eax, [edi + 0x30]
mov dword [esp + 0x1c], eax
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x18], edi
cmp byte [edi], 0
je 0x4af25b
push dword [esp + 0x10]
push dword [edi + 0x254]
call esi
test eax, eax
je 0x4af1e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x4af1fb
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.005e20d4
add esp, 4
lea ecx, [esp + 0x20]
push eax
push esi
call fcn.0055fe60
mov ecx, ebx
lea ebx, [esp + 0x20]
push ebx
call fcn.004b0840
test al, al
jne 0x4af1ca
mov edx, ebx
mov eax, dword [esp + 0x10]
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.004bc180
test bl, 0x10
mov edi, dword [esp + 0x18]
jne 0x4af362
and ebx, 0x10
shr ebx, 4
mov ecx, edi
push ebx
call fcn.004b0920
test al, al
mov ebx, esi
je 0x4af1c2
mov eax, dword [edi + 0x278]
cmp eax, 1
jne 0x4af1b9
cmp byte [edi + 0x277], 0
mov eax, dword [esp + 8]
js 0x4af3b8
cmp byte [esp + 0x2b], 0
mov ecx, ebx
jns 0x4af182
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
jne 0x4af1c2
lea ecx, [esp + 0x20]
call fcn.0055ff40
lea ecx, [esp + 0x30]
call fcn.00552b70
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005c6b46
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
test eax, eax
je 0x4af18f
jmp 0x4af3c3
mov ecx, dword [ebp + 8]
call fcn.0055ff40
mov ecx, ebx
call fcn.0055ff40
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [esp + 0x18]
jmp 0x4af0ab
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x4af0c8
mov byte [edi], 0
cmp dword [edi + 0x278], 0
jne 0x4af221
cmp byte [edi + 0x277], 0
js 0x4af23c
mov byte [edi + 0x277], 1
mov ecx, dword [esp + 8]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x4af0ab
cmp dword [edi + 0x27c], 0
je 0x4af0ab
jmp 0x4af3a4
mov dword [edi + 0x270], 1
mov ecx, dword [edi + 0x26c]
jmp 0x4af21b
mov ecx, dword [ebp + 8]
call fcn.0055fdd0
jmp 0x4af198
mov eax, dword [edi + 0x28c]
mov ecx, dword [edi + 0x290]
cmp eax, ecx
je 0x4af24e
mov esi, ebx
mov ebx, dword [edi + 0x288]
mov edx, 0
cmova edx, ebx
sub edx, eax
add edx, ecx
test edx, edx
jle 0x4af39e
add eax, edx
dec eax
xor edx, edx
div ebx
cmp edx, ecx
je 0x4af3a1
mov eax, dword [edi + 0x284]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0xc]
push eax
call fcn.0055ff60
mov ecx, dword [esp + 0x14]
call fcn.004af790
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
mov ebx, esi
jne 0x4af34a
movsx eax, byte [edi + 0x277]
mov edx, dword [esp + 8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jns 0x4af2f1
mov eax, dword [edi + 0x270]
mov edx, dword [edi + 0x26c]
test eax, eax
js 0x4af39c
sete cl
test edx, edx
setne ch
or ch, cl
je 0x4af39c
mov ecx, dword [esp + 0xc]
push eax
push edx
push ebx
call fcn.005616d0
cmp byte [esp + 0x2b], 0
mov eax, ebx
jns 0x4af322
mov eax, dword [esp + 0x20]
push 2
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x1c]
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.0055ff40
jmp 0x4af0c8
cmp eax, 1
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jne 0x4af3cd
mov ecx, dword [esp + 0xc]
push 1
push 0x77d266
jmp 0x4af30f
cmp byte [edi + 0x264], 1
jne 0x4af145
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x4af37a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x4af145
mov ecx, dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004af4d0
jmp 0x4af145
ud2
int3
int3
push eax
call fcn.004acce0
add esp, 4
mov dword [edi + 0x280], eax
jmp 0x4af24e
mov eax, dword [esp + 8]
mov eax, dword [eax]
jmp 0x4af175
call fcn.00645550
jmp 0x4af1c2
call fcn.00645550
lea ecx, [esp + 0x20]
call fcn.0055fdd0
jmp 0x4af315