Function at 0x40cc80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4372db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push 0x104
push eax
mov dword [esp + 0x1c], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push 0x441c68
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
or ebx, 0xffffffff
lea edi, [esp + 0x1c]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x120]
lea ebp, [esp + ecx + 0x1c]
sub esi, ebp
cmp esi, 0x7fffffff
ja 0x40ccf6
push 0x441e48
push esi
push ebp
call fcn.00402320
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x124]
mov dword [esp + 0x120], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x120]
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, ebx
jne 0x40cd31
xor eax, eax
jmp 0x40cf24
test byte [esp + 0x120], 0x10
jne 0x40cd95
cmp esi, 0x7fffffff
ja 0x40cd52
lea ecx, [esp + 0x14c]
push ecx
push esi
push ebp
call fcn.00402320
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x480], 0
lea ecx, [eax + 0x10]
mov eax, dword [eax + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040d2b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x47c], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x120]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40cd31
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x10], ecx
je 0x40cf1f
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
push eax
call fcn.00402ac0
add esp, 4
test eax, eax
je 0x40cf0a
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x40cf0a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x442968
push ebp
call edi
push 0x442958
push ebp
mov esi, eax
call edi
push 0x44294c
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test esi, esi
je 0x40cf03
test edi, edi
je 0x40cf03
test eax, eax
je 0x40cf03
mov ecx, 0x85
xor eax, eax
lea edi, [esp + 0x260]
lea edx, [esp + 0x370]
push 0x104
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x36c], 1
call esi
mov ecx, dword [esp + 0x18]
add esp, 8
mov esi, 0x104
lea eax, [esp + 0x260]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x260]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x40ce7f
mov byte [eax], cl
inc eax
dec esi
jne 0x40ce70
jmp 0x40ce83
test esi, esi
jne 0x40ce84
dec eax
mov byte [eax], 0
mov eax, dword [ebx + 8]
xor edi, edi
mov esi, dword [eax]
cmp esi, eax
je 0x40cebd
lea edx, [esp + 0x370]
lea eax, [esi + 0x118]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40ceb0
mov edi, 1
mov esi, dword [esi]
mov eax, dword [ebx + 8]
cmp esi, eax
jne 0x40ce92
test edi, edi
jne 0x40cf0a
mov esi, dword [ebx + 8]
push 0x21c
mov edi, dword [esi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
mov ecx, esi
test esi, esi
jne 0x40ced8
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x40cee0
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
lea edi, [eax + 8]
test edi, edi
mov dword [ecx], eax
je 0x40cf00
mov ecx, 0x85
lea esi, [esp + 0x260]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x14]
mov eax, dword [edx]
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x40cdbd
mov eax, 1
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x470
ret