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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424071
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x43500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x40415e
cmp dword [edi + 0x14], 0x10
jb 0x403e84
mov eax, dword [edi]
jmp 0x403e86
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x403ea8
and eax, 0xfffffffe
cmp dword [edi + 0x14], 0x10
jb 0x403e9e
mov ecx, dword [edi]
jmp 0x403ea0
mov ecx, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [edi + 0x14], 0x10
jb 0x403eb2
mov edx, dword [edi]
jmp 0x403eb4
mov edx, edi
mov dword [ebp - 0x188], 0xf
mov dword [ebp - 0x18c], 0
mov byte [ebp - 0x19c], 0
cmp byte [edx], 0
jne 0x403ed8
xor ecx, ecx
jmp 0x403ee9
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ee0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x19c]
call fcn.00401150
lea ecx, [ebp - 0x19c]
mov dword [ebp - 4], 0
call fcn.00403a00
lea ecx, [ebp - 0x19c]
call fcn.00405ff0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.004012e0
push 2
push 0x431590
lea ecx, [ebp - 0x40]
call fcn.00407e40
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x180]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x184], esi
cmp esi, 0xffffffff
je 0x40414e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
nop
push 0x431594
lea eax, [ebp - 0x154]
push eax
call ebx
test eax, eax
je 0x404131
push 0x431598
lea eax, [ebp - 0x154]
push eax
call ebx
test eax, eax
je 0x404131
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.004012e0
push 1
push 0x431454
lea ecx, [ebp - 0x28]
call fcn.00407e40
cmp byte [ebp - 0x154], 0
jne 0x403fe5
xor ecx, ecx
jmp 0x403ff9
lea ecx, [ebp - 0x154]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ff0
sub ecx, edx
push ecx
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407e40
test byte [ebp - 0x180], 0x10
je 0x404097
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x188], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 0x18c], 0
mov byte [ebp - 0x19c], 0
cmp byte [edx], 0
jne 0x404045
xor ecx, ecx
jmp 0x40405f
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404050
sub ecx, esi
mov esi, dword [ebp - 0x184]
push ecx
push edx
lea ecx, [ebp - 0x19c]
call fcn.00401150
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 3
call fcn.00403a00
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 2
call fcn.00405ff0
lea ecx, [ebp - 0x28]
call fcn.00403e40
jmp 0x404131
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4040c3
and eax, 0xfffffffe
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push eax
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1a0], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 0x1b4], 0
cmp byte [edx], 0
jne 0x4040f2
xor ecx, ecx
jmp 0x404106
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4040f7
sub ecx, esi
mov esi, dword [ebp - 0x184]
push ecx
push edx
lea ecx, [ebp - 0x1b4]
call fcn.00401150
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 4
call fcn.00403a00
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 2
call fcn.00405ff0
lea eax, [ebp - 0x180]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403f90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
call fcn.00405ff0
lea ecx, [ebp - 0x40]
call fcn.00405ff0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac78
mov esp, ebp
pop ebp
ret