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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
lea esi, [ebp - 0x4c]
mov eax, 0x534498
call fcn.00524684
mov dword [esi + 0x1c], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.0052f058
inc dword [esi + 0x1c]
lea edi, [ebp - 0x194]
mov word [esi + 0x10], 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push esi
mov esi, 0x531ea0
mov ecx, 0x50
lea edx, [ebp + 8]
rep movsd dword es:[edi], dword [esi]
pop esi
xor eax, eax
mov word [esi + 0x10], 0x14
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
inc dword [esi + 0x1c]
mov word [esi + 0x10], 8
call fcn.0052f364
cmp dword [ebp + 8], 0
je 0x40c78f
mov edx, dword [ebp + 8]
mov ebx, dword [edx - 4]
jmp 0x40c791
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push eax
call fcn.0052ef9c
add esp, 8
mov edx, dword [ebp + 8]
mov cl, byte [edx + ebx - 1]
movsx eax, cl
cmp eax, 0x5c
jne 0x40c83b
mov word [esi + 0x10], 0x20
lea edx, [ebp + 8]
lea eax, [ebp - 8]
call fcn.0052f058
inc dword [esi + 0x1c]
mov ecx, 1
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0052f334
mov word [esi + 0x10], 0x2c
mov edx, 0x532308
lea eax, [ebp - 0xc]
call fcn.0052f020
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
inc dword [esi + 0x1c]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0052f38c
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0052f364
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0052f334
lea ecx, [ebp - 0x194]
push ecx
cmp dword [ebp - 4], 0
je 0x40c84d
mov eax, dword [ebp - 4]
jmp 0x40c852
mov eax, 0x53230a
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c9ff
test byte [ebp - 0x194], 0x10
je 0x40c953
movsx eax, byte [ebp - 0x168]
cmp eax, 0x2e
jne 0x40c8a2
cmp byte [ebp - 0x167], 0
je 0x40c9ea
movsx edx, byte [ebp - 0x167]
cmp edx, 0x2e
jne 0x40c8a2
cmp byte [ebp - 0x166], 0
je 0x40c9ea
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x168]
push ecx
lea eax, [ebp - 0x14]
mov word [esi + 0x10], 0x38
call fcn.0052f020
inc dword [esi + 0x1c]
mov edx, eax
xor eax, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 8]
inc dword [esi + 0x1c]
call fcn.0052f38c
lea edx, [ebp - 0x18]
push edx
mov edx, 0x53230b
lea eax, [ebp - 0x1c]
call fcn.0052f020
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x1c]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x20]
pop eax
call fcn.0052f38c
lea edx, [ebp - 0x20]
mov ecx, dword [edx]
push ecx
call fcn.0040c70c
add esp, 8
add dword [ebp - 0x54], eax
adc dword [ebp - 0x50], edx
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0052f334
jmp 0x40c9ea
mov word [esi + 0x10], 0x44
lea edx, [ebp - 0x168]
lea eax, [ebp - 0x24]
call fcn.0052f020
inc dword [esi + 0x1c]
mov edx, eax
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 8]
inc dword [esi + 0x1c]
call fcn.0052f38c
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
xor ecx, ecx
mov edi, dword [eax]
mov edx, dword [edx]
call dword [edi + 0x3c]
dec dword [esi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0052f334
mov ecx, dword [ebp - 0x178]
test ecx, ecx
je 0x40c9dc
mov eax, ecx
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x174]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
add dword [ebp - 0x54], eax
adc dword [ebp - 0x50], edx
jmp 0x40c9ea
mov eax, dword [ebp - 0x174]
xor edx, edx
add dword [ebp - 0x54], eax
adc dword [ebp - 0x50], edx
lea ecx, [ebp - 0x194]
push ecx
push ebx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x40c863
push ebx
call sub.KERNEL32.DLL_FindClose
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
push edx
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.0052f334
pop eax
pop edx
mov ecx, dword [esi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret