Function at 0x66cada10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x49c
mov ebx, dword [ebp + 0xc]
test byte [0x66ce1808], 8
jne 0x66cadb30
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
cmp eax, 0x101
ja 0x66cadb10
mov eax, dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x470]
mov dword [esp], ebx
mov dword [ebp - 0x47c], eax
call eax
mov dword [esp + 4], 0x66cea608
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0x268]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.kernel32.dll_FindFirstFileW
sub esp, 8
mov esi, eax
cmp eax, 0xffffffff
je 0x66cadb10
mov edi, dword [sym.imp.ucrtbase.dll_wcscmp]
lea ebx, [ebp - 0x23c]
lea esi, [esi]
nop
mov dword [esp + 4], 0x66cea604
mov dword [esp], ebx
call edi
test eax, eax
je 0x66cadac6
mov dword [esp + 4], 0x66cea5fc
mov dword [esp], ebx
call edi
test eax, eax
jne 0x66cadc10
lea eax, [ebp - 0x268]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.kernel32.dll_FindNextFileW
sub esp, 8
test eax, eax
jne 0x66cadaa0
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 8
mov eax, dword [ebp + 8]
mov word [eax], di
mov dword [esp], esi
xor esi, esi
call sub.kernel32.dll_FindClose
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
xor edx, edx
xor esi, esi
mov dword [eax], 0xa1
mov eax, dword [ebp + 8]
mov word [eax], dx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x66cadd9a
mov eax, ebx
shr eax, 0x10
je 0x66cadc50
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call sub.kernel32.dll_IsBadStringPtrW
mov edx, 0x66ce9fc7
sub esp, 8
test eax, eax
jne 0x66cadc65
movzx edx, word [ebx]
test dx, dx
je 0x66cadda4
nop
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x66cadb70
mov esi, 0x224c
mov dword [ebp + 0xc], ebx
lea eax, [ebp - 0x266]
mov word [ebp - 0x268], si
mov esi, ebx
jmp 0x66cadbde
cmp dx, 9
je 0x66cadcb0
cmp dx, 0xa
jne 0x66cadce6
mov edi, 0x6e5c
add eax, 2
mov word [eax - 2], di
lea edx, [ebp - 0x146]
lea edi, [ecx - 1]
cmp eax, edx
ja 0x66cadd58
test ecx, ecx
jle 0x66cadd58
movzx edx, word [esi]
mov ecx, edi
add esi, 2
cmp dx, 0xd
je 0x66cadcc8
jbe 0x66cadba0
cmp dx, 0x22
je 0x66cadd40
cmp dx, 0x5c
jne 0x66cadcd9
mov ebx, 0x5c5c
add eax, 2
mov word [eax - 2], bx
jmp 0x66cadbc0
mov eax, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x47c]
call eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], 0
xor eax, eax
test byte [ebp - 0x268], 0x10
setne al
add eax, 1
mov dword [ecx], eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, bx
mov dword [esp], 0x66ce9fd1
mov dword [esp + 4], eax
call fcn.66c8e7a0
mov edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.__p__s__p__p__n
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], str.tr2_sys__Open_dir_wchar
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x66ce1808
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.66c8edb0
jmp 0x66cada2c
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x66cadbc0
mov ebx, 0x725c
add eax, 2
mov word [eax - 2], bx
jmp 0x66cadbc0
lea edi, [edx - 0x20]
cmp di, 0x5e
jbe 0x66cadd90
mov edi, edx
mov byte [eax], 0x5c
add eax, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefbasic_ostream_char_write]
mov edi, edx
shr di, 8
and edi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefbasic_ostream_char_write]
mov edi, edx
and edx, 0xf
shr di, 4
movzx edx, byte [edx + str.0123456789abcdefbasic_ostream_char_write]
and edi, 0xf
mov byte [eax - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefbasic_ostream_char_write]
mov byte [eax - 1], dl
mov byte [eax - 2], bl
jmp 0x66cadbc0
mov edi, 0x225c
add eax, 2
mov word [eax - 2], di
jmp 0x66cadbc0
mov byte [eax], 0x22
mov ebx, dword [ebp + 0xc]
test edi, edi
jle 0x66caddbd
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
lea eax, [ebp - 0x268]
mov byte [edx], 0
mov dword [esp], eax
call fcn.66cdd510
mov edx, eax
jmp 0x66cadc65
mov byte [eax], dl
add eax, 1
jmp 0x66cadbc0
mov edx, 0x66ce9fc0
jmp 0x66cadc65
mov byte [ebp - 0x266], 0x22
mov eax, 0x224c
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
lea edx, [eax + 1]
jmp 0x66cadd72