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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8a1c
mov eax, dword fs:[0]
push eax
sub esp, 0x4fc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x508]
mov ecx, 0x13f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
je 0x451721
cmp dword [ebp + 0xc], 0
jne 0x451728
xor eax, eax
jmp 0x4519c8
mov word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.004a1e50
add esp, 0xc
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x224]
push edx
call fcn.004a4f54
add esp, 0xc
test eax, eax
jne 0x45176a
xor eax, eax
jmp 0x4519c8
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x248]
call fcn.004093c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x248]
call fcn.0048be90
mov ecx, eax
call fcn.00403570
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp esi, esp
call fcn.004c3b36
test eax, eax
jne 0x4517d0
mov dword [ebp - 0x500], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00406930
mov eax, dword [ebp - 0x500]
jmp 0x4519c8
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x26c]
call fcn.004093c0
mov byte [ebp - 4], 1
lea edi, [ebp - 0x26c]
call fcn.0048c000
push 0x4d9f44
lea ebx, [ebp - 0x26c]
call fcn.0048c250
mov esi, esp
lea edx, [ebp - 0x4c4]
push edx
lea eax, [ebp - 0x26c]
call fcn.0048be90
mov ecx, eax
call fcn.00403570
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, esp
call fcn.004c3b36
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004431f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d0]
call fcn.00451e20
test eax, eax
jne 0x45188e
mov dword [ebp - 0x504], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4d0]
call fcn.00451e40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.00406930
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00406930
mov eax, dword [ebp - 0x504]
jmp 0x4519c8
mov dword [ebp - 0x4d8], 1
cmp dword [ebp - 0x4d8], 0
je 0x451988
push 0x4d9f48
lea eax, [ebp - 0x498]
push eax
call fcn.004a29a3
add esp, 8
test eax, eax
je 0x4518d5
push 0x4d9f4c
lea ecx, [ebp - 0x498]
push ecx
call fcn.004a29a3
add esp, 8
test eax, eax
jne 0x4518ff
mov esi, esp
lea edx, [ebp - 0x4c4]
push edx
lea ecx, [ebp - 0x4d0]
call fcn.0042cd20
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x4d8], eax
jmp 0x451898
mov eax, dword [ebp - 0x4c4]
and eax, 0x10
je 0x45195b
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x4f8]
call fcn.00409680
mov byte [ebp - 4], 3
lea edx, [ebp - 0x498]
push edx
lea ebx, [ebp - 0x4f8]
call fcn.0048c250
lea edi, [ebp - 0x4f8]
call fcn.0048c000
lea eax, [ebp - 0x4f8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00451ca0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4f8]
call fcn.00406930
mov esi, esp
lea ecx, [ebp - 0x4c4]
push ecx
lea ecx, [ebp - 0x4d0]
call fcn.0042cd20
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x4d8], eax
jmp 0x451898
mov dword [ebp - 0x508], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4d0]
call fcn.00451e40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.00406930
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00406930
mov eax, dword [ebp - 0x508]
push edx
mov ecx, ebp
push eax
lea edx, [0x451a04]
call fcn.004c3b59
pop eax
pop edx
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.004a1873
add esp, 0x508
cmp ebp, esp
call fcn.004c3b36
mov esp, ebp
pop ebp
ret 8