Function at 0x4d2490
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, 0x90
mov edi, ecx
mov eax, dword [0x674014]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
lea ebx, [esp + 0x30]
push 0x82
push str....._base_files_file_enumerator_win.cc
push str.Next
push ebx
call fcn.004b6370
add esp, 0x10
lea ecx, [esp + 0x40]
push 0
push ebx
call fcn.0050b630
lea eax, [edi + 4]
mov dword [esp + 0x18], eax
lea eax, [edi + 0x284]
mov dword [esp + 0x14], eax
lea eax, [edi + 0x258]
mov dword [esp + 0xc], eax
lea esi, [edi + 0x26c]
lea eax, [edi + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
jmp 0x4d253b
mov ecx, ebx
call fcn.004b3910
mov esi, dword [esp + 0x10]
cmp byte [edi], 0
je 0x4d2580
push dword [esp + 0x18]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d26bd
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x4d26bd
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x28c], eax
je 0x4d28b1
test eax, eax
mov ecx, dword [edi + 0x288]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x4d2902
lea eax, [eax + eax*2]
shl eax, 2
add eax, dword [edi + 0x284]
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b3930
mov ecx, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
test edx, edx
je 0x4d25e6
lea eax, [edx - 1]
mov dword [edi + 0x290], eax
cmp ecx, edx
jb 0x4d290b
cmp ecx, eax
jae 0x4d25f9
jmp 0x4d2905
lea eax, [ecx - 1]
mov dword [edi + 0x290], eax
mov edx, ecx
cmp ecx, eax
jb 0x4d2905
cmp edx, 0x80000000
je 0x4d2908
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
call fcn.004b3910
mov ecx, esi
call fcn.004d2cd0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x4d266f
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x4d2686
movzx eax, byte [edi + 0x277]
mov edx, esi
test al, al
jns 0x4d2661
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x270]
mov ecx, dword [esp + 0xc]
push eax
push edx
push ebx
call fcn.004b4610
jmp 0x4d268d
mov ecx, dword [esp + 0xc]
push 1
push 0x621f58
push ebx
call fcn.004b4610
mov esi, dword [esp + 0x10]
jmp 0x4d268d
mov ecx, ebx
call fcn.004b3810
cmp byte [esp + 0x3b], 0
mov eax, ebx
jns 0x4d269a
mov eax, dword [esp + 0x30]
push 2
push 0
push 0
push dword [esp + 0x24]
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.004b3910
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x4d27d0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4d28ff
push esi
call fcn.005f8ba4
add esp, 4
mov ecx, ebx
push eax
push esi
call fcn.004b3860
mov ecx, edi
push ebx
call fcn.0050b510
test al, al
jne 0x4d2530
mov eax, ebx
mov ebx, dword [edi + 4]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
mov ecx, dword [esp + 0xc]
mov esi, eax
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004b56d0
test bl, 0x10
je 0x4d2840
cmp byte [edi + 0x264], 0
je 0x4d2840
cmp byte [esp + 0x2f], 0
lea eax, [esp + 0x24]
jns 0x4d2769
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x4d2840
mov ecx, dword [esp + 0x14]
push 1
call fcn.004d2a00
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x288], eax
jb 0x4d2911
lea ecx, [eax + eax*2]
shl ecx, 2
add ecx, dword [edi + 0x284]
lea eax, [esp + 0x24]
push eax
call fcn.004579c0
mov edx, dword [edi + 0x288]
mov ecx, dword [edi + 0x290]
lea eax, [edx - 1]
cmp ecx, eax
jne 0x4d2823
mov dword [edi + 0x290], 0
jmp 0x4d2836
mov byte [edi], 0
cmp dword [edi + 0x278], 0
je 0x4d27e7
cmp eax, 0x12
je 0x4d253b
jmp 0x4d2814
cmp byte [esi + 0xb], 0
js 0x4d27f5
mov byte [esi + 0xb], 1
mov ecx, esi
jmp 0x4d2805
mov dword [edi + 0x270], 1
mov ecx, dword [edi + 0x26c]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x4d253b
cmp dword [edi + 0x27c], 0
je 0x4d253b
jmp 0x4d28a2
mov dword [esp + 0x1c], edx
mov edx, ecx
inc edx
mov dword [edi + 0x290], edx
mov edx, dword [esp + 0x1c]
jne 0x4d2838
mov ecx, eax
cmp edx, ecx
jb 0x4d290e
and ebx, 0x10
shr ebx, 4
mov ecx, edi
push ebx
call fcn.0050b610
test al, al
mov ebx, esi
mov esi, dword [esp + 0x10]
je 0x4d288d
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x4d2869
test eax, eax
jne 0x4d288d
jmp 0x4d28bd
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4d2873
mov eax, dword [esi]
cmp byte [esp + 0x3b], 0
mov ecx, ebx
jns 0x4d2880
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x4d28bd
lea ecx, [esp + 0x24]
call fcn.004b3910
mov ecx, ebx
call fcn.004b3910
jmp 0x4d253b
push eax
call fcn.004ca260
add esp, 4
mov dword [edi + 0x280], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004b3810
jmp 0x4d28dc
lea esi, [esp + 0x24]
mov edi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.004579c0
mov ecx, esi
call fcn.004b3910
lea ecx, [esp + 0x30]
call fcn.004b3910
lea ecx, [esp + 0x40]
call fcn.0050b690
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.005dd6f3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
int3
int3
int3
int3
int3
int3