Function at 0x52a400
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7c44
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x66d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x10], 0
jne 0x52a480
mov eax, dword [0x6923c4]
test al, 1
jne 0x52a461
or eax, 1
mov dword [0x6923c4], eax
mov dword [ebp - 4], 0
call fcn.004b4ad0
push 0x60bf60
call fcn.00553ff2
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.Invalid_arguments_to_setFileAttributesToDefault
push 0x630a44
push 0x692330
call fcn.004b5940
add esp, 0xc
or eax, 0xffffffff
jmp 0x52a53f
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
cmp dword [ecx + 0x14], 0x10
jb 0x52a4a3
mov ecx, dword [ecx]
lea edx, [ebp - 0x28]
call fcn.004aebd0
test al, al
jne 0x52a4f6
mov eax, dword [0x6923c4]
test al, 1
jne 0x52a4da
or eax, 1
mov dword [0x6923c4], eax
mov byte [ebp - 4], 2
call fcn.004b4ad0
push 0x60bf60
call fcn.00553ff2
add esp, 4
mov byte [ebp - 4], 1
push str.Failed_to_convert_string_to_NativeString_in_setFileAttributesToDefault
push 0x630b14
push 0x692330
call fcn.004b5520
add esp, 0xc
or esi, 0xffffffff
jmp 0x52a52c
lea ecx, [ebp - 0x28]
call fcn.004af0d0
test al, al
lea eax, [ebp - 0x28]
jne 0x52a55a
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push str.File_Path_:_s_does_not_exist
push 0x630a44
push ecx
call fcn.004b4e00
add esp, 4
push eax
call fcn.004b5940
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x14], 8
jb 0x52a53d
push dword [ebp - 0x28]
call fcn.00496180
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055337c
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x52a62d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push str.File_:_s_is_read_only
push 0x630a44
push ecx
call fcn.004b4e00
add esp, 4
push eax
call fcn.004b5940
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x28]
add esp, 0x10
and ebx, 0xfffffffe
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
call esi
test eax, eax
lea eax, [ebp - 0x28]
jne 0x52a5e8
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push str.Failed_to_remove_readonly_attribute_from_File_:_s
push 0x630a44
push ecx
call fcn.004b4e00
add esp, 4
push eax
call fcn.004b5940
add esp, 0x10
or esi, 0xffffffff
jmp 0x52a52c
cmp dword [ebp - 0x14], 8
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x52a52a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Failed_to_set_default_attributes_for_File_:_s
push 0x630a44
push ecx
call fcn.004b4e00
add esp, 4
push eax
call fcn.004b5940
add esp, 0x10
or esi, 0xffffffff
jmp 0x52a52c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x52a52a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Failed_to_set_default_attributes_for_File_:_s
push 0x630a44
push ecx
call fcn.004b4e00
add esp, 4
push eax
call fcn.004b5940
add esp, 0x10
or esi, 0xffffffff
jmp 0x52a52c