Function at 0x4163f1
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 [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x14], 1
mov edi, 0x104
mov dword [ebp - 0x18], eax
push edi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x10], edi
mov esi, edx
mov ebx, ecx
push eax
mov dword [ebp - 0x478], esi
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, edi
push eax
call fcn.0040d300
xor edi, edi
test eax, eax
js 0x41669c
mov dword [esi], 1
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x41646c
sub esi, ecx
sar esi, 1
je 0x4247b4
lea eax, [esi + 3]
cmp eax, 0x7fe7
ja 0x41665d
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 0x4247be
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 0x41665d
test eax, 0x400
jne 0x4247d4
push ebx
lea ecx, [ebp - 0x220]
call fcn.0040f229
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x3a
je 0x4164f8
cmp eax, 0x5c
je 0x4164f8
push 0x40263c
lea ecx, [ebp - 0x220]
call fcn.004121c1
inc esi
push 0x4026e4
lea ecx, [ebp - 0x220]
call fcn.004121c1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4247e5
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 0x41665d
cmp dword [0x435614], 0
jne 0x416641
lea edi, [ebp - 0x23c]
xor ebx, ebx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41654a
sub ecx, edx
sar ecx, 1
jne 0x416575
lea edi, [ebp - 0x444]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x416566
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
cmp eax, 0x7fe7
jae 0x424a17
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
sub edx, esi
test eax, eax
je 0x4247f0
push edi
lea ecx, [eax + esi*2]
call fcn.0040dfe0
mov ebx, dword [ebp - 0x470]
test bl, 0x10
je 0x424875
push 4
mov ecx, 0x402630
lea eax, [ebp - 0x444]
pop ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416689
test dx, dx
je 0x4165e1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416689
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4165b9
xor edi, edi
mov eax, edi
test eax, eax
je 0x416626
mov ecx, 0x402628
lea eax, [ebp - 0x444]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416695
test dx, dx
je 0x41661c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416695
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4165f4
mov eax, edi
test eax, eax
jne 0x4247fb
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 0x416530
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 [0x435614], 0
jne 0x4166a1
mov ecx, ebx
call fcn.004166ab
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], edi
test eax, eax
je 0x416678
push eax
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.00417b90
leave
ret
sbb eax, eax
or eax, 1
xor edi, edi
jmp 0x4165e5
sbb eax, eax
or eax, 1
jmp 0x41661e
push 8
pop esi
jmp 0x416666
mov esi, edi
jmp 0x416666
mov esi, 0xa1
jmp 0x416666
push 0x10
pop eax
mov ecx, edi
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x44c], ecx
jmp 0x4164b9
test ecx, 0x20000000
jne 0x41665d
jmp 0x4164cc
lea eax, [ebp - 0x220]
jmp 0x416513
lea eax, [ebp - 0x220]
jmp 0x416593
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x424808
lea ecx, [ebp - 0x220]
lea edx, [ebp - 0x480]
call fcn.004163f1
cmp dword [0x435614], 0
jne 0x416641
test eax, eax
je 0x416626
mov ecx, dword [ebp - 0x478]
mov dword [ecx], edi
cmp eax, 0x91
jne 0x424844
cmp dword [ebp - 0x480], 0
je 0x416626
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x424851
lea eax, [ebp - 0x220]
push eax
push 1
push 0x4000271b
call fcn.004128ff
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.004128ff
pop ecx
pop ecx
jmp 0x416626
test bl, 1
je 0x424894
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x424887
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 0x4248a1
lea ecx, [ebp - 0x220]
mov edx, ebx
call fcn.004155c5
test eax, eax
je 0x424a10
cmp eax, 0x4d3
je 0x424a38
cmp eax, 3
jne 0x42490c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4248cd
lea eax, [ebp - 0x220]
push 4
push 0x4042cc
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x42490c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4248ef
lea eax, [ebp - 0x220]
xor edi, edi
push edi
push edi
push edi
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
cmp eax, 0x7fe7
jbe 0x42490e
push 0x6f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x42490e
xor edi, edi
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x424917
mov eax, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
je 0x424972
test eax, eax
jne 0x424935
lea eax, [ebp - 0x220]
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x444]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x424944
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
lea ecx, [ebp - 0x220]
cmp eax, 0x7fe7
jb 0x4249bd
lea eax, [ebp - 0x23c]
push eax
call fcn.004121c1
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42497c
lea eax, [ebp - 0x220]
push eax
push 1
push 0x4000271b
call fcn.004128ff
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.004128ff
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x4249a8
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], edi
jmp 0x416626
lea eax, [ebp - 0x444]
push eax
call fcn.004121c1
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4249d6
lea eax, [ebp - 0x220]
push eax
push 1
push 0x4000271b
call fcn.004128ff
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x4249f3
lea eax, [ebp - 0x220]
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x220]
call fcn.004121c1
jmp 0x42498c
xor edi, edi
jmp 0x416626
mov eax, dword [ebp - 0x478]
push edi
mov dword [eax], ebx
mov ebx, dword [ebp - 0x474]
push ebx
push 2
push 0x400023da
call fcn.004128ff
add esp, 0x10
jmp 0x424a3e
mov ebx, dword [ebp - 0x474]
xor edi, edi
jmp 0x416647