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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x104
mov byte [ebp - 0x14], 1
push eax
xor esi, esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x18], esi
mov edi, edx
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x478], edi
mov dword [ebp - 0x474], ebx
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.00410c70
test eax, eax
js 0x408880
mov dword [edi], 1
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x408666
sub edi, ecx
sar edi, 1
je 0x4203bb
lea eax, [edi + 3]
cmp eax, 0x7fe7
ja 0x408850
lea eax, [ebp - 0x470]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4203c5
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x470]
test al, 0x10
je 0x408850
test eax, 0x400
jne 0x4203db
push ebx
lea ecx, [ebp - 0x220]
call fcn.00410d89
movzx eax, word [ebx + edi*2 - 2]
cmp eax, 0x3a
je 0x4086f2
cmp eax, 0x5c
je 0x4086f2
push 0x4021e8
lea ecx, [ebp - 0x220]
call fcn.00410cf2
inc edi
push 0x40250c
lea ecx, [ebp - 0x220]
call fcn.00410cf2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4203ec
lea ecx, [ebp - 0x470]
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov dword [ebp - 0x47c], eax
cmp eax, 0xffffffff
je 0x408850
cmp dword [0x42d544], esi
jne 0x408835
lea edx, [ebp - 0x23c]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x408741
sub ecx, ebx
sar ecx, 1
jne 0x40876c
lea edx, [ebp - 0x444]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40875d
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edi]
cmp eax, 0x7fe7
jae 0x42060f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4203f7
push edx
mov edx, dword [ebp - 0x10]
lea ecx, [eax + edi*2]
sub edx, edi
call fcn.00411040
mov ebx, dword [ebp - 0x470]
test bl, 0x10
je 0x42047a
push 4
mov ecx, 0x4021cc
lea eax, [ebp - 0x444]
pop ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408876
test dx, dx
je 0x4087d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408876
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4087b0
mov eax, esi
test eax, eax
je 0x40881a
mov ecx, 0x4021ec
lea eax, [ebp - 0x444]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40880d
test dx, dx
je 0x408809
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40880d
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4087e9
mov eax, esi
jmp 0x408812
sbb eax, eax
or eax, 1
test eax, eax
jne 0x420402
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x47c]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x40872a
mov ebx, dword [ebp - 0x474]
mov eax, dword [ebp - 0x47c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
cmp dword [0x42d544], esi
jne 0x408859
mov ecx, ebx
call fcn.00408885
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416fd0
mov esp, ebp
pop ebp
ret
sbb eax, eax
or eax, 1
jmp 0x4087da
push 8
pop esi
jmp 0x408859
mov esi, 0xa1
jmp 0x408859
push 0x10
pop eax
mov ecx, esi
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x44c], ecx
jmp 0x4086b3
test ecx, 0x20000000
jne 0x408850
jmp 0x4086c6
lea eax, [ebp - 0x220]
jmp 0x40870d
lea eax, [ebp - 0x220]
jmp 0x408785
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x42040f
lea ecx, [ebp - 0x220]
lea edx, [ebp - 0x480]
call fcn.004085ea
cmp dword [0x42d544], esi
jne 0x408835
test eax, eax
je 0x40881a
mov ecx, dword [ebp - 0x478]
mov dword [ecx], esi
cmp eax, 0x91
jne 0x420449
cmp dword [ebp - 0x480], esi
je 0x40881a
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x420456
lea eax, [ebp - 0x220]
push eax
push 1
push 0x4000271b
call fcn.0040c5a2
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.0040c5a2
pop ecx
pop ecx
jmp 0x40881a
test bl, 1
je 0x420499
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x42048c
lea ecx, [ebp - 0x220]
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4204a6
lea ecx, [ebp - 0x220]
mov edx, ebx
call fcn.004083f2
test eax, eax
je 0x40881a
cmp eax, 0x4d3
je 0x408835
cmp eax, 3
jne 0x42050d
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4204d2
lea eax, [ebp - 0x220]
push 4
push 0x403d84
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x42050d
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4204f4
lea eax, [ebp - 0x220]
push esi
push esi
push esi
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
cmp eax, 0x7fe7
jbe 0x42050d
push 0x6f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x420516
mov eax, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
je 0x420571
test eax, eax
jne 0x420534
lea eax, [ebp - 0x220]
xor ecx, ecx
mov word [eax + edi*2], cx
lea ecx, [ebp - 0x444]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x420543
sub ecx, edx
sar ecx, 1
lea eax, [ecx + edi]
lea ecx, [ebp - 0x220]
cmp eax, 0x7fe7
jb 0x4205bc
lea eax, [ebp - 0x23c]
push eax
call fcn.00410cf2
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42057b
lea eax, [ebp - 0x220]
push eax
push 1
push 0x4000271b
call fcn.0040c5a2
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.0040c5a2
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x4205a7
lea eax, [ebp - 0x220]
push ebx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x478]
mov dword [eax], esi
jmp 0x40881a
lea eax, [ebp - 0x444]
push eax
call fcn.00410cf2
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4205d5
lea eax, [ebp - 0x220]
push eax
push 1
push 0x4000271b
call fcn.0040c5a2
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x4205f2
lea eax, [ebp - 0x220]
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00410cf2
jmp 0x42058b
mov eax, dword [ebp - 0x478]
mov ebx, dword [ebp - 0x474]
push edx
push ebx
push 2
push 0x400023da
mov dword [eax], esi
call fcn.0040c5a2
add esp, 0x10
jmp 0x40883b