Function at 0x4975a0
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 0x4975f2
push 0x542354
push str.....UTILFILEFileSubfoldersList.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 0x497619
push 0x53d440
push str.....UTILFILEFileSubfoldersList.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 0x497640
push 0x574e58
push str.....UTILFILEFileSubfoldersList.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 0x497678
push 0x53d418
push str.....UTILFILEFileSubfoldersList.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 0x4976e9
nop dword [eax]
test eax, eax
je 0x4976e9
test byte [ebp - 0xa54], 0x10
je 0x4976d9
cmp word [ebp - 0xa28], 0x2e
je 0x4976d9
inc dword [esi]
lea eax, [ebp - 0xa54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4976c0
mov eax, dword [esi]
test eax, eax
je 0x4977f4
push 4
push eax
call fcn.0050c345
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x497727
push 0x53cbc0
push str.....UTILFILEFileSubfoldersList.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 0x497756
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 0x4977d1
inc edi
cmp edi, dword [esi]
jl 0x497730
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 0x4977f4
nop
test eax, eax
je 0x4977f4
cmp edi, dword [esi]
jge 0x4977f4
test byte [ebp - 0xa54], 0x10
je 0x4977bb
cmp word [ebp - 0xa28], 0x2e
je 0x4977bb
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 0x497780
push 0x53d33c
push str.....UTILFILEFileSubfoldersList.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