Function at 0x499c00
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 [0x6401e4]
xor eax, ebp
mov dword [esp + 0x68], eax
lea ebx, [esp + 0x20]
push 0x82
push str..._.._base_files_file_enumerator_win.cc
push str.Next
push ebx
call fcn.004835b0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.004d4910
lea eax, [edi + 4]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x284]
mov dword [esp + 8], 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 0x499c8f
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x499f93
lea ecx, [esp + 0x14]
call fcn.00480970
mov ecx, ebx
call fcn.00480970
cmp byte [edi], 0
je 0x499cd0
push dword [esp + 0xc]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x499dea
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x499dea
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x28c], eax
je 0x499fc3
test eax, eax
mov ecx, dword [edi + 0x288]
cmove eax, ecx
add eax, 0xffffffff
cmp ecx, eax
jb 0x499fed
lea eax, [eax + eax*2]
shl eax, 2
add eax, dword [edi + 0x284]
mov ecx, dword [esp + 4]
push eax
call fcn.00480990
mov ecx, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
test edx, edx
je 0x499d38
lea eax, [edx - 1]
mov dword [edi + 0x290], eax
cmp ecx, edx
jb 0x499ff6
cmp ecx, eax
jae 0x499d4b
jmp 0x499ff0
lea eax, [ecx - 1]
mov dword [edi + 0x290], eax
mov edx, ecx
cmp ecx, eax
jb 0x499ff0
cmp edx, 0x80000000
je 0x499ff3
mov esi, dword [esp + 8]
mov ecx, dword [esi]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
call fcn.00480970
mov ecx, esi
call fcn.0049a3b0
mov eax, dword [edi + 0x278]
test eax, eax
je 0x499d8b
cmp eax, 1
jne 0x499db3
mov ecx, dword [esp + 4]
push 1
push 0x5ca0b0
jmp 0x499dab
movzx eax, byte [edi + 0x277]
mov edx, dword [esp]
test al, al
jns 0x499da5
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x270]
mov ecx, dword [esp + 4]
push eax
push edx
push ebx
call fcn.00481700
jmp 0x499dba
mov ecx, ebx
call fcn.00480860
cmp byte [esp + 0x2b], 0
mov eax, ebx
jns 0x499dc7
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 dword [edi + 0x254], eax
mov byte [edi], 1
mov ecx, ebx
call fcn.00480970
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x499e20
mov eax, dword [esp + 0x10]
cmp word [eax], 0
je 0x499e40
xor ecx, ecx
nop word cs:[eax + eax]
nop
lea eax, [ecx + 1]
cmp word [edi + ecx*2 + 0x32], 0
mov ecx, eax
jne 0x499e10
jmp 0x499e42
mov esi, eax
mov byte [edi], 0
cmp dword [edi + 0x278], 0
je 0x499efb
cmp esi, 0x12
je 0x499c8f
jmp 0x499f11
xor eax, eax
mov ecx, ebx
push eax
push dword [esp + 0x14]
call fcn.004808b0
mov ecx, edi
push ebx
call fcn.004d4820
test al, al
jne 0x499c88
mov eax, ebx
mov ebx, dword [edi + 4]
mov ecx, dword [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004828f0
test bl, 0x10
je 0x499f40
cmp byte [edi + 0x264], 0
je 0x499f40
cmp byte [esp + 0x1f], 0
lea eax, [esp + 0x14]
jns 0x499e97
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x499f40
mov ecx, dword [esp + 8]
push 1
call fcn.0049a0e0
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x288], eax
jb 0x499ff9
lea ecx, [eax + eax*2]
shl ecx, 2
add ecx, dword [edi + 0x284]
lea eax, [esp + 0x14]
push eax
call fcn.00430bd0
mov eax, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
lea ecx, [eax - 1]
cmp edx, ecx
jne 0x499f23
mov dword [edi + 0x290], 0
jmp 0x499f2e
mov ecx, dword [esp]
push 0x5ca0b0
call fcn.0047966c
cmp esi, 0x12
je 0x499c8f
cmp dword [edi + 0x27c], 0
je 0x499c8f
jmp 0x499fb4
mov esi, edx
inc esi
mov dword [edi + 0x290], esi
jne 0x499f30
mov edx, ecx
cmp eax, edx
jb 0x499ffc
nop dword [eax + eax]
and ebx, 0x10
shr ebx, 4
mov ecx, edi
push ebx
call fcn.004d48f0
test al, al
lea ebx, [esp + 0x20]
je 0x499c7f
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x499f6f
test eax, eax
jne 0x499c7f
jmp 0x499f93
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
jns 0x499f7d
mov eax, dword [esp]
mov eax, dword [eax]
cmp byte [esp + 0x2b], 0
mov ecx, ebx
jns 0x499c6e
mov ecx, dword [esp + 0x20]
jmp 0x499c6e
lea esi, [esp + 0x14]
mov edi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.00430bd0
mov ecx, esi
call fcn.00480970
lea ecx, [esp + 0x20]
call fcn.00480970
jmp 0x499fcd
push esi
call fcn.004949c0
add esp, 4
mov dword [edi + 0x280], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00480860
lea ecx, [esp + 0x30]
call fcn.004d4a30
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00596351
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
int3
int3
int3
int3
int3