Function at 0x7d70a130
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x1c], 0
xor eax, eax
mov word [ebp - 0x44], ax
xor ecx, ecx
mov word [ebp - 0x42], cx
mov dword [ebp - 0x40], 0
xor edx, edx
mov word [ebp - 0x3c], dx
xor eax, eax
mov word [ebp - 0x3a], ax
mov dword [ebp - 0x38], 0
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x7d70a192
cmp dword [ebp + 0xc], 0
je 0x7d70a192
mov ecx, dword [ebp + 0x10]
or ecx, 1
cmp ecx, 1
je 0x7d70a1a0
push 0x57
call sub.kernel32.dll_SetLastError
xor al, al
jmp 0x7d70a520
mov edx, dword [ebp + 0x10]
and edx, 1
je 0x7d70a1b1
mov dword [ebp - 0x30], 1
jmp 0x7d70a1b8
mov dword [ebp - 0x30], 0x40
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ntext.dll_RtlDetermineDosPathNameType_U]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 5
ja case.0x7d70a1d2.1
mov ecx, dword [ebp - 0x2c]
jmp dword [ecx*4 + 0x7d70a528]
mov byte [ebp - 1], 1
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntext.dll_RtlInitUnicodeString]
jmp 0x7d70a29b
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call sym.kernel32_wrapper.dll_GetFullPathNameW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x7d70a217
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
jmp 0x7d70a495
mov eax, dword [ebp - 0x20]
shl eax, 1
push eax
push 0
call fcn.7d701060
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.ntext.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x7d70a246
mov dword [ebp - 0xc], 8
jmp 0x7d70a495
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sym.kernel32_wrapper.dll_GetFullPathNameW
test eax, eax
jne 0x7d70a26c
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
jmp 0x7d70a495
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0xc], ecx
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ntext.dll_RtlDosPathNameToNtPathName_U]
movzx ecx, al
test ecx, ecx
jne 0x7d70a29b
mov byte [ebp - 2], 1
mov dword [ebp - 0xc], 0x57
jmp 0x7d70a495
mov edx, dword [ebp + 0xc]
push edx
call sub.ntext.dll_wcslen
add esp, 4
shl eax, 1
mov dword [ebp - 0x24], eax
movzx eax, word [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
lea edx, [eax + ecx + 0x14]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
push 0
call fcn.7d701060
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.ntext.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d70a2e7
mov dword [ebp - 0xc], 8
jmp 0x7d70a495
mov eax, dword [ebp - 8]
add eax, 0x14
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ecx], 0xa000000c
movzx edx, word [ebp - 0x28]
sub edx, 8
mov eax, dword [ebp - 8]
mov word [eax + 4], dx
xor ecx, ecx
mov edx, dword [ebp - 8]
mov word [edx + 6], cx
xor eax, eax
mov ecx, dword [ebp - 8]
mov word [ecx + 8], ax
mov edx, dword [ebp - 8]
mov ax, word [ebp - 0x3c]
mov word [edx + 0xa], ax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 8]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
movzx eax, word [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.ntext.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov dx, word [ecx + 0xa]
mov word [eax + 0xc], dx
mov eax, dword [ebp - 8]
mov cx, word [ebp - 0x24]
mov word [eax + 0xe], cx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.ntext.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
movzx edx, byte [ebp - 1]
test edx, edx
je 0x7d70a3a1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
or ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], ecx
push 0
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntext.dll_RtlDosPathNameToNtPathName_U]
movzx edx, al
test edx, edx
jne 0x7d70a3c6
mov dword [ebp - 0xc], 3
jmp 0x7d70a495
mov dword [ebp - 0x64], 0x18
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push 0
push 0
mov ecx, dword [ebp - 0x30]
or ecx, 0x200020
push ecx
push 2
push 0
push 0x80
push 0
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x64]
push eax
push 0x110100
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.ntext.dll_NtCreateFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x7d70a437
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov dword [ebp - 0xc], eax
jmp 0x7d70a495
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x900a4
lea edx, [ebp - 0x4c]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ntext.dll_NtFsControlFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x7d70a48e
mov byte [ebp - 3], 1
push 0xd
push 1
lea ecx, [ebp - 3]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ntext.dll_NtSetInformationFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov dword [ebp - 0xc], eax
jmp 0x7d70a495
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x1c], 0
je 0x7d70a4a5
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ntext.dll_NtClose]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ntext.dll_RtlFreeUnicodeString]
movzx ecx, byte [ebp - 2]
test ecx, ecx
je 0x7d70a4cf
mov edx, dword [ebp - 0x38]
push edx
push 0
call fcn.7d701060
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.ntext.dll_RtlFreeHeap]
cmp dword [ebp - 0x14], 0
je 0x7d70a4ed
mov edx, dword [ebp - 0x14]
push edx
push 0
call fcn.7d701060
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.ntext.dll_RtlFreeHeap]
cmp dword [ebp - 8], 0
je 0x7d70a50b
mov edx, dword [ebp - 8]
push edx
push 0
call fcn.7d701060
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.ntext.dll_RtlFreeHeap]
cmp dword [ebp - 0xc], 0
je 0x7d70a51e
mov edx, dword [ebp - 0xc]
push edx
call sub.kernel32.dll_SetLastError
xor al, al
jmp 0x7d70a520
mov al, 1
mov esp, ebp
pop ebp
ret 0xc