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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x350
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi], eax
jl 0x401038
cmp byte [0x40c400], 0
jne 0x4012d4
push str.Exceeded_maximum_classpath_size
call fcn.00403518
pop ecx
mov byte [0x40c400], 1
jmp 0x4012d4
push ebx
push edi
push dword [ebp + 8]
push str.Expanding_Classpath:__s
call fcn.0040324d
pop ecx
pop ecx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0x2a
push dword [ebp + 8]
call fcn.00406ba4
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
pop ecx
pop ecx
jne 0x4010a8
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4010a8
lea eax, [ebp - 0x10c]
push eax
call fcn.00404676
mov edx, dword [ebp + 0xc]
pop ecx
mov ecx, dword [esi]
mov dword [edx + ecx*4], eax
inc dword [esi]
jmp 0x4012d2
lea eax, [ebp - 0x10c]
push eax
call fcn.00406c18
pop ecx
xor cl, cl
xor esi, esi
test eax, eax
mov dword [ebp - 4], eax
mov dword [ebp + 8], ebx
jl 0x4012d2
mov al, byte [ebp + esi - 0x10c]
cmp al, 0x2f
je 0x4010e2
cmp al, 0x5c
je 0x4010e2
test al, al
je 0x4010e2
cmp al, 0x2a
jne 0x4010eb
mov cl, 1
jmp 0x4010eb
test cl, cl
jne 0x4010f6
mov dword [ebp + 8], esi
mov ebx, esi
inc esi
cmp esi, dword [ebp - 4]
jle 0x4010c7
jmp 0x4012d2
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp + esi - 0x10c], 0
call edi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4012d2
lea eax, [ebp - 0x324]
push 0x408220
push eax
call fcn.00406bf5
test eax, eax
pop ecx
pop ecx
mov edi, 0x40821c
je 0x4011e6
lea eax, [ebp - 0x324]
push 0x408218
push eax
call fcn.00406bf5
test eax, eax
pop ecx
pop ecx
je 0x4011e6
test ebx, ebx
je 0x401161
mov byte [ebp + ebx - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406be0
test ebx, ebx
pop ecx
pop ecx
je 0x401182
mov byte [ebp + ebx - 0x10c], 0x2f
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00406bbd
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406bbd
mov eax, dword [ebp - 4]
add esp, 0x10
dec eax
cmp esi, eax
jge 0x4011d1
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00406bbd
lea eax, [ebp + esi - 0x10b]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406bbd
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x210]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call section..text
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x4012be
lea eax, [ebp - 0x324]
push 0x408220
push eax
call fcn.00406bf5
test eax, eax
pop ecx
pop ecx
je 0x4012be
lea eax, [ebp - 0x324]
push 0x408218
push eax
call fcn.00406bf5
test eax, eax
pop ecx
pop ecx
je 0x4012be
mov eax, dword [ebp + 8]
test eax, eax
je 0x401236
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406be0
mov eax, dword [ebp + 8]
test eax, eax
pop ecx
pop ecx
je 0x40125a
mov byte [ebp + eax - 0x10c], 0x2f
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00406bbd
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406bbd
mov eax, dword [ebp - 4]
add esp, 0x10
dec eax
cmp esi, eax
jge 0x4012a9
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00406bbd
lea eax, [ebp + esi - 0x10b]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406bbd
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x210]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call section..text
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x4011f1
pop edi
pop ebx
pop esi
leave
ret 0x10