Function at 0x52fab0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e765
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8ac], ecx
push 0x5a1f30
lea ecx, [ebp - 0x890]
call fcn.0041d9b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x890]
push eax
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x4c0
call fcn.0041eaa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x890]
call fcn.0041dab0
push 0x5a1f44
lea ecx, [ebp - 0x894]
call fcn.0041d9b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x894]
push ecx
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x4c0
call fcn.0041eaa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x894]
call fcn.0041dab0
push 0x5a1f54
lea ecx, [ebp - 0x898]
call fcn.0041d9b0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x898]
push edx
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x4c0
call fcn.0041eaa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x898]
call fcn.0041dab0
push 0x5a1f60
lea ecx, [ebp - 0x89c]
call fcn.0041d9b0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x89c]
push eax
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x4c0
call fcn.0041eaa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x89c]
call fcn.0041dab0
push 0x5a1f70
lea ecx, [ebp - 0x8a0]
call fcn.0041d9b0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x8a0]
push ecx
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x4c0
call fcn.0041eaa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a0]
call fcn.0041dab0
push 0x5a1f7c
lea ecx, [ebp - 0x8a4]
call fcn.0041d9b0
mov dword [ebp - 4], 5
lea edx, [ebp - 0x8a4]
push edx
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x4c0
call fcn.0041eaa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a4]
call fcn.0041dab0
push 0x5a1f90
lea ecx, [ebp - 0x8a8]
call fcn.0041d9b0
mov dword [ebp - 4], 6
lea eax, [ebp - 0x8a8]
push eax
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x4c0
call fcn.0041eaa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a8]
call fcn.0041dab0
mov ecx, dword [0x5a1f9c]
mov dword [ebp - 0x884], ecx
push 0x204
push 0
lea edx, [ebp - 0x880]
push edx
call fcn.005533a0
add esp, 0xc
lea eax, [ebp - 0x884]
push eax
call fcn.004011a0
add esp, 4
mov ecx, dword [0x5a1fa0]
mov dword [ebp - 0x21c], ecx
push 0x204
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.005533a0
add esp, 0xc
mov eax, dword [0x5a1fa4]
mov dword [ebp - 0x674], eax
push 0x204
push 0
lea ecx, [ebp - 0x670]
push ecx
call fcn.005533a0
add esp, 0xc
lea edx, [ebp - 0x884]
push edx
push str._sdataSkins.
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x884]
push ecx
push str._sdataSkins_
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x674]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x678], eax
cmp dword [ebp - 0x678], 0xffffffff
je 0x52fe90
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x678]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x52fe90
lea ecx, [ebp - 0x440]
push ecx
lea ecx, [ebp - 0x888]
call fcn.0041d9b0
mov dword [ebp - 4], 7
push 0x5a1fec
lea ecx, [ebp - 0x888]
call fcn.0041dbd0
test eax, eax
je 0x52fe79
push 0x5a1ff0
lea ecx, [ebp - 0x888]
call fcn.0041dbd0
test eax, eax
je 0x52fe79
lea ecx, [ebp - 0x88c]
call fcn.0041d970
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x888]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0x5a1ff8
lea ecx, [ebp - 0x88c]
push ecx
call fcn.00423c30
add esp, 0x10
lea ecx, [ebp - 0x88c]
call fcn.0041e1e0
push eax
call fcn.0045cbb0
add esp, 4
movzx edx, al
test edx, edx
je 0x52fe6a
push str.RectSkin.ini
lea ecx, [ebp - 0x88c]
call fcn.0041db30
lea ecx, [ebp - 0x88c]
call fcn.0041e1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x52fe6a
lea eax, [ebp - 0x888]
push eax
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x4c0
call fcn.0041eaa0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88c]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x888]
call fcn.0041dab0
jmp 0x52fd7b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret