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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x774
push dword [ebp + 0x10]
lea eax, [ebp - 0x564]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x564]
push eax
call fcn.00404274
lea eax, [ebp - 0x564]
push 0x4110cc
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x564]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x408167
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__strcmpi]
push edi
call fcn.00401366
test byte [ebp - 0x144], 0x10
je 0x407ef1
cmp byte [ebp - 0x118], 0x2e
je 0x40814c
lea eax, [ebp - 0x774]
push 0x104
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0x10]
call fcn.004049c7
lea eax, [ebp - 0x774]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00407e3f
add esp, 0x1c
jmp 0x40814c
lea eax, [ebp - 0x66c]
push 0x104
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0x10]
call fcn.004049c7
lea eax, [ebp - 0x118]
push eax
call fcn.004046b9
mov edi, eax
xor eax, eax
add esp, 0x14
cmp dword [ebx + 8], eax
jne 0x407f2d
cmp dword [ebx + 4], eax
je 0x40814c
cmp edi, eax
mov dword [ebp + 8], eax
je 0x40814c
push 0x41251c
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x407f4d
mov dword [ebp + 8], 1
push 0x412560
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x407f69
push 0x41255c
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x407f70
mov dword [ebp + 8], 2
push 6
lea eax, [ebp - 0x118]
push str.readme
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x407fca
push 0x412550
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x407fc3
push 0x41254c
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x407fc3
push str.html
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x407fc3
push 0x412540
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x407fca
mov dword [ebp + 8], 3
push 6
lea eax, [ebp - 0x118]
push str.manual
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x408024
push 0x412550
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x40801d
push 0x41254c
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x40801d
push str.html
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x40801d
push 0x412540
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x408024
mov dword [ebp + 8], 4
cmp dword [ebp + 8], 0
jle 0x40814c
cmp byte [ebx + 0x1180], 0
je 0x40814c
mov al, byte [0x412a30]
push 0x41
mov byte [ebp - 0x24c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x24b]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
add eax, 0x18f
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x66c]
push eax
push dword [ebp + 8]
call fcn.00407d85
add esp, 0x10
test eax, eax
je 0x40814c
cmp dword [ebx + 8], 0
je 0x4080d8
mov al, byte [0x412a30]
push 0x41
mov byte [ebp - 0x354], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x353]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x354]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x24c]
push 0
push eax
lea eax, [ebx + 0x1180]
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.00407400
lea eax, [ebp - 0x354]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x19d8
push eax
call fcn.004013fe
add esp, 0x20
cmp dword [ebx + 4], 0
je 0x40814c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 1
jne 0x40814c
cmp dword [ebp + 8], 1
jne 0x40814c
mov al, byte [0x412a30]
push 0x41
mov byte [ebp - 0x45c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x45b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x45c]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x24c]
push 0
push eax
lea eax, [ebx + 0x1285]
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.00407400
lea eax, [ebp - 0x45c]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x19d8
push eax
call fcn.004013fe
add esp, 0x20
mov dword [ebx + 0x138c], 1
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x407ea3
pop edi
pop esi
pop ebx
leave
ret