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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6483b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov eax, dword [0x84cd00]
mov dword [ebp - 0x14], eax
mov edx, dword [edi]
cmp edx, 0xffffffff
jne 0x64826f
mov edx, dword [edi + 4]
mov eax, dword [edx - 8]
test eax, eax
je 0x648340
mov dword [ebp - 0x24], edx
mov eax, dword [edx - 0xc]
cmp eax, 0xffffffff
je 0x6481ac
inc eax
mov dword [edx - 0xc], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0
push edi
mov dword [esp], edx
call fcn.00639ee0
pop ecx
movzx eax, al
test eax, eax
jne 0x6481d0
push 0x5c
push 1
lea ecx, [ebp - 0x24]
call fcn.0061f020
mov ebx, dword [edi + 8]
mov eax, dword [ebx - 8]
mov edx, 0x799034
cmp eax, 0
cmove ebx, edx
test ebx, ebx
je 0x6481ee
push ebx
call fcn.007444aa
pop ecx
jmp 0x6481f0
xor eax, eax
push eax
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.006203c0
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
mov dword [edi], eax
add ecx, 0xfffffff4
mov edx, dword [ecx]
cmp edx, 0xffffffff
je 0x64822d
dec edx
mov dword [ecx], edx
jne 0x64822b
call fcn.0061ff50
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x648239
mov esi, 1
jmp 0x648271
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x64824f
cmp ebx, 0x12
jne 0x648310
mov ecx, dword [ebp - 0x14]
call fcn.007470f0
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
xor esi, esi
test esi, esi
je 0x648279
xor esi, esi
jmp 0x648290
lea eax, [ebp - 0x274]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x64837d
lea eax, [ebp - 0x274]
push edi
call fcn.006483d0
pop ecx
mov ebx, eax
lea eax, [ebp - 0x274]
push edi
call fcn.006483c0
movzx edx, word [ebx]
add esp, 4
cmp edx, 0x2e
je 0x64834e
mov edx, dword [edi + 0xc]
test dl, 1
jne 0x6482c6
test al, 0x10
je 0x648271
test dl, 2
jne 0x6482cf
test al, 0x10
jne 0x648271
test dl, 4
jne 0x6482d8
test al, 6
jne 0x648271
mov ecx, dword [ebp + 8]
push ebx
call fcn.00620740
mov ecx, dword [ebp - 0x14]
call fcn.007470f0
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.00629330
test eax, eax
je 0x648339
push 0
push str.Can_not_enumerate_files_in_directory__s
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
push dword [edi + 4]
push eax
push ebx
call fcn.00630510
add esp, 0xc
jmp 0x64824f
mov eax, str.Can_not_enumerate_files_in_directory__s
jmp 0x648327
mov edx, dword [0x83b878]
mov dword [ebp - 0x24], edx
jmp 0x6481ac
movzx edx, word [ebx + 2]
cmp edx, 0x2e
je 0x648370
test edx, edx
jne 0x6482ba
mov edx, dword [edi + 0xc]
test dl, 8
je 0x648271
jmp 0x6482bd
movzx edx, word [ebx + 4]
test edx, edx
je 0x64835f
jmp 0x6482ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
call fcn.007470f0
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4