Function at 0x401500
Capabilities:
Enumerate files on windows
Get file system object information

Disassembly:
sub esp, 0x708
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x720]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x67], 0x5c
je 0x401575
mov edi, 0x404048
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x404044
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x724]
push 0x1009
push edi
mov dword [esp + 0x28], 3
mov dword [esp + 0x30], eax
call ebp
push 0
lea eax, [esp + 0x3b4]
push 0
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x74]
push ecx
push edx
call sub.MSVCRT.dll__splitpath
add esp, 0x14
lea eax, [esp + 0x16c]
lea ecx, [esp + 0x68]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x40172b
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test byte [esp + 0x16c], 2
jne 0x40170d
lea edx, [esp + 0x198]
push 0x404040
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40170d
lea eax, [esp + 0x198]
push 0x40403c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40170d
lea ecx, [esp + 0x198]
lea edx, [esp + 0x3b0]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x74]
push str._s_s_s
push ecx
call ebx
lea edx, [esp + 0x628]
lea eax, [esp + 0x2c0]
push edx
push eax
push 0
lea ecx, [esp + 0x1b8]
push 0
push ecx
call sub.MSVCRT.dll__splitpath
add esp, 0x28
lea edx, [esp + 0x4b4]
lea eax, [esp + 0x68]
push 0x4200
push 0x160
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0
push 0
push 0x1004
push edi
call ebp
mov edx, dword [esp + 0x4b8]
mov esi, eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2ac]
push eax
push 0
push 0x1007
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
call ebp
lea edx, [esp + 0x40]
lea ecx, [esp + 0x68]
push edx
push esi
push 0x102e
push edi
mov dword [esp + 0x58], 1
mov dword [esp + 0x64], ecx
call ebp
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x16c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40160c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x708
ret