Function at 0x4971b0
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 eax, dword [0x63a1e8]
mov edi, ecx
lea ebx, [esp + 0x20]
xor eax, ebp
mov dword [esp + 0x68], eax
push 0x82
push str..._.._base_files_file_enumerator_win.cc
push str.Next
push ebx
call fcn.004820c0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.004d05f0
lea edx, [edi + 0x284]
lea ecx, [edi + 0x258]
lea eax, [edi + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
lea edx, [edi + 0x26c]
lea ecx, [edi + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp], edx
mov dword [esp + 0x10], ecx
jmp 0x49723f
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x497543
lea ecx, [esp + 0x14]
call fcn.0047f6f0
mov ecx, ebx
call fcn.0047f6f0
cmp byte [edi], 0
je 0x497280
push dword [esp + 0xc]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x497398
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x497398
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x28c], eax
je 0x497573
mov ecx, dword [edi + 0x288]
test eax, eax
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x49759d
lea eax, [eax + eax*2]
mov ecx, dword [esp + 4]
shl eax, 2
add eax, dword [edi + 0x284]
push eax
call fcn.0047f710
mov edx, dword [edi + 0x290]
mov ecx, dword [edi + 0x288]
test edx, edx
je 0x4972e6
lea eax, [edx - 1]
cmp ecx, edx
mov dword [edi + 0x290], eax
jb 0x4975a6
cmp ecx, eax
jae 0x4972f9
jmp 0x4975a0
lea eax, [ecx - 1]
mov edx, ecx
mov dword [edi + 0x290], eax
cmp ecx, eax
jb 0x4975a0
cmp edx, 0x80000000
je 0x4975a3
mov esi, dword [esp + 8]
lea eax, [eax + eax*2]
mov ecx, dword [esi]
lea ecx, [ecx + eax*4]
call fcn.0047f6f0
mov ecx, esi
call fcn.00497950
mov eax, dword [edi + 0x278]
test eax, eax
je 0x497339
cmp eax, 1
jne 0x497361
mov ecx, dword [esp + 4]
push 1
push 0x5c3c20
jmp 0x497359
movzx eax, byte [edi + 0x277]
mov edx, dword [esp]
test al, al
jns 0x497353
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x270]
mov ecx, dword [esp + 4]
push eax
push edx
push ebx
call fcn.004804c0
jmp 0x497368
mov ecx, ebx
call fcn.0047f5e0
cmp byte [esp + 0x2b], 0
mov eax, ebx
jns 0x497375
mov eax, dword [esp + 0x20]
push 2
push 0
push 0
push dword [esp + 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov ecx, ebx
mov dword [edi + 0x254], eax
mov byte [edi], 1
call fcn.0047f6f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x4973d0
mov eax, dword [esp + 0x10]
cmp word [eax], 0
je 0x4973f0
xor eax, eax
nop word cs:[eax + eax]
nop dword [eax]
cmp word [edi + eax*2 + 0x32], 0
lea eax, [eax + 1]
jne 0x4973c0
jmp 0x4973f2
mov byte [edi], 0
mov esi, eax
cmp dword [edi + 0x278], 0
je 0x4974ab
cmp esi, 0x12
je 0x49723f
jmp 0x4974c1
xor eax, eax
mov ecx, ebx
push eax
push dword [esp + 0x14]
call fcn.0047f630
mov ecx, edi
push ebx
call fcn.004d0500
test al, al
jne 0x497238
mov eax, ebx
mov ebx, dword [edi + 4]
mov ecx, dword [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00481440
test bl, 0x10
je 0x4974f0
cmp byte [edi + 0x264], 0
je 0x4974f0
cmp byte [esp + 0x1f], 0
lea eax, [esp + 0x14]
jns 0x497447
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x4974f0
mov ecx, dword [esp + 8]
push 1
call fcn.00497690
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x288], eax
jb 0x4975a9
lea ecx, [eax + eax*2]
lea eax, [esp + 0x14]
shl ecx, 2
add ecx, dword [edi + 0x284]
push eax
call fcn.00430050
mov eax, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
lea ecx, [eax - 1]
cmp edx, ecx
jne 0x4974d3
mov dword [edi + 0x290], 0
jmp 0x4974de
mov ecx, dword [esp]
push 0x5c3c20
call fcn.00478ea0
cmp esi, 0x12
je 0x49723f
cmp dword [edi + 0x27c], 0
je 0x49723f
jmp 0x497564
mov esi, edx
inc esi
mov dword [edi + 0x290], esi
jne 0x4974e0
mov edx, ecx
cmp eax, edx
jb 0x4975ac
nop dword [eax + eax]
and ebx, 0x10
mov ecx, edi
shr ebx, 4
push ebx
call fcn.004d05d0
test al, al
lea ebx, [esp + 0x20]
je 0x49722f
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x49751f
test eax, eax
jne 0x49722f
jmp 0x497543
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
jns 0x49752d
mov eax, dword [esp]
mov eax, dword [eax]
cmp byte [esp + 0x2b], 0
mov ecx, ebx
jns 0x49721e
mov ecx, dword [esp + 0x20]
jmp 0x49721e
mov edi, dword [ebp + 8]
lea esi, [esp + 0x14]
mov ecx, edi
push esi
call fcn.00430050
mov ecx, esi
call fcn.0047f6f0
lea ecx, [esp + 0x20]
call fcn.0047f6f0
jmp 0x49757d
push esi
call fcn.00492460
add esp, 4
mov dword [edi + 0x280], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0047f5e0
lea ecx, [esp + 0x30]
call fcn.004d06e0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005909f1
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
int3
int3
int3
int3
int3