Function at 0x4af263
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x562a29
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1af4
call fcn.005482e0
mov eax, dword [0x5afee0]
xor eax, esp
mov dword [esp + 0x1af0], eax
push ebx
push esi
push edi
mov eax, dword [0x5afee0]
xor eax, esp
push eax
lea eax, [esp + 0x1b08]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x4af578
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x4af578
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4af578
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4af578
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x8b0], ax
lea eax, [esp + 0x8b2]
push edi
push eax
call fcn.00537010
add esp, 0xc
push 0x588e08
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x8b4]
push eax
call ebx
push 0x24c
lea eax, [esp + 0x4c]
push edi
push eax
mov dword [esp + 0x50], edi
call fcn.00537010
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x8b0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4af578
lea eax, [esp + 0x70]
push 0x583f04
push eax
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
je 0x4af552
lea eax, [esp + 0x70]
push 0x583f08
push eax
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
je 0x4af552
xor eax, eax
push esi
mov word [esp + 0x298], ax
lea eax, [esp + 0x29a]
push edi
push eax
call fcn.00537010
add esp, 0xc
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x29c]
push eax
call ebx
test byte [esp + 0x44], 0x10
lea eax, [esp + 0x294]
je 0x4af3ec
push dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x1c]
push eax
call fcn.004af263
jmp 0x4af552
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, edi
je 0x4af552
push dword [esp + 0x18]
push eax
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
jne 0x4af552
push esi
mov word [esp + 0x4a0], ax
lea eax, [esp + 0x4a2]
push edi
push eax
call fcn.00537010
add esp, 0xc
lea eax, [esp + 0x294]
push eax
push str._s:favicon
lea eax, [esp + 0x4a4]
push 0x103
push eax
call fcn.00532a01
add esp, 0x10
lea eax, [esp + 0x49c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4af552
xor eax, eax
push 0x1046
mov word [esp + 0xab8], ax
lea eax, [esp + 0xaba]
push edi
push eax
call fcn.00537010
add esp, 0xc
lea eax, [esp + 0x294]
push eax
push 0x824
lea eax, [esp + 0xabc]
push eax
push 0x577458
push 0x583f40
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0xab4], di
je 0x4af552
xor eax, eax
push esi
mov word [esp + 0x6a8], ax
lea eax, [esp + 0x6aa]
push edi
push eax
call fcn.00537010
add esp, 0xc
push edi
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x6b0]
push eax
lea eax, [esp + 0xac4]
push eax
mov dword [esp + 0x38], 0x103
call dword [sym.imp.SHLWAPI.dll_UrlGetPartW]
test eax, eax
jl 0x4af552
cmp word [esp + 0x6a4], di
je 0x4af552
lea eax, [esp + 0x6a4]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040a8b0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x1b18], edi
call fcn.0045d27c
lea ecx, [esp + 0x49c]
push ecx
mov ecx, eax
call fcn.00406430
or dword [esp + 0x1b10], 0xffffffff
push edi
push 1
lea ecx, [esp + 0x30]
call fcn.004053e5
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4af366
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x4af57a
xor eax, eax
mov ecx, dword [esp + 0x1b08]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1af0]
xor ecx, esp
call fcn.0052f7d0
mov esp, ebp
pop ebp
ret 0xc