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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc84
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x206
push eax
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0046fe20
push esi
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x104
push eax
mov dword [ebp - 0xc84], edi
call fcn.00470452
add esp, 0x48
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00470452
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov ecx, 0x4d0da8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468287
sub ecx, edx
sar ecx, 1
jne 0x4682c5
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xc84], 1
push eax
push 0x104
push 0x4d0da8
call fcn.00470452
mov eax, dword [ebx]
add esp, 0xc
cmp eax, dword [ebx + 4]
je 0x4682c5
mov dword [ebx + 4], eax
lea eax, [ebp - 0x20c]
push eax
push str._s.
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0046f31e
add esp, 0x10
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc80], eax
cmp eax, 0xffffffff
jne 0x468317
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ecx]
mov cx, word [ebp - 0xc4e]
mov ax, word [ebp - 0xc50]
test cx, cx
jne 0x46833d
cmp ax, 0x2e
je 0x468419
cmp word [ebp - 0xc4c], 0
jne 0x468356
cmp ax, 0x2e
jne 0x468356
cmp cx, ax
je 0x468419
test byte [ebp - 0xc7c], 0x10
je 0x4683ce
lea eax, [ebp - 0xc50]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00468190
add esp, 0xc
mov edi, eax
test byte [ebp + 0x10], 2
je 0x468419
test edi, edi
jne 0x468419
push dword [ebp - 0xc7c]
lea eax, [ebp - 0x824]
push 0x4d0da8
push eax
push ebx
call fcn.004676f0
add esp, 0x10
mov edi, 1
jmp 0x468419
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xc50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x468419
lea eax, [ebp - 0xc50]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
push eax
call esi
push dword [ebp - 0xc7c]
lea eax, [ebp - 0xa2c]
push 0x4d0da8
push eax
push ebx
call fcn.004676f0
add esp, 0x10
inc edi
lea eax, [ebp - 0xc7c]
push eax
push dword [ebp - 0xc80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x46843d
cmp dword [0x4b6534], 0
je 0x468320
push dword [ebp - 0xc80]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0xc84], 0
je 0x46847e
xor eax, eax
mov word [0x4d0da8], ax
mov eax, 0x52835813
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
imul ecx
sar edx, 0xa
mov edi, edx
shr edi, 0x1f
add edi, edx
push edi
push str.ScanPathArray____NBFiles_u
call fcn.004699e0
add esp, 8
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
je 0x468487
mov dword [eax], edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret