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

Disassembly:
push 0x1dc
mov eax, 0x4413f3
call fcn.00429926
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1e4], eax
call fcn.00408032
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00408032
push esi
mov byte [ebp - 4], 1
call fcn.0040959e
pop ecx
test al, al
je 0x40ad57
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040898b
jmp 0x40adb0
push esi
push 0x401ebc
push dword [0x44a13c]
call fcn.004082bd
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0042622a
add esp, 0x14
test al, al
jne 0x40ad89
mov ecx, dword [0x44a13c]
push 0x401e9c
call fcn.00407c9e
test ebx, ebx
je 0x40adb0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad92
sub eax, edx
je 0x40adb0
lea eax, [ebp - 0x2c]
push eax
call fcn.00424550
pop ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040a1bb
mov eax, dword [ebp - 0x28]
push 0x10
pop edi
cmp dword [ebp - 0x14], edi
jae 0x40adbe
lea eax, [ebp - 0x28]
push dword [ebp - 0x1e0]
push eax
push 0x401e6c
push dword [0x44a13c]
call fcn.004082bd
mov eax, dword [ebp - 0x28]
add esp, 0x10
cmp dword [ebp - 0x14], edi
jae 0x40ade3
lea eax, [ebp - 0x28]
push eax
call fcn.004238df
test al, al
mov eax, dword [ebp - 0x28]
pop ecx
jne 0x40ae2f
cmp dword [ebp - 0x14], edi
jae 0x40adf9
lea eax, [ebp - 0x28]
push eax
push 0x401e4c
push dword [0x44a13c]
call fcn.004082bd
add esp, 0xc
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00407cc4
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00407cc4
mov al, bl
call fcn.004299b8
ret
cmp dword [ebp - 0x14], edi
jae 0x40ae37
lea eax, [ebp - 0x28]
xor esi, esi
push esi
push dword [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00424875
add esp, 0x14
test al, al
jne 0x40ae6e
mov eax, dword [ebp - 0x18]
add eax, eax
cmp eax, 0x104
jbe 0x40ae6e
mov ecx, dword [0x44a13c]
push 0x401e08
call fcn.00407c9e
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], edi
jae 0x40ae79
lea eax, [ebp - 0x44]
push eax
push 0x401de4
push dword [0x44a13c]
call fcn.004082bd
mov eax, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], edi
jae 0x40ae98
lea eax, [ebp - 0x44]
push eax
call fcn.004238ac
pop ecx
test al, al
je 0x40af36
lea ecx, [ebp - 0x64]
call fcn.00408032
mov ebx, dword [ebp - 0x1e4]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 2
mov dword [ebx], 4
cmp dword [ebp - 0x30], edi
jae 0x40aeca
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.00425a3b
pop ecx
pop ecx
test al, al
je 0x40af07
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], edi
jae 0x40aee5
lea eax, [ebp - 0x60]
push eax
push 0x401dcc
push dword [0x44a13c]
call fcn.004082bd
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp dword [ebp - 0x4c], edi
jae 0x40af04
lea eax, [ebp - 0x60]
push eax
jmp 0x40af1c
mov ecx, dword [0x44a13c]
push 0x401da8
call fcn.00407c9e
push 0x401da4
lea ecx, [ebx + 0x28]
call fcn.0040abb9
push esi
lea ecx, [ebp - 0x64]
push 1
call fcn.00407cc4
mov bl, 1
jmp 0x40ae0f
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
jg 0x40af67
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jae 0x40af48
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1e0]
push 0x401d7c
push dword [0x44a13c]
call fcn.004082bd
add esp, 0x10
jmp 0x40ae0d
lea ecx, [ebp - 0x80]
call fcn.00408032
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.00424550
mov eax, dword [ebp - 0x28]
pop ecx
cmp dword [ebp - 0x14], edi
jae 0x40af88
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x80]
push 0x401d74
push eax
call fcn.00425da7
mov eax, dword [ebp - 0x7c]
add esp, 0xc
cmp dword [ebp - 0x68], edi
jae 0x40afa5
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x1dc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b051
test byte [ebp - 0x1dc], 0x10
je 0x40b03b
cmp byte [ebp - 0x1b0], 0x2e
je 0x40b03b
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00408941
lea eax, [ebp - 0x1b0]
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.0040a1bb
mov eax, dword [ebp - 0x98]
cmp dword [ebp - 0x84], edi
jae 0x40b009
lea eax, [ebp - 0x98]
push dword [ebp - 0x1e4]
lea ecx, [ebx - 1]
push ecx
push 0
push eax
push dword [ebp - 0x1e0]
call fcn.0040ad02
add esp, 0x14
test al, al
jne 0x40b069
push 0
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.00407cc4
lea eax, [ebp - 0x1dc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40afbe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00407cc4
jmp 0x40ae0d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.00407cc4
push 0
lea ecx, [ebp - 0x80]
jmp 0x40af28