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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov edi, ecx
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [esp + 0x68], eax
lea ebx, [esp + 0x20]
push 0x86
push str..._.._base_files_file_enumerator_win.cc
push str.Next
push ebx
call fcn.00472ef0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.0047d4a0
lea eax, [edi + 4]
mov dword [esp + 8], eax
lea eax, [edi + 0x284]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x258]
mov dword [esp + 4], eax
lea eax, [edi + 0x26c]
mov dword [esp], eax
lea eax, [edi + 0x30]
mov dword [esp + 0x10], eax
jmp 0x49175f
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x491a73
lea ecx, [esp + 0x14]
call fcn.0046ee40
mov ecx, ebx
call fcn.0046ee40
cmp byte [edi], 0
je 0x4917a0
push dword [esp + 8]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4918d1
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x4918d1
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x28c], eax
je 0x491aa3
test eax, eax
mov ecx, dword [edi + 0x288]
cmove eax, ecx
add eax, 0xffffffff
cmp ecx, eax
jb 0x491acd
lea eax, [eax + eax*2]
shl eax, 2
add eax, dword [edi + 0x284]
mov ecx, dword [esp + 4]
push eax
call fcn.0046ee60
mov ecx, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
test edx, edx
je 0x491808
lea eax, [edx - 1]
mov dword [edi + 0x290], eax
cmp ecx, edx
jb 0x491ad6
cmp ecx, eax
jae 0x49181b
jmp 0x491ad0
lea eax, [ecx - 1]
mov dword [edi + 0x290], eax
mov edx, ecx
cmp ecx, eax
jb 0x491ad0
cmp edx, 0x80000000
je 0x491ad3
mov esi, dword [esp + 0xc]
mov ecx, dword [esi]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
call fcn.0046ee40
mov ecx, esi
call fcn.00491e90
mov eax, dword [edi + 0x278]
test eax, eax
je 0x49185b
cmp eax, 1
jne 0x491883
mov ecx, dword [esp + 4]
push 1
push 0x642946
jmp 0x49187b
movzx eax, byte [edi + 0x277]
mov edx, dword [esp]
test al, al
jns 0x491875
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x270]
mov ecx, dword [esp + 4]
push eax
push edx
push ebx
call fcn.0046fbd0
jmp 0x49188a
mov ecx, ebx
call fcn.0046ed20
call fcn.00488190
cmp byte [esp + 0x2b], 0
mov ecx, ebx
jns 0x49189c
mov ecx, dword [esp + 0x20]
cmp eax, 4
jl 0x4918b6
push 2
push 0
push 0
push dword [esp + 0x14]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x4918c1
push dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi + 0x254], eax
mov byte [edi], 1
mov ecx, ebx
call fcn.0046ee40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x491900
mov eax, dword [esp + 0x10]
cmp word [eax], 0
je 0x491920
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 1]
cmp word [edi + ecx*2 + 0x32], 0
mov ecx, eax
jne 0x4918f0
jmp 0x491922
mov esi, eax
mov byte [edi], 0
cmp dword [edi + 0x278], 0
je 0x4919db
cmp esi, 0x12
je 0x49175f
jmp 0x4919f1
xor eax, eax
mov ecx, ebx
push eax
push dword [esp + 0x14]
call fcn.0046ed80
mov ecx, edi
push ebx
call fcn.004ab580
test al, al
jne 0x491758
mov eax, ebx
mov ebx, dword [edi + 4]
mov ecx, dword [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00470540
test bl, 0x10
je 0x491a20
cmp byte [edi + 0x264], 0
je 0x491a20
cmp byte [esp + 0x1f], 0
lea eax, [esp + 0x14]
jns 0x491977
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x491a20
mov ecx, dword [esp + 0xc]
push 1
call fcn.00491bc0
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x288], eax
jb 0x491ad9
lea ecx, [eax + eax*2]
shl ecx, 2
add ecx, dword [edi + 0x284]
lea eax, [esp + 0x14]
push eax
call fcn.0046ed40
mov eax, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
lea ecx, [eax - 1]
cmp edx, ecx
jne 0x491a03
mov dword [edi + 0x290], 0
jmp 0x491a0e
mov ecx, dword [esp]
push 0x642946
call fcn.0046930c
cmp esi, 0x12
je 0x49175f
cmp dword [edi + 0x27c], 0
je 0x49175f
jmp 0x491a94
mov esi, edx
inc esi
mov dword [edi + 0x290], esi
jne 0x491a10
mov edx, ecx
cmp eax, edx
jb 0x491adc
nop dword [eax + eax]
and ebx, 0x10
shr ebx, 4
mov ecx, edi
push ebx
call fcn.004ab650
test al, al
lea ebx, [esp + 0x20]
je 0x49174f
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x491a4f
test eax, eax
jne 0x49174f
jmp 0x491a73
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
jns 0x491a5d
mov eax, dword [esp]
mov eax, dword [eax]
cmp byte [esp + 0x2b], 0
mov ecx, ebx
jns 0x49173e
mov ecx, dword [esp + 0x20]
jmp 0x49173e
lea esi, [esp + 0x14]
mov edi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.0046ed40
mov ecx, esi
call fcn.0046ee40
lea ecx, [esp + 0x20]
call fcn.0046ee40
jmp 0x491aad
push esi
call fcn.00483f80
add esp, 4
mov dword [edi + 0x280], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0046ed20
lea ecx, [esp + 0x30]
call fcn.0047d5c0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00517c1a
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
int3
int3
int3
int3
int3