Function at 0x514200
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d53c
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
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 - 0x4a8], ecx
push 0x59fd9c
lea ecx, [ebp - 0x488]
call fcn.0041d9b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x488]
push eax
mov ecx, dword [ebp - 0x4a8]
add ecx, 0x1864
call fcn.0041eaa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x488]
call fcn.0041dab0
push 0x59fdac
lea ecx, [ebp - 0x48c]
call fcn.0041d9b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48c]
push ecx
mov ecx, dword [ebp - 0x4a8]
add ecx, 0x1864
call fcn.0041eaa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.0041dab0
push 0x59fdb8
lea ecx, [ebp - 0x490]
call fcn.0041d9b0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x490]
push edx
mov ecx, dword [ebp - 0x4a8]
add ecx, 0x1864
call fcn.0041eaa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x490]
call fcn.0041dab0
mov eax, dword [0x59fdc8]
mov dword [ebp - 0x21c], eax
push 0x204
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.005533a0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
call fcn.004011a0
add esp, 4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x474]
call fcn.0041d9b0
mov dword [ebp - 4], 3
push str.dataSkins_
lea ecx, [ebp - 0x494]
call fcn.0041da30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x494]
push ecx
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x478]
push eax
call fcn.0041df30
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x494]
call fcn.0041dab0
push str.dataSkins.
lea ecx, [ebp - 0x474]
call fcn.0041db50
mov dword [ebp - 0x47c], 4
lea ecx, [ebp - 0x46c]
push ecx
lea ecx, [ebp - 0x474]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 0xffffffff
je 0x51454e
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x51454e
lea ecx, [ebp - 0x440]
push ecx
lea ecx, [ebp - 0x480]
call fcn.0041d9b0
mov byte [ebp - 4], 7
push 0x59fdec
lea ecx, [ebp - 0x480]
call fcn.0041dbd0
test eax, eax
je 0x51453a
push 0x59fdf0
lea ecx, [ebp - 0x480]
call fcn.0041dbd0
test eax, eax
je 0x51453a
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x49c]
push ecx
call fcn.0041dfe0
add esp, 0xc
mov dword [ebp - 0x4ac], eax
mov ecx, dword [ebp - 0x4ac]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
mov dword [ebp - 0x498], eax
lea ecx, [ebp - 0x49c]
call fcn.0041dab0
cmp dword [ebp - 0x498], 0
je 0x51453a
push 0x59fdf8
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x4a0]
push ecx
call fcn.0041dfe0
add esp, 0xc
mov dword [ebp - 0x4b0], eax
mov edx, dword [ebp - 0x4b0]
mov dword [ebp - 0x4b4], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x4b4]
push eax
lea ecx, [ebp - 0x484]
push ecx
call fcn.0041dfe0
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4a0]
call fcn.0041dab0
lea ecx, [ebp - 0x484]
call fcn.0041e1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51452b
lea edx, [ebp - 0x440]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.0041d9b0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x4a4]
push eax
mov ecx, dword [ebp - 0x4a8]
add ecx, 0x1864
call fcn.0041eaa0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4a4]
call fcn.0041dab0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x484]
call fcn.0041dab0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x480]
call fcn.0041dab0
jmp 0x5143c3
mov ecx, dword [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x478]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x474]
call fcn.0041dab0
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