Function at 0x1016e7a
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x101d193
call fcn.01019e88
sub esp, 0x48c
mov eax, dword [0x1022d9c]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [edi + 0x124]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x484], edi
mov dword [ebp - 0x474], ebx
call fcn.01009bad
test eax, eax
jne 0x1016ec1
mov eax, 0x3eb
jmp 0x1017152
push 0x105
lea eax, [ebp - 0x220]
push eax
call fcn.0101b5f5
test eax, eax
jne 0x1016ee3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x1017152
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x220]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 0xc
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x48c], eax
call sub.MFC42u.dll_CString::CString_2
push 0x10053ec
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x47c]
push 0x10053e0
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::Format
add esp, 0x10
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x47c]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x480], eax
jne 0x1016f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1016f71
mov dword [ebp - 0x474], eax
mov esi, dword [ebp - 0x474]
jmp 0x1017141
xor esi, esi
lea ecx, [ebp - 0x478]
inc esi
call sub.MFC42u.dll_CString::CString_2
mov byte [ebp - 4], 3
jmp 0x1016f96
mov edi, dword [ebp - 0x484]
cmp esi, ebx
je 0x1017105
mov eax, 0x104
sub eax, dword [ebp - 0x488]
push eax
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x48c]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call fcn.0101b1b4
test eax, eax
je 0x10170b5
lea esi, [edi + 0x124]
mov ecx, esi
call fcn.01009b53
push ebx
push 8
push ebx
push ebx
lea ecx, [ebp - 0x444]
push ecx
push eax
push 3
mov ecx, esi
call sub.MFC42u.dll_CListCtrl::InsertItem
mov edi, eax
cmp edi, ebx
jl 0x10170a9
push 0xffffffffffffffff
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x494]
call fcn.01016782
push 1
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x494]
mov byte [ebp - 4], 5
call fcn.0101348d
push eax
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 6
call sub.MFC42u.dll_CString::operator
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 5
call sub.MFC42u.dll_CString::CString
push dword [ebp - 0x478]
mov ecx, esi
push 1
push edi
mov dword [ebp - 4], 3
mov dword [ebp - 0x494], 0x1002970
call sub.MFC42u.dll_CListCtrl::SetItemText
cmp eax, ebx
je 0x10170a9
mov ecx, dword [ebp - 0x454]
mov eax, dword [ebp - 0x450]
lea edx, [ebp - 0x478]
push edx
push ecx
push eax
call fcn.01012d46
cmp eax, ebx
mov dword [ebp - 0x474], eax
jne 0x1017105
push dword [ebp - 0x478]
mov ecx, esi
push 2
push edi
call sub.MFC42u.dll_CListCtrl::SetItemText
cmp eax, ebx
jne 0x10170b5
mov dword [ebp - 0x474], 0x3eb
jmp 0x1017105
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
cmp esi, ebx
jne 0x1016f90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1017105
mov dword [ebp - 0x474], eax
jmp 0x1017105
cmp dword [ebp - 0x480], 0xffffffff
je 0x101711a
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x484]
call fcn.01016c28
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
jmp 0x1016f71
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call sub.MFC42u.dll_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.010189ca
pop edi
pop esi
pop ebx
leave
ret