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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cf2f
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x62819c]
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 eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00476090
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], 0
push eax
call fcn.00479790
add esp, 0xc
push dword [ebp - 0x27c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x4953f1
push 0x5ad788
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00429080
add esp, 0xc
lea ecx, [ebp - 0x278]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x28c], edi
mov edx, dword [ebp - 0x284]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4951ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4953f1
cmp edi, 0xffffffff
je 0x4953e1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
xor bh, bh
test byte [ebp - 0x278], 0x10
je 0x495243
push 0x5ad72c
lea eax, [ebp - 0x24c]
push eax
call esi
test eax, eax
je 0x4953b3
push 0x5ad730
lea eax, [ebp - 0x24c]
push eax
call esi
test eax, eax
je 0x4953b3
mov bh, 1
jmp 0x4953b3
call fcn.00428a90
test eax, eax
je 0x495431
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x495282
movzx eax, ax
lea ecx, [ebp - 0x280]
push eax
call fcn.004295b0
jmp 0x4952b2
lea ecx, [ebp - 0x24c]
lea edx, [ecx + 2]
jmp 0x495290
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495290
sub ecx, edx
lea eax, [ebp - 0x24c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x280]
call fcn.00429870
mov esi, dword [ebp - 0x280]
xor eax, eax
mov ecx, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4952d5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0042daa0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.00478220
mov edx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 4], 3
mov bl, al
cmp edx, 8
jb 0x49533e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x495334
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49543b
push edx
push ecx
call fcn.00546044
add esp, 8
test bl, bl
je 0x49538f
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0042a710
push 1
push eax
mov byte [ebp - 4], 5
call fcn.00444320
mov edx, dword [ebp - 0x288]
add esp, 0x14
mov byte [ebp - 4], 3
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x495391
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x495391
mov bh, 1
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4953ad
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x495207
test bh, bh
jne 0x4953de
push 1
push eax
push dword [ebp - 0x27c]
call fcn.00479880
add esp, 0xc
or ebx, 0xffffffff
test edi, edi
je 0x4953f1
cmp edi, 0xffffffff
je 0x4953f1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x495413
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00545ec7
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004293d0
call fcn.00555394
int3