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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x548
lea eax, [ebp - 0x548]
push ebx
push 0x200
push 0
push eax
call fcn.00409fd0
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x348]
add esp, 0xc
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4027f7
lea ecx, [ebp - 0x348]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x402808
mov ax, word [0x41f4e4]
mov word [ecx], ax
mov al, byte [0x41f4e6]
mov byte [ecx + 2], al
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x402a16
push esi
push edi
mov esi, eax
test byte [ebp - 0x140], 0x10
je 0x402911
lea ecx, [ebp - 0x114]
cmp byte [ecx], 0x2e
jne 0x402869
movzx eax, byte [ecx + 1]
test al, al
je 0x4029f7
lea edx, [ebp - 0x114]
mov edi, 0x41f4e8
xor ecx, ecx
movzx eax, byte [edx + ecx]
cmp al, byte [edi + ecx]
jne 0x40288a
inc ecx
cmp ecx, 3
jne 0x402876
jmp 0x4029f7
lea edx, [ebp - 0x244]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x402894
lea edi, [ebp - 0x244]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4028a5
mov ax, word [0x41f414]
lea edx, [ebp - 0x114]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4028be
lea edi, [ebp - 0x244]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4028ce
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x244]
mov byte [ecx + 0x428978], al
inc ecx
test al, al
jne 0x4028e6
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
inc eax
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.004027ca
jmp 0x4029f1
lea eax, [ebp - 0x114]
push str..txt
push eax
call fcn.004097e0
pop ecx
pop ecx
test eax, eax
je 0x4029f7
cmp dword [ebp + 0xc], 1
jg 0x4029f7
mov edx, 0x428978
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40293f
mov edi, 0x428978
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40294f
mov ax, word [0x41f414]
lea edx, [ebp - 0x114]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402968
mov edi, 0x428978
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402977
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x428978
call fcn.00403e66
pop ecx
cmp eax, 0x7530
jge 0x4029f4
mov esi, str.Documents_
lea edi, [ebp - 0x548]
lea edx, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4029b7
lea edi, [ebp - 0x548]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4029c7
mov ecx, edx
lea eax, [ebp - 0x548]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x428978
mov ecx, edx
push eax
push dword [ebp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405a3b
add esp, 0xc
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402845
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret