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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e1f68
push eax
mov eax, 0x1170
mov dword fs:[0], esp
call fcn.00521200
push esi
push 5
lea ecx, [ebp - 0x3c]
call fcn.00483350
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0047ff30
test al, al
jne 0x487c0b
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00486430
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 0xd], 0
call fcn.00487a80
mov eax, dword [ebp - 0x38]
add esp, 4
cmp eax, esi
jbe 0x487ecf
mov ecx, dword [ebp - 0x2c]
push ebx
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
lea edx, [ebp - 0xd7c]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x487c40
push str.appmanifest_.acf
lea eax, [ebp - 0xd7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0xd7c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x487ec0
mov edi, edi
lea eax, [ebp - 0x144]
push eax
call sym.GameRanger.exe_unsigned_int___cdecl_str_u_char_const__
mov ebx, 1
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 0xe], 0
cmp dword [0x6ea848], ebx
jbe 0x487e98
jmp 0x487cb3
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x6ea854]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x487e88
cmp dword [edi + 0xd74], eax
je 0x487cd8
cmp dword [edi + 0xd78], eax
jne 0x487e88
lea edx, [edi + 0x40b]
push edx
call fcn.004521c0
add esp, 4
test al, al
je 0x487e88
cmp byte [ebp - 0xe], 0
jne 0x487e72
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov byte [ebp - 0xe], 1
lea edx, [ebp - 0x97c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x487d08
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x97c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x97c]
push eax
call fcn.00439830
mov esi, eax
add esp, 4
test esi, esi
je 0x487e72
push str._StateFlags_
push esi
call dword [sym.imp.msvcrt.dll_strstr]
add esp, 8
test eax, eax
je 0x487e95
mov cl, byte [eax + 0xc]
add eax, 0xc
test cl, cl
je 0x487e95
cmp cl, 0x22
je 0x487d76
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x487d64
jmp 0x487e95
cmp byte [eax], 0
je 0x487e95
inc eax
push eax
call sym.GameRanger.exe_unsigned_int___cdecl_str_u_char_const__
add esp, 4
test al, 1
jne 0x487e95
test al, 6
je 0x487e95
push str._installdir_
push esi
call dword [sym.imp.msvcrt.dll_strstr]
add esp, 8
test eax, eax
je 0x487e95
mov cl, byte [eax + 0xc]
add eax, 0xc
test cl, cl
je 0x487e95
mov edi, edi
cmp cl, 0x22
je 0x487dd2
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x487dc0
jmp 0x487e95
cmp byte [eax], 0
je 0x487e95
mov cl, byte [eax + 1]
inc eax
lea edx, [ebp - 0x117c]
test cl, cl
je 0x487e95
lea ecx, [ecx]
cmp cl, 0x22
je 0x487e0d
cmp cl, 0x5c
jne 0x487dfb
inc eax
movzx ecx, byte [eax]
inc eax
mov byte [edx], cl
mov cl, byte [eax]
inc edx
test cl, cl
jne 0x487df0
jmp 0x487e95
cmp byte [eax], 0
je 0x487e95
mov byte [edx], 0
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
lea edx, [ebp - 0x57c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x487e24
push str.common
lea eax, [ebp - 0x57c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x117c]
push ecx
lea edx, [ebp - 0x57c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x57c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [ebp - 0x57c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x487e95
lea edx, [ebp - 0x57c]
push edx
mov ecx, edi
call fcn.00480950
test al, al
je 0x487e88
mov byte [ebp - 0xd], 1
inc ebx
cmp ebx, dword [0x6ea848]
jb 0x487cb0
mov edi, dword [ebp - 0x1c]
push esi
call fcn.0040107c
add esp, 4
lea eax, [ebp - 0x17c]
push eax
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x487c80
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
add dword [ebp - 0x14], 4
dec dword [ebp - 0x18]
jne 0x487c31
pop edi
pop ebx
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00486890
add esp, 4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00486430
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret