Function at 0x10098970
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c3d4b
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x100ef07c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
inc dword [ebp + 0xc]
lea ecx, [esp + 0x48]
mov dword [esp + 0x44], vtable.CFileData.0
call dword [0x100ca800]
xor ebx, ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], ebx
call dword [0x100ca800]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], ebx
call dword [0x100ca800]
lea ecx, [esp + 0x14]
call dword [0x100ca800]
lea ecx, [esp + 0x10]
call dword [0x100ca800]
mov edi, dword [ebp + 8]
lea eax, [esi + 0x14]
push eax
push edi
mov byte [esp + 0x70], 3
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x10098d39
test byte [esi + 0x14], 0x10
jne 0x10098aa8
push 0x100cb228
push edi
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x10098aa8
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x4c], ecx
push edi
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], vtable.CFileData.0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push 0x5c
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
cmp eax, 0xffffffff
je 0x10098ad0
inc eax
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBufferSetLength]
test dword [esi + 0x14], 0x400
jne 0x10098d12
mov eax, dword [esi + 0x14]
mov dword [esp + 0x4c], eax
lea edi, [esi + 0x40]
test al, 0x10
je 0x10098b3c
cmp word [edi], 0x2e
jne 0x10098b0f
movzx eax, word [esi + 0x42]
test ax, ax
je 0x10098d12
cmp ax, 0x2e
jne 0x10098b0f
cmp word [esi + 0x44], 0
je 0x10098d12
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.10008380
add esp, 8
mov byte [esp + 0x68], 4
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x20]
jmp 0x10098c8e
cmp dword [esi + 0x10], 0
je 0x10098c66
push edi
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10098c3c
mov ebx, dword [sym.imp.MSVCR90.dll_wcsrchr]
push 0x5c
push eax
call ebx
add esp, 8
test eax, eax
jne 0x10098b79
mov eax, dword [esp + 0x24]
jmp 0x10098b7c
add eax, 2
test eax, eax
je 0x10098c3c
push 0x2e
push eax
call ebx
add esp, 8
test eax, eax
je 0x10098c3c
push str..lnk
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10098c3c
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.10008380
mov byte [esp + 0x70], 5
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.10098e20
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 6
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x10098c12
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
jmp 0x10098c99
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.10008380
add esp, 8
mov byte [esp + 0x68], 7
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x30]
jmp 0x10098c8e
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.10008380
add esp, 8
mov byte [esp + 0x68], 8
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x34]
jmp 0x10098c8e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.10008380
add esp, 8
mov byte [esp + 0x68], 9
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
jne 0x10098d12
test byte [esi + 0x14], 0x10
je 0x10098d12
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0xc], eax
jbe 0x10098d12
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.10008380
push eax
lea eax, [esp + 0x48]
push eax
mov edi, 0x100cb6e4
mov byte [esp + 0x78], 0xa
call fcn.10008380
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov byte [esp + 0x68], 0xb
mov eax, dword [eax]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push ecx
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x3c]
mov ebx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp ebx, 0xfffffffc
je 0x10098d2e
lea eax, [esi + 0x14]
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10098ad0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], vtable.CFileData.0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8