Function at 0x412e80
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 0x4130db
mov edi, dword [esp + 0x25c]
test edi, edi
je 0x4130db
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.00412830
mov ebp, eax
test ebp, ebp
jne 0x4130db
mov al, byte [esp + 0x260]
test al, al
je 0x4130db
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 0x412f3c
mov edi, 0x43b6a4
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, 0x43b3f8
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]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4130db
test byte [esp + 0x118], 0x10
je 0x41306f
mov esi, 0x43bc10
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x412fc8
test cl, cl
je 0x412fc4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x412fc8
add eax, 2
add esi, 2
test cl, cl
jne 0x412fa4
xor eax, eax
jmp 0x412fcd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4130b9
mov esi, 0x43bc0c
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x413005
test cl, cl
je 0x413001
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x413005
add eax, 2
add esi, 2
test cl, cl
jne 0x412fe1
xor eax, eax
jmp 0x41300a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4130b9
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.00420960
add esp, 8
test eax, eax
je 0x4130b9
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.00412e80
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
jmp 0x4130b9
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.00420960
add esp, 8
test eax, eax
je 0x4130b9
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.00412e00
mov ebp, eax
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x118]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x412f8a
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