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

Disassembly:
sub esp, 0x248
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov al, byte [ebx + 0x14]
push esi
test al, al
push edi
je 0x40ee7e
mov edi, dword [esp + 0x25c]
test edi, edi
je 0x40ee7e
mov eax, dword [ebx + 0x18]
push ebp
push eax
push ebp
push ebp
push reloc.WSOCK32.DLL_connect
push 1
push edi
lea ecx, [ebx + 8]
call fcn.0040e5d0
mov ebp, eax
test ebp, ebp
jne 0x40ee7e
mov al, byte [esp + 0x260]
test al, al
je 0x40ee7e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x13], 0x5c
je 0x40ecdc
mov edi, 0x42b380
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42b1bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
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 + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x40ee7e
test byte [esp + 0x118], 0x10
je 0x40ee08
mov esi, 0x42b7e4
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40ed6a
test cl, cl
je 0x40ed66
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40ed6a
add eax, 2
add esi, 2
test cl, cl
jne 0x40ed46
xor eax, eax
jmp 0x40ed6f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ee56
mov esi, 0x42b7e0
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40eda7
test cl, cl
je 0x40eda3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40eda7
add eax, 2
add esi, 2
test cl, cl
jne 0x40ed83
xor eax, eax
jmp 0x40edac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ee56
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.0041bb00
add esp, 8
test eax, eax
je 0x40ee56
lea edx, [eax + 1]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x260]
push ecx
push edx
mov ecx, ebx
call fcn.0040ec20
jmp 0x40ee50
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.0041bb00
add esp, 8
test eax, eax
je 0x40ee5a
lea edx, [eax + 1]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.0040eba0
mov ebp, eax
test ebp, ebp
jne 0x40ee73
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x118]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40ed2c
jmp 0x40ee77
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
pop edi
test ebp, ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0x248
ret 8