Function at 0x40e4c0
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 0x40e71e
mov edi, dword [esp + 0x25c]
test edi, edi
je 0x40e71e
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.0040de70
mov ebp, eax
test ebp, ebp
jne 0x40e71e
mov al, byte [esp + 0x260]
test al, al
je 0x40e71e
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 0x40e57c
mov edi, 0x42b398
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, 0x42b0ec
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 0x40e71e
test byte [esp + 0x118], 0x10
je 0x40e6a8
mov esi, 0x42b7fc
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e60a
test cl, cl
je 0x40e606
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e60a
add eax, 2
add esi, 2
test cl, cl
jne 0x40e5e6
xor eax, eax
jmp 0x40e60f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e6f6
mov esi, 0x42b7f8
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e647
test cl, cl
je 0x40e643
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e647
add eax, 2
add esi, 2
test cl, cl
jne 0x40e623
xor eax, eax
jmp 0x40e64c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e6f6
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.0041b010
add esp, 8
test eax, eax
je 0x40e6f6
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.0040e4c0
jmp 0x40e6f0
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.0041b010
add esp, 8
test eax, eax
je 0x40e6fa
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.0040e440
mov ebp, eax
test ebp, ebp
jne 0x40e713
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x118]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e5cc
jmp 0x40e717
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