Function at 0x40dc10
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
sub esp, 0x88c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x40dc32
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x88c
ret 8
mov edx, dword [esi + 0x114]
mov eax, dword [esp + 0x8a0]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x48]
inc edx
push eax
push ecx
mov dword [esi + 0x114], edx
call ebp
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call fcn.0040dff0
lea eax, [esp + 0x48]
mov dword [esp + 0x40], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x14]
push 1
lea edx, [esp + 0x4c]
push ecx
push edx
mov dword [esp + 0x50], eax
call fcn.0040d810
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x22]
and eax, 0xffff
and ecx, 0xffff
add esp, 0xc
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1e]
and eax, 0xffff
mov edx, dword [esp + 0x1a]
mov dword [esp + 0x2c], eax
mov al, byte [0x4971a0]
and ecx, 0xffff
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x14c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14d]
mov ebx, dword [esp + 0x8a4]
rep stosd dword es:[edi], eax
and edx, 0xffff
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
stosw word es:[edi], ax
and edx, 0xffff
test bl, bl
mov dword [esp + 0x24], edx
stosb byte es:[edi], al
je 0x40dd25
lea ecx, [esp + 0x14c]
push 0
push ecx
push 0
lea edx, [esp + 0x54]
push 0
push edx
call fcn.0045b295
add esp, 0x14
jmp 0x40dd6c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [esi + 8]
push edi
call ebx
push eax
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.0045aaf0
add esp, 0xc
test eax, eax
je 0x40dd53
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x88c
ret 8
push edi
call ebx
lea ecx, [esp + eax + 0x48]
lea edx, [esp + 0x14c]
push ecx
push edx
call ebp
mov ebx, dword [esp + 0x8a4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14c]
push 0x48f604
push eax
call edi
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push 8
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
lea edx, [esp + 0x168]
push ecx
push edx
push eax
call fcn.0044e6c0
mov ecx, dword [esi + 4]
push ecx
call fcn.0044e020
lea edx, [esp + 0x79c]
lea eax, [esp + 0x69c]
push edx
lea ecx, [esp + 0x254]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
call fcn.0045b295
add esp, 0x14
lea ecx, [esp + 0x69c]
lea edx, [esp + 0x250]
push ecx
push edx
call edi
lea eax, [esp + 0x79c]
lea ecx, [esp + 0x250]
push eax
push ecx
call edi
push 0x490ca0
lea edx, [esp + 0x254]
push 0x490ca0
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x5a4]
push eax
push ecx
call fcn.0045b204
add esp, 0x14
lea edx, [esp + 0x354]
lea eax, [esp + 0x598]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40deb9
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp byte [esp + 0x380], 0x2e
je 0x40dea3
lea ecx, [esp + 0x380]
push 0
lea edx, [esp + 0x254]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x4a0]
push eax
push ecx
call fcn.0045b204
mov al, byte [esp + 0x368]
add esp, 0x14
test al, 0x10
push ebx
je 0x40de94
lea edx, [esp + 0x498]
mov ecx, esi
push edx
call fcn.0040dc10
jmp 0x40dea3
lea eax, [esp + 0x498]
mov ecx, esi
push eax
call fcn.0040d970
lea ecx, [esp + 0x354]
push ecx
push edi
call ebp
test eax, eax
jne 0x40de46
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x88c
ret 8