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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0xfcc
call fcn.0040f0a0
sub esp, eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x204], 0
jne 0x404b83
mov dword [esp + 8], 0x204
mov dword [esp + 4], eax
lea ebx, [ebp - 0xc2c]
mov dword [esp], ebx
call fcn.00409768
xor eax, eax
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub ecx, 2
mov al, byte [ebp + ecx - 0xc2c]
cmp al, 0x5c
je 0x404a7a
cmp al, 0x2f
jne 0x404a82
mov byte [ebp + ecx - 0xc2c], 0
mov dword [esp], ebx
call fcn.0040486b
test al, al
je 0x404b83
mov dword [esp + 8], 0x104
lea esi, [ebp - 0xa28]
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00409e26
mov dword [esp + 8], 0x21
lea edi, [ebp - 0xf91]
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.004046e2
mov dword [esp], ebx
call fcn.004049eb
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], str._d_a_s_a_I64u_a_s_a_s_a
mov dword [esp + 4], 0x800
lea ebx, [ebp - 0x818]
mov dword [esp], ebx
call fcn.004099d7
cmp eax, 0xffffffff
je 0x404b2e
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x208]
mov dword [esp], eax
call fcn.00403ace
mov dword [esp], 0x1f4
call fcn.00405138
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x208]
mov dword [esp], eax
call fcn.00403ace
mov eax, dword [ebp + 8]
cmp byte [eax + 0x20d], 0
je 0x404e37
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.00405186
jmp 0x404e37
mov dword [esp], 0x8003
call sub.KERNEL32.dll_SetErrorMode
push esi
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4108de
mov dword [esp + 4], 0x204
lea ebx, [ebp - 0xe30]
mov dword [esp], ebx
call fcn.004099d7
inc eax
je 0x404e37
lea eax, [ebp - 0xf70]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_FindFirstFileA
push ebx
push ebx
mov esi, eax
cmp eax, 0xffffffff
je 0x404e0e
lea ebx, [ebp - 0xf44]
lea edi, [ebp - 0xc2c]
cmp dword [0x415280], 0
jne 0x404bfe
mov dword [esp], esi
call sub.KERNEL32.dll_FindClose
push ecx
jmp 0x404e0e
mov dword [esp + 4], 0x4108e2
mov dword [esp], ebx
call fcn.00409b1f
test eax, eax
je 0x404ded
mov dword [esp + 4], 0x4108e4
mov dword [esp], ebx
call fcn.00409b1f
test eax, eax
je 0x404ded
mov edx, dword [ebp - 0xf70]
test dl, 0x10
mov eax, dword [ebp + 8]
je 0x404d12
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], str._d_a_s_a_s_a
mov dword [esp + 4], 0x800
lea edx, [ebp - 0x818]
mov dword [esp], edx
mov dword [ebp - 0xf9c], edx
call fcn.004099d7
cmp eax, 0xffffffff
mov edx, dword [ebp - 0xf9c]
je 0x404ded
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0x4b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x208]
mov dword [esp], eax
call fcn.00403ace
mov eax, dword [ebp + 8]
cmp byte [eax + 0x20c], 0
je 0x404ded
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4108e7
mov dword [esp + 4], 0x204
lea edx, [ebp - 0xa28]
mov dword [esp], edx
mov dword [ebp - 0xf9c], edx
call fcn.004099d7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x204]
inc ecx
mov dword [ebp - 0x824], ecx
mov eax, dword [eax + 0x208]
mov dword [ebp - 0x820], eax
mov byte [ebp - 0x81c], 1
mov edx, dword [ebp - 0xf9c]
mov dword [esp], edx
call fcn.00404a21
jmp 0x404ded
mov ecx, dword [ebp - 0xf50]
mov edx, dword [ebp - 0xf54]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x410921
mov dword [esp + 4], 0x204
mov dword [esp], edi
mov dword [ebp - 0xf9c], edx
mov dword [ebp - 0xfa0], ecx
call fcn.004099d7
mov dword [esp + 8], 0x21
lea eax, [ebp - 0xf91]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [ebp - 0xfa4], eax
call fcn.004046e2
mov eax, dword [ebp - 0xfa4]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp - 0xfa0]
mov dword [esp + 0x14], ecx
mov edx, dword [ebp - 0xf9c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ebx
mov eax, dword [ebp - 0xf70]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._d_a_s_a_I64u_a_s_a_s_a
mov dword [esp + 4], 0x800
lea edx, [ebp - 0x818]
mov dword [esp], edx
mov dword [ebp - 0xf9c], edx
call fcn.004099d7
cmp eax, 0xffffffff
mov edx, dword [ebp - 0xf9c]
je 0x404ded
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0x4b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x208]
mov dword [esp], eax
call fcn.00403ace
lea eax, [ebp - 0xf70]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_FindNextFileA
push edx
push edx
test eax, eax
jne 0x404be7
jmp 0x404bf0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x204], 0
jne 0x404e37
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4c
jmp 0x404b55
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret