Function at 0x497810
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa58], eax
mov eax, dword [ebp + 0x18]
test edi, edi
jne 0x497862
push 0x542354
push str.....UTILFILEFileSubfilesList.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x497889
push 0x53d440
push str.....UTILFILEFileSubfilesList.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x4978b0
push 0x574e58
push str.....UTILFILEFileSubfilesList.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0xa5c]
push eax
push edi
call fcn.00476b00
add esp, 0xc
test eax, eax
je 0x4978e8
push 0x53d418
push str.....UTILFILEFileSubfilesList.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x804]
mov dword [esi], 0
push 0x5529c8
push eax
mov dword [ebx], 0
call fcn.00401870
add esp, 0xc
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, 1
cmp edi, 0xffffffff
je 0x497959
nop dword [eax]
test eax, eax
je 0x497959
test byte [ebp - 0xa54], 0x10
jne 0x497949
cmp word [ebp - 0xa28], 0x2e
je 0x497949
inc dword [esi]
lea eax, [ebp - 0xa54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x497930
mov eax, dword [esi]
test eax, eax
je 0x497a64
push 4
push eax
call fcn.0050c345
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x497997
push 0x53cbc0
push str.....UTILFILEFileSubfilesList.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp dword [esi], edi
jle 0x4979c6
nop dword [eax]
push 2
push dword [ebp - 0xa58]
call fcn.0050c345
mov ecx, dword [ebx]
add esp, 8
mov dword [ecx + edi*4], eax
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x497a41
inc edi
cmp edi, dword [esi]
jl 0x4979a0
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
xor edi, edi
mov dword [ebp - 0xa58], ecx
mov eax, 1
cmp ecx, 0xffffffff
je 0x497a64
nop
test eax, eax
je 0x497a64
cmp edi, dword [esi]
jge 0x497a64
test byte [ebp - 0xa54], 0x10
jne 0x497a2b
cmp word [ebp - 0xa28], 0x2e
je 0x497a2b
lea eax, [ebp - 0xa28]
push eax
mov eax, dword [ebx]
push 0x53a71c
push dword [eax + edi*4]
call fcn.00401870
mov ecx, dword [ebp - 0xa58]
add esp, 0xc
inc edi
lea eax, [ebp - 0xa54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [ebp - 0xa58]
jmp 0x4979f0
push 0x53d33c
push str.....UTILFILEFileSubfilesList.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ff105
mov esp, ebp
pop ebp
ret