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

Disassembly:
mov eax, 0x5c9132cc
call fcn.5c9130f0
sub esp, 0x6c
push ebx
push esi
push edi
push 0x5c911160
push 0x5c911161
push 1
push 0x14
lea eax, [ebp - 0x30]
push eax
call fcn.5c9131cd
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
and byte [ebp - 0xd], 0
lea eax, [ebx + 8]
push eax
mov byte [ebp - 0xe], 1
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call fcn.5c911164
test al, al
je 0x5c912441
push 0x1194
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x5c91267a
cmp dword [ebp + 0x14], 0x48
jne 0x5c9127b5
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x80000007
jne 0x5c9127b5
cmp word [eax + 4], 0x40
jne 0x5c9127b5
mov ecx, dword [eax + 8]
cmp ecx, 5
je 0x5c912476
cmp ecx, 4
jne 0x5c9127b5
mov ecx, dword [ebx]
lea esi, [eax + 0x10]
mov dword [ebp + 0x14], esi
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
push eax
movsd dword es:[edi], dword [esi]
call fcn.5c911b97
mov edi, eax
test edi, edi
je 0x5c912508
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.5c9112eb
test eax, eax
jne 0x5c912508
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
jne 0x5c9124ba
mov esi, 0xc000009a
jmp 0x5c9127eb
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x5c9124df
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x5c9124b0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov ecx, dword [eax + 0x38]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0x3c]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov dword [edi + 0x10], esi
jmp 0x5c91269e
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 4]
push dword [ebp + 0x14]
call fcn.5c911346
mov esi, eax
xor eax, eax
cmp esi, eax
jge 0x5c912537
cmp dword [ebp - 0x18], eax
je 0x5c9127eb
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x5c9127eb
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
push 0x80
push 3
push eax
push 7
mov edi, 0xc0000000
push edi
push dword [ebp - 0x18]
call esi
cmp eax, 0xffffffff
jne 0x5c9125ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x5c9125b2
push 0x14
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x5c9124b0
mov esi, dword [ebp + 0x14]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x18
movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebx + 0x10], eax
jne 0x5c9126c1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov esi, 0xc000009a
jmp 0x5c9127f4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and byte [ebp - 0xe], 0
push 0
mov ebx, 0x22200000
push ebx
push 3
push 0
push 7
push edi
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
jne 0x5c912619
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
mov dword [ebp - 0x18], eax
je 0x5c91267a
and eax, 0xfffffffe
jne 0x5c9125f0
mov eax, 0x80
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x5c912602
mov byte [ebp - 0xd], 1
push 0
push ebx
push 3
push 0
push 7
push edi
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
je 0x5c91267a
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor esi, esi
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x48
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x900a8
push dword [ebp + 0x14]
call edi
test eax, eax
je 0x5c91267a
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
call fcn.5c91145b
cmp eax, esi
mov dword [ebp + 8], eax
jge 0x5c91265b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5c9127bc
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push 0x48
push dword [ebp + 0x10]
push 0x900a4
push ebx
call edi
test eax, eax
push ebx
jne 0x5c912686
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], 0xc0000001
jmp 0x5c9127bc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], 0
je 0x5c91269e
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 0x18]
xor esi, esi
cmp byte [ebp - 0xe], 0
mov dword [eax], esi
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
je 0x5c9127eb
push dword [ebp + 0xc]
call fcn.5c9112c0
jmp 0x5c9127eb
push dword [ebp + 0xc]
and dword [eax + 0x10], 0
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
pop ecx
mov ecx, dword [ebx + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebx + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0x3c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x5c912744
push dword [ebp + 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [esi]
push ebx
call fcn.5c912196
test al, al
jne 0x5c91271e
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x5c912744
mov edi, dword [ebp + 0x18]
push 4
mov dword [edi], 1
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
jne 0x5c912761
mov ecx, dword [esi]
push ebx
call fcn.5c9121d1
and dword [edi], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x5c9125a0
push eax
push dword [esi + 4]
push dword [ebp + 0x14]
call fcn.5c911346
test eax, eax
mov dword [ebp + 8], eax
jge 0x5c9127a9
mov ecx, dword [esi]
push ebx
call fcn.5c9121d1
push dword [ebp - 0x14]
and dword [edi], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x1c]
push dword [eax]
call dword [sym.imp.msvcrt.dll_free]
push dword [ebx + 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x5c9127f4
push dword [ebp + 0xc]
call fcn.5c9112c0
xor esi, esi
jmp 0x5c9127eb
mov dword [ebp + 8], 0xc000000d
mov eax, dword [ebp + 0x18]
and dword [eax], 0
mov eax, dword [ebp + 0x1c]
and dword [eax], 0
cmp byte [ebp - 0xd], 0
je 0x5c9127da
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0xe], 0
je 0x5c9127e8
push dword [ebp + 0xc]
call fcn.5c9112c0
mov esi, dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
push 0x5c911160
push 1
push 0x14
lea eax, [ebp - 0x30]
push eax
call fcn.5c91316d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18