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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec671
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x684], ecx
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x67c]
mov edi, dword [ebp + 8]
push esi
call fcn.004bc730
mov eax, dword [ebp - 0x67c]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4d86fb
cmp eax, 2
jl 0x4d86fb
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d86fb
mov eax, dword [ebp - 0x67c]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4d8535
dec eax
lea ecx, [ebp - 0x67c]
push eax
call fcn.004c3790
cmp ax, 0x5c
jne 0x4d8535
mov eax, dword [ebp - 0x67c]
lea ecx, [ebp - 0x67c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x680]
push eax
call fcn.004c85a0
push eax
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], 1
call fcn.004bfcd0
lea ecx, [ebp - 0x680]
mov byte [ebp - 4], 0
call fcn.004b2a80
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0058c8f0
push dword [ebp - 0x67c]
lea eax, [ebp - 0x21c]
push 0x5ffa90
push 0x104
push eax
call fcn.004ce860
add esp, 0x1c
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x678]
mov dword [ebp - 0x680], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4d86e8
nop word [eax + eax]
test byte [ebp - 0x678], 0x10
je 0x4d8636
lea eax, [ebp - 0x64c]
push 0x6453c0
push eax
call fcn.005ad849
add esp, 8
test eax, eax
je 0x4d86cd
lea eax, [ebp - 0x64c]
push 0x6453c8
push eax
call fcn.005ad849
add esp, 8
test eax, eax
je 0x4d86cd
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0058c8f0
lea eax, [ebp - 0x64c]
push eax
push dword [ebp - 0x67c]
lea eax, [ebp - 0x428]
push 0x605730
push 0x103
push eax
call fcn.004ce860
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x428]
add esp, 0x20
push eax
push edi
call fcn.004d8460
jmp 0x4d86cd
push 0x208
call fcn.0050f771
mov esi, eax
lea eax, [ebp - 0x64c]
push eax
push dword [ebp - 0x67c]
push 0x605730
push 0x103
push esi
call fcn.004ce860
add esp, 0x18
lea ecx, [ebp - 0x688]
push esi
call fcn.004bc730
mov ebx, dword [edi + 4]
mov byte [ebp - 4], 2
cmp dword [edi + 8], ebx
je 0x4d8693
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004bfdc0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
add dword [edi + 4], 4
jmp 0x4d869c
push eax
push ebx
mov ecx, edi
call fcn.004c1340
mov edx, dword [ebp - 0x688]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d86c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4d86cd
push esi
call fcn.0050edcc
add esp, 4
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d85a0
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
jmp 0x4d86fd
xor esi, esi
mov eax, dword [ebp - 0x67c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4d871f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 8