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

Disassembly:
sub esp, 0x558
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x360]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x56c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x360]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x360]
and ecx, 3
mov dword [esp + 0x14], ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push edx
call ebp
cmp eax, 0xffffffff
jne 0x409ec2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x558
ret 8
test byte [esp + 0x18], 0x10
jne 0x409ee8
mov eax, dword [esp + 0x570]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
mov eax, 1
pop ebx
add esp, 0x558
ret 8
mov edi, 0x413544
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x360]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x364]
push ecx
call ebp
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x409f40
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x558
ret 8
mov esi, 0x413540
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409f6d
test cl, cl
je 0x409f69
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409f6d
add eax, 2
add esi, 2
test cl, cl
jne 0x409f49
xor eax, eax
jmp 0x409f72
sbb eax, eax
sbb eax, 0xffffffff
mov ebp, dword [esp + 0x570]
test eax, eax
je 0x40a07c
mov esi, 0x41353c
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409fae
test cl, cl
je 0x409faa
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409fae
add eax, 2
add esi, 2
test cl, cl
jne 0x409f8a
xor eax, eax
jmp 0x409fb3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a07c
test byte [esp + 0x18], 0x10
je 0x40a070
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x158]
lea edx, [esp + 0x158]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x56c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x15c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41305c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x15c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x15c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00409e50
jmp 0x40a07c
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp]
add eax, ecx
mov dword [ebp], eax
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40a1e8
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push esi
call ebx
test eax, eax
je 0x40a1d9
mov esi, 0x413540
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a0cf
test cl, cl
je 0x40a0cb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a0cf
add eax, 2
add esi, 2
test cl, cl
jne 0x40a0ab
xor eax, eax
jmp 0x40a0d4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a08e
mov esi, 0x41353c
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a105
test cl, cl
je 0x40a101
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a105
add eax, 2
add esi, 2
test cl, cl
jne 0x40a0e1
xor eax, eax
jmp 0x40a10a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a08e
test byte [esp + 0x18], 0x10
je 0x40a1c8
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x158]
lea edx, [esp + 0x158]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x56c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x15c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41305c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x15c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x15c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.00409e50
jmp 0x40a08e
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp]
add eax, ecx
mov dword [ebp], eax
jmp 0x40a08e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40a08e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x558
ret 8