Function at 0x40b6b0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x48c
mov esi, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x46c], ecx
mov dword [esp], edx
mov dword [ebp - 0x47c], eax
call esi
mov dword [esp], 0x41b1b0
mov dword [ebp - 0x460], esi
mov edi, eax
call esi
lea edi, [edi + eax + 0x20a]
add edi, edi
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 4], ebx
mov esi, eax
mov dword [esp], eax
mov dword [ebp - 0x470], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp + 4], 0x41adce
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscat]
mov ecx, 0x5c
mov eax, dword [ebp - 0x460]
mov word [esi + 2], cx
mov dword [esp], esi
call eax
mov dword [esp], esi
lea ebx, [eax + eax - 2]
lea eax, [esi + ebx]
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x25c]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x468], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x40b80a
sub edi, ebx
lea ebx, [ebp - 0x230]
sar edi, 1
mov dword [ebp - 0x478], edi
lea esi, [esi]
mov dword [esp], ebx
mov eax, dword [ebp - 0x460]
call eax
mov esi, eax
cmp eax, 0x100
ja 0x40b7d8
mov edx, dword [ebp - 0x46c]
test edx, edx
je 0x40b828
mov dword [esp + 4], 0x41add4
mov edi, dword [sym.imp.ucrtbase.dll_wcscmp]
mov dword [esp], ebx
call edi
test eax, eax
je 0x40b7d8
mov dword [esp + 4], 0x41add8
mov dword [esp], ebx
call edi
test eax, eax
je 0x40b7d8
mov eax, ebx
call sym._show_dll_in_list
test eax, eax
jne 0x40b928
lea esi, [esi]
lea eax, [ebp - 0x25c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x40b778
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x470]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x2e
mov dword [ebp - 0x464], esi
xor edi, edi
test ax, ax
je 0x40b854
mov esi, dword [edi*4 + 0x41af48]
mov eax, dword [ebp - 0x460]
mov dword [esp], esi
call eax
cmp eax, dword [ebp - 0x464]
jb 0x40b878
add edi, 1
cmp edi, 4
je 0x40b7d8
mov eax, dword [edi*4 + 0x41af48]
movzx eax, word [eax]
test ax, ax
je 0x40b854
jmp 0x40b83a
mov dword [esp], esi
mov eax, dword [ebp - 0x460]
call eax
mov ecx, dword [ebp - 0x464]
mov dword [esp + 4], esi
sub ecx, eax
lea eax, [ebx + ecx*2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x40b854
mov dword [esp], esi
mov eax, dword [ebp - 0x460]
call eax
sub dword [ebp - 0x464], eax
mov esi, dword [ebp - 0x464]
mov dword [esp + 4], ebx
lea eax, [esi + esi]
mov dword [esp + 8], eax
lea eax, [ebp - 0x45c]
mov dword [esp], eax
call sym._memcpy
xor eax, eax
mov word [ebp + esi*2 - 0x45c], ax
lea eax, [ebp - 0x45c]
call sym._show_dll_in_list
test eax, eax
je 0x40b854
lea eax, [ebp - 0x45c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x47c]
mov dword [esp + 8], 0x143
mov dword [esp + 4], 0x1f44
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendDlgItemMessageW]
sub esp, 0x14
jmp 0x40b854
xor esi, esi
mov eax, 0x2e
mov edi, dword [esi*4 + 0x41af48]
test ax, ax
je 0x40b9b5
cmp esi, 1
jbe 0x40b9d3
mov eax, dword [ebp - 0x478]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x474]
mov dword [esp + 0x10], 0x41acda
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._s_s_s_s
mov dword [esp], eax
call sym._swprintf_1
mov eax, dword [ebp - 0x470]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
jne 0x40ba26
add esi, 1
cmp esi, 4
je 0x40b7d8
mov eax, dword [esi*4 + 0x41af48]
mov edi, dword [esi*4 + 0x41af48]
movzx eax, word [eax]
test ax, ax
jne 0x40b93b
mov dword [esp + 4], 0x2e
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x40b993
cmp esi, 1
ja 0x40b944
mov eax, dword [ebp - 0x478]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x474]
mov dword [esp + 0x10], 0x41b1b0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._s_s_s_s
mov dword [esp], eax
call sym._swprintf_1
mov eax, dword [ebp - 0x470]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
jne 0x40ba26
add esi, 1
jmp 0x40b99f
mov eax, dword [ebp - 0x47c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x143
mov dword [esp + 4], 0x1f44
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendDlgItemMessageW]
sub esp, 0x14
jmp 0x40b7d8