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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8c
mov eax, dword [0x4af6f0]
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.0046f7e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82a]
push eax
call fcn.0046f7e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc3c], ax
lea eax, [ebp - 0xc3a]
push eax
call fcn.0046f7e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.0046f7e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0046f7e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa34], ax
lea eax, [ebp - 0xa32]
push eax
call fcn.0046f7e0
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.00472fb6
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x492f94
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0046ecde
add esp, 0x38
cmp dword [ebp + 0x14], 0
je 0x466149
mov dword [0x4cf7c0], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x466225
lea eax, [ebp - 0xe8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x466397
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x466180
mov cx, word [ebp - 0xe5e]
mov ax, word [ebp - 0xe60]
test cx, cx
jne 0x466199
cmp ax, 0x2e
je 0x466201
cmp word [ebp - 0xe5c], 0
jne 0x4661ae
cmp ax, 0x2e
jne 0x4661ae
cmp cx, ax
je 0x466201
test byte [ebp - 0xe8c], 0x10
jne 0x466201
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 0x492f94
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046ecde
lea eax, [ebp - 0x214]
push eax
push str.CountFiles____FullFileName_s
call fcn.00469390
add esp, 0x1c
inc dword [0x4cf7c0]
lea eax, [ebp - 0xe8c]
push eax
push edi
call ebx
test eax, eax
je 0x466390
cmp dword [0x4b552c], 0
je 0x466180
jmp 0x466390
lea eax, [ebp - 0x41c]
push eax
push 0x492fa0
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046ecde
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 0x4663aa
cmp edi, 0xffffffff
je 0x4663aa
lea esp, [esp]
mov cx, word [ebp - 0xe5e]
mov ax, word [ebp - 0xe60]
test cx, cx
jne 0x46628d
cmp ax, 0x2e
je 0x466371
cmp word [ebp - 0xe5c], 0
jne 0x4662a6
cmp ax, 0x2e
jne 0x4662a6
cmp cx, ax
je 0x466371
test byte [ebp - 0xe8c], 0x10
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0x82c]
push eax
je 0x4662f6
lea eax, [ebp - 0xe60]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x492fac
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046ecde
push 0
push esi
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00466020
add esp, 0x2c
jmp 0x466371
push 0x492f94
lea eax, [ebp - 0xa34]
push 0x104
push eax
call fcn.0046ecde
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 0x466371
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 0x492f94
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046ecde
lea eax, [ebp - 0x214]
push eax
push str.CountFiles____FullFileName_s
call fcn.00469390
add esp, 0x1c
inc dword [0x4cf7c0]
lea eax, [ebp - 0xe8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x466390
cmp dword [0x4b552c], 0
je 0x466270
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x4cf7c0]
push str.CountFiles____NbFiles_d
call fcn.004696f0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [0x4cf7c0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret