Function at 0x5c91281d
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x5c9132e9
call fcn.5c9130f0
sub esp, 0x88
push esi
push edi
push 0x5c911160
push 0x5c911161
push 1
push 0x14
lea eax, [ebp - 0x80]
push eax
call fcn.5c9131cd
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.5c9113d7
cmp eax, edi
jge 0x5c912865
mov esi, eax
jmp 0x5c912b4c
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 0x24]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jne 0x5c91288b
mov esi, 0xc000009a
jmp 0x5c912b4c
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x5c9110f4
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
mov ebx, dword [ebp + 8]
lea eax, [ebx + 8]
add esp, 0x10
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call fcn.5c911164
test al, al
je 0x5c9128cc
push 0x1194
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x5c912915
push edi
push 0x2000080
push 3
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call dword [sym.imp.msvcrt.dll_free]
cmp edi, 0xffffffff
pop ecx
je 0x5c912915
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c91290e
cmp dword [ebp - 0x1c], 0x10
jae 0x5c91291f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xc0000001
jmp 0x5c912b42
mov eax, dword [ebx + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
inc ecx
cmp dword [eax], ecx
jne 0x5c912994
cmp dword [eax + 4], 0xf1ebf00d
jne 0x5c912994
mov eax, dword [ebx + 0x20]
and eax, 0xfffffff0
cmp eax, 0x10
mov dword [ebp + 0xc], ecx
jbe 0x5c912976
push 0x10
pop ecx
mov edx, 0x7fffffff
mov eax, dword [ebx + 0x24]
add eax, ecx
or dword [eax], 0xffffffff
or dword [eax + 4], edx
mov eax, dword [ebx + 0x24]
or dword [ecx + eax + 8], 0xffffffff
inc dword [ebp + 0xc]
mov dword [ecx + eax + 0xc], edx
mov eax, dword [ebx + 0x20]
shr eax, 4
add ecx, 0x10
cmp dword [ebp + 0xc], eax
jb 0x5c91294e
xor eax, eax
push eax
push eax
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x84]
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push dword [ebx + 0x20]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
lea esi, [ebp - 0x94]
lea edi, [ebp - 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x80]
push eax
movsd dword es:[edi], dword [esi]
call fcn.5c911b97
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
je 0x5c912b40
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.5c9112eb
test eax, eax
jne 0x5c912b40
cmp dword [esi + 0x10], eax
je 0x5c912b31
mov ebx, dword [esi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
and byte [ebp + 0xf], 0
xor eax, eax
push eax
mov edi, 0x22000000
push edi
push 3
push eax
push eax
push 0xc0000000
push dword [ebx]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x5c912a5e
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
mov dword [ebp - 0x20], eax
je 0x5c912b0b
and eax, 0xfffffffe
jne 0x5c912a34
mov eax, 0x80
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
push eax
push edi
push 3
push eax
push eax
push 0xc0000000
push dword [ebx]
mov byte [ebp + 0xf], 1
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x5c912b00
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.5c91145b
mov eax, dword [ebx + 8]
mov dword [ebp - 0x68], 0x80000007
mov word [ebp - 0x62], 0xb010
mov word [ebp - 0x64], 0x40
mov dword [ebp - 0x60], 5
mov dword [ebp - 0x5c], 0xb111b010
lea esi, [ebp - 0x94]
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebp - 0x44], 0x80000000
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2c], eax
xor esi, esi
lea eax, [ebp - 0x28]
push eax
push 0x38
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call fcn.5c911230
push esi
lea eax, [ebp - 0x6c]
push eax
movzx eax, word [ebp - 0x64]
push esi
push esi
add eax, 8
push eax
lea eax, [ebp - 0x68]
push eax
push 0x900a4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xf], 0
je 0x5c912b0b
push dword [ebp - 0x20]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebx + 0x10]
mov esi, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
push dword [ebx]
call dword [sym.imp.msvcrt.dll_free]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [esi + 0x10], 0
pop ecx
pop ecx
jne 0x5c9129ec
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push esi
call fcn.5c9121d1
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor esi, esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
or dword [ebp - 4], 0xffffffff
push 0x5c911160
push 1
push 0x14
lea eax, [ebp - 0x80]
push eax
call fcn.5c91316d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8