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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fc0
call fcn.0041e970
push edi
mov byte [ebp - 0xa28], 0
mov ecx, 0x289
xor eax, eax
lea edi, [ebp - 0xa27]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x1e7c], 0
mov ecx, 0x289
xor eax, eax
lea edi, [ebp - 0x1e7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x1454], 0
mov ecx, 0x289
xor eax, eax
lea edi, [ebp - 0x1453]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [0x42cd25], 1
xor eax, eax
mov al, byte [0x42987c]
test eax, eax
je 0x4072bb
push 0x2a
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407cf0
add esp, 8
test eax, eax
je 0x40726e
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00407cf0
add esp, 8
test eax, eax
je 0x40722f
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.00407cf0
add esp, 8
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1454]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x429890
push 0x5c
lea ecx, [ebp - 0x1454]
push ecx
call fcn.00407cf0
add esp, 8
add eax, 1
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x429894
mov edx, dword [ebp + 0xc]
push edx
call fcn.00405e50
add esp, 8
test eax, eax
je 0x407226
push 0x429898
mov eax, dword [ebp + 0xc]
push eax
call fcn.00405e50
add esp, 8
test eax, eax
jne 0x40722d
mov byte [0x42cd30], 1
jmp 0x407253
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1454]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp + 8]
push edx
push 0x42989c
lea eax, [ebp - 0x1e7c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x4072b9
push 0x4298a0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov edx, dword [ebp + 8]
push edx
push 0x4298a4
lea eax, [ebp - 0x1454]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x4298a8
lea edx, [ebp - 0x1e7c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov byte [0x42cd30], 1
jmp 0x4072f1
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x1454]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_s
lea ecx, [ebp - 0x1e7c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x1fbc]
push edx
lea eax, [ebp - 0x1e7c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xa2c], eax
cmp dword [ebp - 0xa2c], 0xffffffff
je 0x4073f2
push 0x4298bc
lea ecx, [ebp - 0x1f90]
push ecx
call fcn.00405e50
add esp, 8
test eax, eax
je 0x4073c9
push 0x4298c0
lea edx, [ebp - 0x1f90]
push edx
call fcn.00405e50
add esp, 8
test eax, eax
je 0x4073c9
lea eax, [ebp - 0x1454]
push eax
lea ecx, [ebp - 0xa28]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x5c
lea edx, [ebp - 0xa28]
push edx
call fcn.00407cf0
add esp, 8
test eax, eax
je 0x40739d
lea eax, [ebp - 0x1f90]
push eax
push 0x5c
lea ecx, [ebp - 0xa28]
push ecx
call fcn.00407cf0
add esp, 8
add eax, 1
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x4073b3
lea edx, [ebp - 0x1f90]
push edx
lea eax, [ebp - 0xa28]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
lea ecx, [ebp - 0xa28]
push ecx
lea edx, [ebp - 0x1fbc]
push edx
call fcn.0040706d
add esp, 8
lea eax, [ebp - 0x1fbc]
push eax
mov ecx, dword [ebp - 0xa2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407318
mov edx, dword [ebp - 0xa2c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov al, byte [0x42cd25]
test eax, eax
je 0x4075cf
xor ecx, ecx
mov cl, byte [0x42987c]
test ecx, ecx
je 0x407489
push 0x5c
lea edx, [ebp - 0x1454]
push edx
call fcn.00407cf0
add esp, 8
test eax, eax
jne 0x407489
push 0x2a
lea eax, [ebp - 0x1454]
push eax
call fcn.00407cf0
add esp, 8
test eax, eax
je 0x40745f
lea ecx, [ebp - 0x1fbc]
push ecx
push 0x4298c4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1fc0], eax
cmp dword [ebp - 0x1fc0], 0xffffffff
jne 0x40745d
jmp 0x4075cf
jmp 0x407487
lea edx, [ebp - 0x1fbc]
push edx
lea eax, [ebp - 0x1454]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1fc0], eax
cmp dword [ebp - 0x1fc0], 0xffffffff
jne 0x407487
jmp 0x4075cf
jmp 0x4074b1
lea ecx, [ebp - 0x1fbc]
push ecx
lea edx, [ebp - 0x1454]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1fc0], eax
cmp dword [ebp - 0x1fc0], 0xffffffff
jne 0x4074b1
jmp 0x4075cf
mov byte [0x42987c], 0
mov eax, dword [ebp - 0x1fbc]
and eax, 0x10
test eax, eax
je 0x4075a6
push 0x4298c8
lea ecx, [ebp - 0x1f90]
push ecx
call fcn.00405e50
add esp, 8
test eax, eax
je 0x4075a6
push 0x4298cc
lea edx, [ebp - 0x1f90]
push edx
call fcn.00405e50
add esp, 8
test eax, eax
je 0x4075a6
lea eax, [ebp - 0x1454]
push eax
lea ecx, [ebp - 0xa28]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x5c
lea edx, [ebp - 0xa28]
push edx
call fcn.00407cf0
add esp, 8
test eax, eax
je 0x407552
lea eax, [ebp - 0x1f90]
push eax
push 0x5c
lea ecx, [ebp - 0xa28]
push ecx
call fcn.00407cf0
add esp, 8
add eax, 1
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x407568
lea edx, [ebp - 0x1f90]
push edx
lea eax, [ebp - 0xa28]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xa28]
push edx
call fcn.0040710d
add esp, 8
xor eax, eax
mov al, byte [0x42cd30]
test eax, eax
je 0x4075a6
lea ecx, [ebp - 0xa28]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4075a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406bb9
add esp, 4
lea edx, [ebp - 0x1fbc]
push edx
mov eax, dword [ebp - 0x1fc0]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4074b8
mov ecx, dword [ebp - 0x1fc0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov esp, ebp
pop ebp
ret