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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8c
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
push 0x206
push eax
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 0x624], ax
lea eax, [ebp - 0x622]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82a]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc3c], ax
lea eax, [ebp - 0xc3a]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa34], ax
lea eax, [ebp - 0xa32]
push eax
call fcn.0046fe20
add esp, 0x48
lea eax, [ebp - 0x624]
push 0
push 0
push 0
push 0
push 0x104
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004735f6
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x493f94
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0046f31e
add esp, 0x38
cmp dword [ebp + 0x14], 0
je 0x466799
mov dword [0x4d0da0], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x466875
lea eax, [ebp - 0xe8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4669e7
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4667d0
mov cx, word [ebp - 0xe5e]
mov ax, word [ebp - 0xe60]
test cx, cx
jne 0x4667e9
cmp ax, 0x2e
je 0x466851
cmp word [ebp - 0xe5c], 0
jne 0x4667fe
cmp ax, 0x2e
jne 0x4667fe
cmp cx, ax
je 0x466851
test byte [ebp - 0xe8c], 0x10
jne 0x466851
mov eax, dword [ebp - 0xe6c]
cdq
add dword [esi], eax
lea eax, [ebp - 0xe60]
push eax
adc dword [esi + 4], edx
lea eax, [ebp - 0x41c]
push eax
push 0x493f94
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046f31e
lea eax, [ebp - 0x214]
push eax
push str.CountFiles____FullFileName_s
call fcn.004699e0
add esp, 0x1c
inc dword [0x4d0da0]
lea eax, [ebp - 0xe8c]
push eax
push edi
call ebx
test eax, eax
je 0x4669e0
cmp dword [0x4b6534], 0
je 0x4667d0
jmp 0x4669e0
lea eax, [ebp - 0x41c]
push eax
push 0x493fa0
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046f31e
add esp, 0x10
lea eax, [ebp - 0xe8c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
test edi, edi
je 0x4669fa
cmp edi, 0xffffffff
je 0x4669fa
lea esp, [esp]
mov cx, word [ebp - 0xe5e]
mov ax, word [ebp - 0xe60]
test cx, cx
jne 0x4668dd
cmp ax, 0x2e
je 0x4669c1
cmp word [ebp - 0xe5c], 0
jne 0x4668f6
cmp ax, 0x2e
jne 0x4668f6
cmp cx, ax
je 0x4669c1
test byte [ebp - 0xe8c], 0x10
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0x82c]
push eax
je 0x466946
lea eax, [ebp - 0xe60]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x493fac
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046f31e
push 0
push esi
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00466670
add esp, 0x2c
jmp 0x4669c1
push 0x493f94
lea eax, [ebp - 0xa34]
push 0x104
push eax
call fcn.0046f31e
add esp, 0x14
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0xe60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4669c1
mov eax, dword [ebp - 0xe6c]
add dword [esi], eax
lea eax, [ebp - 0xe60]
push eax
adc dword [esi + 4], 0
lea eax, [ebp - 0x41c]
push eax
push 0x493f94
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046f31e
lea eax, [ebp - 0x214]
push eax
push str.CountFiles____FullFileName_s
call fcn.004699e0
add esp, 0x1c
inc dword [0x4d0da0]
lea eax, [ebp - 0xe8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4669e0
cmp dword [0x4b6534], 0
je 0x4668c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x4d0da0]
push str.CountFiles____NbFiles_d
call fcn.00469d40
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [0x4d0da0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret