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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
test edi, edi
je 0x40c648
cmp word [edi], 0
je 0x40c648
push esi
push 1
push 0x250
call fcn.00462e24
mov esi, eax
add esp, 8
mov dword [ebp - 0xc], esi
test esi, esi
je 0x40c647
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c430
sub ecx, edx
mov edx, 2
sar ecx, 1
push ebx
lea eax, [ecx + 0xc]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045f599
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x40c63d
mov edx, ebx
mov ecx, edi
sub edx, edi
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40c470
mov ecx, ebx
call fcn.0045ad30
lea ecx, [ebx - 2]
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40c490
mov eax, dword [0x48e2a4]
mov dword [ecx], eax
mov eax, dword [0x48e2a8]
push esi
push ebx
mov dword [ecx + 4], eax
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40c629
test byte [esi], 0x10
je 0x40c64d
lea ebx, [esi + 0x2c]
mov ecx, 0x48e2ac
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c4fc
test dx, dx
je 0x40c4f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c4fc
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c4d6
xor eax, eax
jmp 0x40c501
sbb eax, eax
or eax, 1
test eax, eax
je 0x40c605
mov ecx, 0x48e2b0
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c536
test dx, dx
je 0x40c532
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c536
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c510
xor eax, eax
jmp 0x40c53b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40c605
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c550
sub ecx, edx
mov edx, ebx
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c564
sub edx, esi
sar edx, 1
add edx, 2
lea eax, [ecx + edx*2]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045f599
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
test esi, esi
je 0x40c602
mov edx, esi
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40c5a1
mov ecx, esi
call fcn.0045ad30
mov edx, ebx
nop word [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40c5c0
sub ebx, edx
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c5d0
mov ecx, ebx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.0040c3f0
push esi
call fcn.0045f5a2
mov edi, dword [ebp - 0x14]
add esp, 4
mov esi, dword [ebp - 0xc]
mov bl, byte [ebp - 1]
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 8]
jne 0x40c4c3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x40c632
push edi
call fcn.004645b1
add esp, 4
push dword [ebp - 0x18]
call fcn.0045f5a2
add esp, 4
push esi
call fcn.00462e3a
add esp, 4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor bl, bl
mov byte [ebp - 1], bl
jmp 0x40c60b