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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8cc
mov edi, dword [esp + 0x8e0]
lea eax, [esp + 0x8c]
lea ebp, [esp + 0x190]
mov dword [esp], eax
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], edi
mov dword [esp], ebp
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call sub.msvcrt.dll_strrchr
test eax, eax
je 0x401d60
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, ebp
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x401af9
mov esi, edx
shr esi, 0x10
test edx, 0x8080
cmove edx, esi
lea esi, [ecx + 2]
cmove ecx, esi
mov ebx, edx
add bl, dl
sbb ecx, 3
cmp eax, 1
je 0x401da0
mov esi, 0x2a5c
mov byte [ecx + 2], 0
lea edx, [esp + 0x8c]
mov word [ecx], si
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x401b47
mov ecx, eax
mov ebx, 0x5c
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
mov word [edx], bx
lea eax, [esp + 0x398]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
sub esp, 8
mov ebp, eax
mov dword [esp + 0x18], 0xa
lea ebx, [esp + 0x3c4]
cmp eax, 0xffffffff
je 0x401c4e
lea eax, [esp + 0x398]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
sub esp, 8
test eax, eax
je 0x401c42
mov edi, 0x4a207c
mov ecx, 2
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x401bb0
mov edi, 0x4a207e
mov ecx, 3
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x401bb0
lea eax, [esp + 0x8c]
mov dword [esp + 4], eax
lea eax, [esp + 0x294]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [esp + 0x294]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcat
test byte [esp + 0x398], 0x10
jne 0x401c74
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x401c60
sub dword [esp + 0x18], 1
jmp 0x401bb0
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
add esp, 0x8cc
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x294]
mov dword [esp], eax
call fcn.00401810
jmp 0x401bb0
movzx edx, byte [esp + 0x4d8]
lea esi, [esp + 0x4d8]
test dl, dl
je 0x401caa
movzx ecx, byte [esp + 0x1f]
xor eax, eax
lea esi, [esp + 0x4d8]
cmp dl, 0x5c
cmove ecx, eax
add eax, 1
movzx edx, byte [esi + eax]
test dl, dl
jne 0x401c95
mov byte [esp + 0x1f], cl
movsx ecx, byte [esp + 0x1f]
xor eax, eax
movzx edx, byte [esp + ecx + 0x4d9]
add ecx, esi
test dl, dl
je 0x401cd0
nop
mov byte [esp + eax + 0x28], dl
add eax, 1
movzx edx, byte [ecx + eax + 1]
test dl, dl
jne 0x401cc0
mov edx, dword [esp + 0x8e4]
test edx, edx
je 0x401d00
sub dword [esp + 0x8e4], 1
lea eax, [esp + 0x294]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
jmp 0x401bb0
movzx eax, byte [esp + 0x28]
and eax, 0xffffffdf
cmp al, 0x5a
je 0x401cdb
mov edx, esi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x401d0e
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
mov eax, 0x5c
sbb edx, 3
mov word [edx], ax
mov dword [esp + 4], 2
mov dword [esp], esi
call fcn.00401aa0
jmp 0x401ce3
mov ecx, ebp
mov edx, dword [ecx]
add ecx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x401d62
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ecx + 2]
cmove ecx, edx
mov ebx, eax
add bl, al
sbb ecx, 3
jmp 0x401b34
mov edi, 0x2a
mov word [ecx], di
jmp 0x401b7f