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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a4dd7
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x60f520]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [0x6438cc]
mov dword [esp + 0x24], 0
test al, 1
jne 0x4f899f
or eax, 1
mov dword [0x6438d0], 0
mov dword [0x6438cc], eax
call fcn.0040bce0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4f8985
push 0x80004005
call fcn.0040c390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x5aa360
mov dword [0x6438d0], eax
call fcn.00551ad4
add esp, 4
mov eax, dword [0x6438d0]
cmp dword [eax - 0xc], 0
jne 0x4f8c67
xor edx, edx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x2c]
call fcn.004fac50
push 0x250
lea eax, [esp + 0x38]
mov dword [esp + 0x29c], 0
push 0
push eax
call fcn.00559380
push str..
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x28]
call fcn.00414260
add esp, 0x10
lea ecx, [esp + 0x34]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [esp + 0x18]
or edi, 0xffffffff
add edx, 0xfffffff0
mov ebx, eax
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4f8a21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xffffffff
je 0x4f8c41
lea ebx, [ebx]
lea eax, [esp + 0x60]
mov dword [esp + 0x28], 0
push eax
lea ecx, [esp + 0x2c]
call fcn.0040c2d0
mov byte [esp + 0x298], 1
mov edx, 0x5beef8
mov eax, dword [esp + 0x28]
mov ecx, eax
lea esp, [esp]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4f8a86
test si, si
je 0x4f8a82
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4f8a86
add ecx, 4
add edx, 4
test si, si
jne 0x4f8a60
xor ecx, ecx
jmp 0x4f8a8b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x4f8c01
mov ecx, 0x5beefc
mov edx, eax
lea ebx, [ebx]
mov si, word [edx]
cmp si, word [ecx]
jne 0x4f8ac6
test si, si
je 0x4f8ac2
mov si, word [edx + 2]
cmp si, word [ecx + 2]
jne 0x4f8ac6
add edx, 4
add ecx, 4
test si, si
jne 0x4f8aa0
xor ecx, ecx
jmp 0x4f8acb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x4f8c01
test byte [esp + 0x34], 0x10
je 0x4f8c01
push 0x5bcf3c
lea edx, [esp + 0x2c]
mov dword [esp + 0x34], 0
lea ecx, [esp + 0x20]
call fcn.00414260
push 0x5cc60c
mov edx, eax
mov byte [esp + 0x2a0], 2
lea ecx, [esp + 0x1c]
call fcn.00414260
push eax
lea edx, [esp + 0x38]
mov byte [esp + 0x2a4], 3
lea ecx, [esp + 0x3c]
call fcn.00513e30
add esp, 0xc
mov byte [esp + 0x298], 5
mov ecx, edi
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f8b4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x298], 6
mov ecx, edi
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f8b73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f8bb7
mov byte [esp + 0x298], 1
mov ecx, edi
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f8ba6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x298], 0
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
jmp 0x4f8c0c
mov edx, 0x6438d0
lea ecx, [esp + 0x28]
call fcn.00514330
test eax, eax
jle 0x4f8bd8
lea eax, [esp + 0x28]
mov ecx, 0x6438d0
push eax
call fcn.0040b7d0
mov byte [esp + 0x298], 1
mov ecx, edi
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f8bfd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x298], 0
lea edx, [eax - 0x10]
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f8c22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4f8a30
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x298], 0xffffffff
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4f8c67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x6438d0]
add ecx, 0xfffffff0
call fcn.0040c3c0
add eax, 0x10
mov dword [esi], eax
mov eax, esi
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret