Function at 0x689148b0
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 1], 0
xor eax, eax
mov word [ebp - 0x30], ax
xor ecx, ecx
mov dword [ebp - 0x2e], ecx
mov word [ebp - 0x2a], cx
call fcn.68911060
mov edx, dword [eax + 0x30]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0xc
ja case.0x689148f3.1
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x68914b58]
jmp dword [eax*4 + 0x68914b3c]
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 0x28
jmp 0x68914abf
mov dword [ebp - 0x10], 0xa
mov dword [ebp - 8], 0x10
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
jbe 0x68914931
push 0x18
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x68914b35
cmp dword [ebp + 0x10], 0
jne 0x6891494a
push 0x57
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x68914b35
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 2
jb 0x68914972
mov ecx, 2
imul ecx, ecx, 0
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + ecx + 0xc]
cmp eax, 0x3a
je 0x68914a40
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0xc
push edx
call dword [sym.imp.ntext.dll_RtlDosPathNameToNtPathName_U]
movzx eax, al
test eax, eax
jne 0x6891499c
push 0x57
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x68914b35
movzx ecx, word [ebp - 0x30]
add ecx, 0x10
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x689149e0
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.ntext.dll_RtlFreeUnicodeString]
mov edx, dword [ebp - 0x28]
push edx
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x68914b35
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
movzx eax, word [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
movzx edx, word [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
push ecx
call sub.ntext.dll_memcpy
add esp, 0xc
movzx edx, word [ebp - 0x30]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + edx + 0xc], ax
mov edx, dword [ebp - 0xc]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0x14], eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.ntext.dll_RtlFreeUnicodeString]
jmp 0x68914abf
mov dword [ebp - 0x10], 0xd
mov dword [ebp - 8], 1
jmp 0x68914abf
mov dword [ebp - 0x10], 0x13
mov dword [ebp - 8], 8
jmp 0x68914abf
mov dword [ebp - 0x10], 0x14
mov dword [ebp - 8], 8
jmp 0x68914abf
mov dword [ebp - 0x10], 0x2b
mov dword [ebp - 8], 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x14]
jbe 0x68914a96
push 0x18
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x68914b35
cmp dword [ebp + 0x10], 0
je 0x68914aa4
mov eax, dword [ebp + 0x10]
cmp dword [eax], 3
jl 0x68914ab2
push 0x57
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x68914b35
jmp 0x68914abf
push 0x57
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x68914b35
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
jbe 0x68914ae9
movzx edx, byte [ebp - 1]
test edx, edx
je 0x68914ade
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call sub.kernel32.dll_HeapFree
push 0x18
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x68914b35
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntext.dll_NtSetInformationFile]
mov dword [ebp - 0x24], eax
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x68914b1d
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x24], 0
jl 0x68914b2a
mov eax, 1
jmp 0x68914b35
mov ecx, dword [ebp - 0x24]
push ecx
call sym.kernelbase.dll_BaseSetLastNTError
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10