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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9377
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
test esi, esi
je 0x489707
test ebx, ebx
je 0x489707
push 0x20a
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push esi
push eax
call fcn.004bb9d9
add esp, 0xc
test eax, eax
je 0x489707
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004388e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
cmp dword [ebp - 0x258], 8
cmovae eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4894c1
lea ecx, [ebp - 0x26c]
xor edi, edi
call fcn.00433800
mov eax, edi
jmp 0x489709
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
call fcn.004388e0
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0048d540
push 0x4ec44c
lea ecx, [ebp - 0x254]
call fcn.0048d880
cmp dword [ebp - 0x240], 8
lea ecx, [ebp - 0x4bc]
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x4c0], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x48952c
xor edi, edi
jmp 0x4896e3
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x4ec430
lea eax, [ebp - 0x490]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x489566
test dx, dx
je 0x489562
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x489566
add eax, 4
add ecx, 4
test dx, dx
jne 0x489540
xor eax, eax
jmp 0x48956b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4896c7
mov eax, 0x4e79dc
lea ecx, [ebp - 0x490]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4895a6
test dx, dx
je 0x4895a2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4895a6
add ecx, 4
add eax, 4
test dx, dx
jne 0x489580
xor eax, eax
jmp 0x4895ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4896c7
test byte [ebp - 0x4bc], 0x10
je 0x48962e
cmp dword [ebp + 8], 0
je 0x4896c7
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004388e0
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.0048d540
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0048d880
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x23c]
push dword [ebp + 8]
cmovae ecx, dword [ebp - 0x23c]
mov edx, ebx
call fcn.00489400
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x23c]
call fcn.00433800
jmp 0x4896c7
xor eax, eax
mov dword [ebp - 0x228], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x23c], ax
lea ecx, [ebp - 0x23c]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x22c], 0
push eax
call fcn.00439070
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 4
call fcn.0048d540
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0048d880
mov edi, dword [ebx]
lea eax, [ebp - 0x23c]
push eax
push dword [edi + 4]
push edi
call fcn.0048b9a0
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [ebx + 4]
sub ecx, eax
cmp ecx, 1
jb 0x4896fd
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
lea ecx, [ebp - 0x23c]
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov byte [ebp - 4], 2
mov dword [eax], edx
call fcn.00433800
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x4bc]
push eax
push esi
call edi
test eax, eax
jne 0x489532
push esi
lea edi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x254]
call fcn.00433800
lea ecx, [ebp - 0x26c]
call fcn.00433800
mov eax, edi
jmp 0x489709
push str.list_T__too_long
call fcn.004a2bf9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret