Function at 0x100005dcc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor r12d, r12d
mov rdi, rdx
cmp dword [0x10001065c], r12d
je 0x100005e1a
cmp ecx, 3
jne 0x100005e11
mov rcx, qword [rdx + 0x28]
call fcn.100005ca8
or rax, 0xffffffffffffffff
jmp 0x10000605e
test ecx, ecx
je 0x100006054
dec ecx
je 0x100005e36
dec ecx
je 0x100005f25
dec ecx
je 0x100005e3d
dec ecx
je 0x100005e11
xor eax, eax
jmp 0x10000605e
mov rsi, qword [rdx + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [0x100010670]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [rbx + rax + 1]
cmp ecx, 0x104
jge 0x100005e11
lea rdx, [0x100010670]
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.100005730
test eax, eax
je 0x100005e11
mov rbx, qword [rdi + 0x28]
lea rsi, [0x100010f00]
shl rbx, 5
cmp dword [rbx + rsi + 4], 1
je 0x100005e11
movzx edx, word [rdi + 0x32]
movzx ecx, word [rdi + 0x30]
lea r8, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x100005e11
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x100005e11
mov rcx, qword [rbx + rsi + 0x18]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x100005e11
mov rcx, qword [rdi + 0x28]
call fcn.100005ca8
cmp word [rdi + 0x34], r12w
jne 0x100005f03
mov edx, 0x80
jmp 0x100005f0a
movzx edx, word [rdi + 0x34]
and edx, 0x27
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb rax, rax
and eax, 2
dec rax
jmp 0x10000605e
mov rcx, qword [0x100010448]
test rcx, rcx
je 0x100005f40
mov r8, qword [rdx + 8]
mov edx, 0x837
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rdi, qword [rdi + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [0x100010670]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [rbx + rax + 1]
cmp ecx, 0x104
jge 0x100005e11
lea rdx, [0x100010670]
lea rcx, [rsp + 0x40]
mov r8, rdi
call fcn.100005730
test eax, eax
je 0x100005e11
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100006015
shr eax, 4
not eax
and eax, 1
je 0x100006015
cmp dword [0x100010660], r12d
jne 0x100006005
test byte [0x100011418], 1
jne 0x100006005
mov rdx, qword [0x100010448]
lea rax, [rsp + 0x40]
lea r8, [0x10000409c]
xor r9d, r9d
mov ecx, 0x7d3
mov qword [0x100010890], rax
mov qword [rsp + 0x20], 6
call fcn.100007c80
sub rax, 6
je 0x100006005
dec rax
je 0x100005e36
cmp rax, 0x832
jne 0x100006005
mov dword [0x100010660], 1
lea rcx, [rsp + 0x40]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x40]
mov edx, 0x8302
mov r8d, 0x180
call fcn.1000058fc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x100005e11
lea rcx, [rsp + 0x40]
call fcn.1000057e8
test eax, eax
je 0x100005e11
inc dword [0x100010880]
mov rax, rbx
jmp 0x10000605e
mov rcx, rdx
call fcn.100006088
cdqe
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.10000c380
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret