Function at 0x472910
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, 0x80
mov edi, ecx
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x70], 0xffffffff
lea ebx, [esp + 0x2c]
push 0x8c
push str....._base_files_file_enumerator_win.cc
push str.Next
push ebx
call fcn.00451690
add esp, 0x10
lea ecx, [esp + 0x40]
push 0
push ebx
call fcn.00440b40
lea eax, [edi + 4]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x284]
mov dword [esp + 0x18], eax
lea eax, [edi + 0x258]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x26c]
mov dword [esp + 0xc], eax
lea ebx, [edi + 0x30]
mov dword [esp + 0x14], ebx
jmp 0x4729cc
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x472d8f
mov ecx, dword [ebp + 8]
call fcn.00452ba0
lea esi, [esp + 0x20]
mov ecx, esi
call fcn.00452ba0
cmp byte [edi], 0
je 0x472a10
push dword [esp + 0x1c]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x472b88
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x472b88
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x28c], eax
je 0x472d83
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
test eax, eax
jne 0x472a39
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
dec eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x2c]
push eax
call fcn.00473280
mov ecx, dword [esp + 0x10]
push eax
call fcn.00452bc0
mov eax, dword [edi + 0x290]
test eax, eax
jne 0x472a62
mov eax, dword [edi + 0x288]
lea ecx, [eax - 1]
mov dword [edi + 0x290], ecx
mov ebx, dword [esp + 0x18]
mov ecx, ebx
push eax
call fcn.00472ef0
mov esi, eax
mov ecx, ebx
push dword [edi + 0x290]
call fcn.00472ef0
mov ecx, ebx
push esi
push eax
call fcn.00472e20
mov ecx, ebx
call fcn.00473320
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x472aea
test eax, eax
lea ebx, [esp + 0x20]
jne 0x472b01
movzx eax, byte [edi + 0x277]
mov edx, dword [esp + 0xc]
test al, al
jns 0x472adc
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x270]
mov ecx, dword [esp + 0x10]
push eax
push edx
push ebx
call fcn.00453a80
jmp 0x472b36
mov ecx, dword [esp + 0x10]
push 1
push 0x56817e
lea esi, [esp + 0x28]
push esi
call fcn.00453a80
jmp 0x472b38
push 0x20
push str....._base_files_file_enumerator_win.cc
push str.BuildSearchFilter
lea esi, [esp + 0x38]
push esi
call fcn.00451690
add esp, 0x10
push esi
lea esi, [esp + 0x40]
push esi
call fcn.00458ce0
add esp, 8
mov ecx, esi
call fcn.00458cb0
mov ecx, ebx
call fcn.00452a70
mov esi, ebx
call fcn.00433010
xor ebx, ebx
cmp eax, 4
setge bl
add ebx, ebx
call fcn.00433010
xor ecx, ecx
cmp eax, 4
setge dl
cmp byte [esp + 0x2b], 0
mov eax, esi
jns 0x472b61
mov eax, dword [esp + 0x20]
mov cl, dl
push ebx
push 0
push 0
push dword [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [edi + 0x254], eax
mov byte [edi], 1
mov ecx, esi
call fcn.00452ba0
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x472bc0
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
test ebx, ebx
je 0x472be0
push ebx
call fcn.0054c5c4
add esp, 4
jmp 0x472c1c
mov byte [edi], 0
cmp dword [edi + 0x278], 0
je 0x472d07
cmp eax, 0x12
je 0x4729cc
jmp 0x472d67
push 0x86
push str....._base_strings_string_piece.h
push str.BasicStringPiece
lea ebx, [esp + 0x38]
push ebx
call fcn.00451690
add esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x561302
lea esi, [esp + 0x44]
push esi
call fcn.00458b50
add esp, 0xc
mov ecx, esi
call fcn.00458cb0
xor eax, eax
lea esi, [esp + 0x20]
mov ecx, esi
push eax
push ebx
call fcn.00452ad0
mov ecx, edi
push esi
call fcn.00473410
test al, al
jne 0x4729c5
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 0xffffffff
mov ecx, dword [esp + 0x10]
push esi
push eax
call fcn.00454190
test bl, 0x10
je 0x472ca0
cmp byte [edi + 0x264], 0
je 0x472ca0
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x472c7a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x472ca0
mov ecx, dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00472f90
nop word cs:[eax + eax]
and ebx, 0x10
shr ebx, 4
mov ecx, edi
push ebx
call fcn.00473530
test al, al
mov ebx, dword [esp + 0x14]
je 0x4729b9
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x472d1d
test eax, eax
je 0x472d8f
push 0xe9
push str....._base_files_file_enumerator_win.cc
push str.IsPatternMatched
lea ebx, [esp + 0x38]
push ebx
call fcn.00451690
add esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
lea esi, [esp + 0x40]
push esi
call fcn.00458ce0
add esp, 8
mov ecx, esi
call fcn.00458cb0
jmp 0x4729b9
cmp byte [edi + 0x277], 0
js 0x472d48
mov byte [edi + 0x277], 1
mov ecx, dword [esp + 0xc]
jmp 0x472d58
cmp byte [edi + 0x277], 0
mov eax, dword [esp + 0xc]
jns 0x472d30
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
cmp byte [esp + 0x2b], 0
lea ecx, [esp + 0x20]
jns 0x4729a8
mov ecx, dword [esp + 0x20]
jmp 0x4729a8
mov dword [edi + 0x270], 1
mov ecx, dword [edi + 0x26c]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x4729cc
cmp dword [edi + 0x27c], 0
je 0x4729cc
push eax
call fcn.0043abb0
add esp, 4
mov dword [edi + 0x280], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00452a70
jmp 0x472d9b
lea ecx, [esp + 0x20]
call fcn.00452ba0
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x40]
call fcn.00440ba0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4