Function at 0x50efc0
Capabilities:
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac49d
mov eax, dword fs:[0]
push eax
sub esp, 0xed0
mov eax, dword [0x608554]
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
push ecx
push str.CBaseOSSpecTypeWin2K::ReadOnlyCancellation
lea ecx, [ebp - 0xc78]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50f046
test byte [ecx + 0x1c], 1
je 0x50f046
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x8c
call fcn.00401840
add esp, 0xc
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00571c00
push 0x250
lea eax, [ebp - 0xec8]
push 0
push eax
call fcn.00571c00
add esp, 0x48
lea ecx, [ebp - 0xed8]
mov edi, 1
mov ebx, edi
mov dword [ebp - 0xecc], ebx
call fcn.00443080
lea ecx, [ebp - 0xed4]
mov byte [ebp - 4], 1
call fcn.0046a2f0
mov byte [ebp - 4], 2
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov dword [ebp - 0xedc], esi
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0xed0]
mov dword [ebp - 0xed0], 0x63
push eax
push ebx
lea ecx, [ebp - 0xed8]
call fcn.00446490
mov eax, dword [0x61866c]
cmp eax, dword [esi + 4]
jg 0x50f8d9
push dword [ebp - 0xed0]
call fcn.00534e60
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xed4]
call fcn.0046abd0
test eax, eax
je 0x50f844
push 0x5cb000
lea eax, [ebp - 0xc40]
push 0x104
push eax
call fcn.005746e6
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x628]
push eax
push 0x5c6c90
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041e030
add esp, 0x2c
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50f22d
test byte [ecx + 0x1c], 4
je 0x50f1ec
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 3
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x8d
call fcn.004018a0
mov ecx, dword [0x608f30]
add esp, 0x10
cmp ecx, 0x608f30
je 0x50f22d
test byte [ecx + 0x1c], 4
je 0x50f22d
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x8e
call fcn.00405920
add esp, 0x10
lea eax, [ebp - 0xec8]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50f2cd
test byte [ecx + 0x1c], 4
je 0x50f292
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x8f
call fcn.004018a0
mov ecx, dword [0x608f30]
add esp, 0x10
cmp ecx, 0x608f30
je 0x50f2cd
test byte [ecx + 0x1c], 4
je 0x50f2cd
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x90
call fcn.004018a0
add esp, 0x10
cmp esi, 0xffffffff
je 0x50f32b
test edi, edi
je 0x50f324
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [eax]
lea eax, [ebp - 0xe9c]
push eax
lea eax, [ebp - 0x628]
push eax
push 0x5c6c90
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0041e030
add esp, 0x14
lea eax, [ebp - 0x420]
push 0x20
push eax
call edi
lea eax, [ebp - 0xec8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x50f2e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00571c00
lea eax, [ebp - 0xc40]
push eax
push 3
lea eax, [ebp - 0x628]
push eax
push str._s_d_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041e030
push 3
lea eax, [ebp - 0x628]
push eax
push str._s_d
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.0041e030
add esp, 0x44
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50f42f
test byte [ecx + 0x1c], 4
je 0x50f3ec
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push 3
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x91
call fcn.0040c2f0
mov ecx, dword [0x608f30]
add esp, 0x14
cmp ecx, 0x608f30
je 0x50f42f
test byte [ecx + 0x1c], 4
je 0x50f42f
cmp dword [0x608f68], 8
lea edx, [ebp - 0xa38]
push edx
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push 3
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x92
call fcn.0040c2f0
add esp, 0x14
lea eax, [ebp - 0xec8]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50f4cf
test byte [ecx + 0x1c], 4
je 0x50f494
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x93
call fcn.004018a0
mov ecx, dword [0x608f30]
add esp, 0x10
cmp ecx, 0x608f30
je 0x50f4cf
test byte [ecx + 0x1c], 4
je 0x50f4cf
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x94
call fcn.004018a0
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp esi, 0xffffffff
je 0x50f52b
nop word [eax + eax]
lea eax, [ebp - 0xe9c]
push eax
lea eax, [ebp - 0xa38]
push eax
push 0x5c6c90
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0041e030
add esp, 0x14
lea eax, [ebp - 0x420]
push 0x20
push eax
call ebx
lea eax, [ebp - 0xec8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x50f4e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x208
lea eax, [ebp - 0x830]
mov edi, 1
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.SpoolDrivers
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00574a48
push 0x5c692c
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00574a48
push str.Color
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00574a48
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.005746e6
push str..icc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00574a48
add esp, 0x3c
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50f669
test byte [ecx + 0x1c], 4
je 0x50f628
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x95
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x50f669
test byte [ecx + 0x1c], 4
je 0x50f669
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x96
call fcn.00405920
add esp, 0x10
lea eax, [ebp - 0xec8]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x50f6dd
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0xe9c]
push eax
lea eax, [ebp - 0x830]
push eax
push 0x5c6c90
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0041e030
add esp, 0x14
lea eax, [ebp - 0x420]
push 0x20
push eax
call ebx
lea eax, [ebp - 0xec8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x50f690
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005746e6
push str..prf
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00574a48
add esp, 0x24
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50f7a8
test byte [ecx + 0x1c], 4
je 0x50f767
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x97
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x50f7a8
test byte [ecx + 0x1c], 4
je 0x50f7a8
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x98
call fcn.00405920
add esp, 0x10
lea eax, [ebp - 0xec8]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x50f81d
test edi, edi
je 0x50f816
nop word [eax + eax]
lea eax, [ebp - 0xe9c]
push eax
lea eax, [ebp - 0x830]
push eax
push 0x5c6c90
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0041e030
add esp, 0x14
lea eax, [ebp - 0x420]
push 0x20
push eax
call ebx
lea eax, [ebp - 0xec8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x50f7d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.005746e6
mov ebx, dword [ebp - 0xecc]
add esp, 0xc
mov esi, dword [ebp - 0xedc]
add ebx, ebx
mov dword [ebp - 0xecc], ebx
cmp ebx, 0x40
jbe 0x50f100
mov byte [ebp - 0xc74], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50f89c
test byte [ecx + 0x1c], 1
je 0x50f89c
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x99
call fcn.00401840
add esp, 0xc
lea ecx, [ebp - 0xed4]
call fcn.0046a3c0
lea ecx, [ebp - 0xed8]
call fcn.00443150
lea ecx, [ebp - 0xc78]
call fcn.0040a570
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.0056d977
mov esp, ebp
pop ebp
ret
push 0x61866c
call fcn.0056db45
add esp, 4
cmp dword [0x61866c], 0xffffffff
jne 0x50f12e
mov byte [ebp - 4], 3
call fcn.0052e630
push 0x5b1350
call fcn.0056dea1
push 0x61866c
mov byte [ebp - 4], 2
call fcn.0056dafb
add esp, 8
jmp 0x50f12e