Function at 0x465f30
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.0046f6e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82a]
push eax
call fcn.0046f6e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc3c], ax
lea eax, [ebp - 0xc3a]
push eax
call fcn.0046f6e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.0046f6e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0046f6e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa34], ax
lea eax, [ebp - 0xa32]
push eax
call fcn.0046f6e0
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.00472eb6
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x492f94
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0046ebde
add esp, 0x38
cmp dword [ebp + 0x14], 0
je 0x466059
mov dword [0x4cf7c0], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x466135
lea eax, [ebp - 0xe8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4662a7
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x466090
mov cx, word [ebp - 0xe5e]
mov ax, word [ebp - 0xe60]
test cx, cx
jne 0x4660a9
cmp ax, 0x2e
je 0x466111
cmp word [ebp - 0xe5c], 0
jne 0x4660be
cmp ax, 0x2e
jne 0x4660be
cmp cx, ax
je 0x466111
test byte [ebp - 0xe8c], 0x10
jne 0x466111
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.0046ebde
lea eax, [ebp - 0x214]
push eax
push str.CountFiles____FullFileName_s
call fcn.00469290
add esp, 0x1c
inc dword [0x4cf7c0]
lea eax, [ebp - 0xe8c]
push eax
push edi
call ebx
test eax, eax
je 0x4662a0
cmp dword [0x4b552c], 0
je 0x466090
jmp 0x4662a0
lea eax, [ebp - 0x41c]
push eax
push 0x492fa0
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046ebde
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 0x4662ba
cmp edi, 0xffffffff
je 0x4662ba
lea esp, [esp]
mov cx, word [ebp - 0xe5e]
mov ax, word [ebp - 0xe60]
test cx, cx
jne 0x46619d
cmp ax, 0x2e
je 0x466281
cmp word [ebp - 0xe5c], 0
jne 0x4661b6
cmp ax, 0x2e
jne 0x4661b6
cmp cx, ax
je 0x466281
test byte [ebp - 0xe8c], 0x10
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0x82c]
push eax
je 0x466206
lea eax, [ebp - 0xe60]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x492fac
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046ebde
push 0
push esi
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00465f30
add esp, 0x2c
jmp 0x466281
push 0x492f94
lea eax, [ebp - 0xa34]
push 0x104
push eax
call fcn.0046ebde
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 0x466281
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.0046ebde
lea eax, [ebp - 0x214]
push eax
push str.CountFiles____FullFileName_s
call fcn.00469290
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 0x4662a0
cmp dword [0x4b552c], 0
je 0x466180
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x4cf7c0]
push str.CountFiles____NbFiles_d
call fcn.004695f0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [0x4cf7c0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret