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

Disassembly:
sub esp, 0x648
mov dl, byte [0x51ef98]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x259]
mov byte [esp + 0x258], dl
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x664]
mov dword [esp + 0x14], esi
stosw word es:[edi], ax
test ebp, ebp
stosb byte es:[edi], al
jne 0x40daf7
mov dword [esp + 0x664], 0x50d1a8
mov ebp, dword [esp + 0x664]
push 2
push 0x50f0d8
push ebp
mov byte [esp + 0x1f], 0
call fcn.00434480
add esp, 0xc
test eax, eax
je 0x40db22
push 0x50f0d4
push ebp
call fcn.00432780
add esp, 8
test eax, eax
je 0x40db27
mov byte [esp + 0x13], 1
lea eax, [esp + 0x158]
push 0xff
push eax
call fcn.0043434a
add esp, 8
test eax, eax
je 0x40de1c
mov ecx, dword [esi]
mov eax, dword [ecx + 0x21c]
test eax, eax
jne 0x40dbf0
mov ecx, esi
call fcn.0040da00
mov edx, dword [esi]
mov al, byte [esp + 0x668]
mov byte [edx + 0x218], al
mov eax, dword [esi]
mov cl, byte [eax + 0x218]
test cl, cl
je 0x40dbf0
mov cl, byte [esp + 0x13]
test cl, cl
je 0x40db8c
push ebp
lea ecx, [eax + 0x210]
call fcn.0040d790
jmp 0x40dbd5
lea ecx, [esp + 0x158]
push ecx
lea ecx, [eax + 0x210]
call fcn.0040d790
mov edi, 0x50d1a8
mov esi, ebp
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov esi, dword [esp + 0x14]
je 0x40dbd5
mov ecx, dword [esi]
push 0x50d190
add ecx, 0x210
call fcn.0040d6f0
mov ecx, dword [esi]
push ebp
add ecx, 0x210
call fcn.0040d6f0
mov eax, dword [esi]
add eax, 0x210
mov eax, dword [eax]
test eax, eax
jne 0x40dbe7
mov eax, 0x51ef98
push eax
call fcn.004efff8
add esp, 4
mov eax, dword [esi]
push ebp
inc dword [eax + 0x21c]
call fcn.004f012c
add esp, 4
cmp eax, 0xffffffff
je 0x40de14
mov ebx, dword [esp + 0x660]
test bl, bl
je 0x40dcb1
lea eax, [esp + 0x258]
push 0x50d1ac
push eax
call fcn.004326d1
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x258]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40dca6
test byte [esp + 0x18], 0x10
je 0x40dc8f
mov edi, 0x50d1a8
lea esi, [esp + 0x44]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40dc8f
mov edi, 0x50d1a4
lea esi, [esp + 0x44]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40dc8f
mov ecx, dword [esp + 0x65c]
lea eax, [esp + 0x44]
push edx
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0040da90
lea edx, [esp + 0x18]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40dc48
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x664]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x65c]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ddd5
test byte [esp + 0x18], 0x10
jne 0x40ddba
mov dl, byte [0x51ef98]
mov ecx, 0xbf
xor eax, eax
lea edi, [esp + 0x359]
mov byte [esp + 0x358], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0x13]
test al, al
je 0x40dd17
push ebp
lea eax, [esp + 0x35c]
push 0x50d2f0
push eax
call fcn.004326d1
jmp 0x40dd6b
mov edi, 0x50d1a8
mov esi, ebp
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40dd4d
lea eax, [esp + 0x158]
push ebp
push eax
lea ecx, [esp + 0x360]
push str._s_s
push ecx
call fcn.004326d1
mov esi, dword [esp + 0x24]
add esp, 0x10
jmp 0x40dd6e
lea edx, [esp + 0x158]
lea eax, [esp + 0x358]
push edx
push 0x50d2f0
push eax
call fcn.004326d1
mov esi, dword [esp + 0x20]
add esp, 0xc
lea edi, [esp + 0x358]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40dda6
cmp byte [esp + ecx + 0x357], 0x5c
je 0x40dda6
lea edi, [esp + 0x358]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x50d190]
mov word [edi - 1], cx
mov ecx, dword [esi]
lea edx, [esp + 0x358]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0040d7f0
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40dccf
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x158]
push edx
call fcn.004f012c
mov eax, dword [esi]
add esp, 4
mov edx, dword [eax + 0x21c]
dec edx
mov dword [eax + 0x21c], edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x21c]
test ecx, ecx
jne 0x40de1c
mov ecx, esi
call fcn.0040da70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x648
ret 0x10
mov eax, dword [esi]
dec dword [eax + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x648
ret 0x10