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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635ea3
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x6e306c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x290]
call fcn.0040eb80
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x6c22fc
lea ecx, [ebp - 0x290]
push ecx
call fcn.0040fc80
add esp, 0xc
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x290]
call fcn.00404fa0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
jne 0x40cfa4
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x290]
call fcn.0040eb60
mov eax, dword [ebp - 0x2a8]
jmp 0x40d1a1
mov dword [ebp - 0x27c], 0
mov eax, dword [ebp - 0x278]
and eax, 0x10
jne 0x40cfd0
mov ecx, dword [ebp - 0x27c]
add ecx, dword [ebp - 0x258]
mov dword [ebp - 0x27c], ecx
jmp 0x40d154
mov dword [ebp - 0x284], 0x6c2314
lea edx, [ebp - 0x24c]
mov dword [ebp - 0x280], edx
mov eax, dword [ebp - 0x280]
mov cx, word [eax]
mov word [ebp - 0x292], cx
mov edx, dword [ebp - 0x284]
cmp cx, word [edx]
jne 0x40d04c
cmp word [ebp - 0x292], 0
je 0x40d040
mov eax, dword [ebp - 0x280]
mov cx, word [eax + 2]
mov word [ebp - 0x294], cx
mov edx, dword [ebp - 0x284]
cmp cx, word [edx + 2]
jne 0x40d04c
add dword [ebp - 0x280], 4
add dword [ebp - 0x284], 4
cmp word [ebp - 0x294], 0
jne 0x40cfe6
mov dword [ebp - 0x2a0], 0
jmp 0x40d057
sbb eax, eax
or eax, 1
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x2a0]
mov dword [ebp - 0x2ac], ecx
cmp dword [ebp - 0x2ac], 0
je 0x40d154
mov dword [ebp - 0x28c], 0x6c230c
lea edx, [ebp - 0x24c]
mov dword [ebp - 0x288], edx
mov eax, dword [ebp - 0x288]
mov cx, word [eax]
mov word [ebp - 0x296], cx
mov edx, dword [ebp - 0x28c]
cmp cx, word [edx]
jne 0x40d0ec
cmp word [ebp - 0x296], 0
je 0x40d0e0
mov eax, dword [ebp - 0x288]
mov cx, word [eax + 2]
mov word [ebp - 0x298], cx
mov edx, dword [ebp - 0x28c]
cmp cx, word [edx + 2]
jne 0x40d0ec
add dword [ebp - 0x288], 4
add dword [ebp - 0x28c], 4
cmp word [ebp - 0x298], 0
jne 0x40d086
mov dword [ebp - 0x2a4], 0
jmp 0x40d0f7
sbb eax, eax
or eax, 1
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2b0], ecx
cmp dword [ebp - 0x2b0], 0
je 0x40d154
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040a340
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a6a0
lea ecx, [ebp - 0x28]
call fcn.00403fb0
push eax
call fcn.0040cf00
add esp, 4
add eax, dword [ebp - 0x27c]
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404000
lea ecx, [ebp - 0x278]
push ecx
mov edx, dword [ebp - 0x29c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cfae
mov eax, dword [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x2b4], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x290]
call fcn.0040eb60
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004239b8
mov esp, ebp
pop ebp
ret