Function at 0x494ea0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov edx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [ebp - 0x460]
mov dword [ebp - 4], ecx
push edi
sub esi, edx
lea ebx, [ebx]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x494ec0
mov edx, dword [ebp + 0x10]
mov eax, dword [0x4dbeb4]
test edx, edx
je 0x494f4a
mov esi, edx
lea edi, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x494ee1
sub esi, edi
sar esi, 1
je 0x494f4a
cmp word [edx], 0x5c
je 0x494f0f
lea edi, [ebp - 0x460]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x494f01
mov dword [edi], eax
mov esi, edx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x494f11
lea edi, [ebp - 0x460]
sub edx, esi
add edi, 0xfffffffe
jmp 0x494f30
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x494f30
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edx, edx
lea esp, [esp]
movzx ecx, word [ebp + edx - 0x460]
lea edx, [edx + 2]
mov word [ebp + edx - 0x66e], cx
test cx, cx
jne 0x494f50
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x494fda
mov esi, edx
lea edi, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x494f74
sub esi, edi
sar esi, 1
je 0x494fda
cmp word [edx], 0x5c
je 0x494fa2
lea edi, [ebp - 0x460]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x494f94
mov dword [edi], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x494fa4
lea edi, [ebp - 0x460]
sub edx, esi
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x494fc0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x460]
push eax
call ebx
mov esi, eax
xor edi, edi
cmp esi, 0xffffffff
je 0x495063
mov ebx, dword [ebp - 4]
lea esp, [esp]
test byte [ebp - 0x254], 0x10
jne 0x49502d
lea eax, [ebp - 0x254]
mov ecx, ebx
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x66c]
push eax
push dword [ebp + 8]
call fcn.00494d50
mov edi, 1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x495000
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp + 8]
test edi, edi
je 0x495066
push 0x4e34f4
push esi
call fcn.004aa979
add esp, 8
jmp 0x495066
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x460]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x49516a
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x495090
test byte [ebp - 0x254], 0x10
je 0x495151
mov ecx, 0x4e34bc
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4950ce
test dx, dx
je 0x4950ca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4950ce
add eax, 4
add ecx, 4
test dx, dx
jne 0x4950a8
xor eax, eax
jmp 0x4950d3
sbb eax, eax
or eax, 1
test eax, eax
je 0x495151
mov ecx, 0x4ea3f4
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x495108
test dx, dx
je 0x495104
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x495108
add eax, 4
add ecx, 4
test dx, dx
jne 0x4950e2
xor eax, eax
jmp 0x49510d
sbb eax, eax
or eax, 1
test eax, eax
je 0x495151
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x66c]
push eax
push str._s_s_n
push esi
call fcn.004aa979
add esp, 0x10
cmp dword [ebp + 0x18], 0
je 0x495151
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x228]
push 1
push str..
push eax
lea eax, [ebp - 0x66c]
push eax
push esi
call fcn.00494ea0
lea eax, [ebp - 0x254]
push eax
push edi
call ebx
test eax, eax
jne 0x495090
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14