Function at 0x10174a8
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Read .ini file
Set file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov r12, rcx
xor ebp, ebp
lea rcx, [0x01009590]
call fcn.0100fdd0
lea r15, [0x010033f0]
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.0100da30
nop
mov rdx, r15
lea rcx, [rsp + 0xb8]
call fcn.0100da30
nop
mov rdx, r15
lea rcx, [rsp + 0xc8]
call fcn.0100da30
nop
xor edx, edx
lea rcx, [r12 + 0x108]
call fcn.0100df30
mov rdx, rax
lea rcx, [0x010095e0]
call fcn.0100fdd0
xor edx, edx
lea rcx, [r12 + 0x100]
call fcn.0100df30
mov rdx, rax
lea rcx, [0x01009630]
call fcn.0100fdd0
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.0100da30
nop
mov rdx, r15
lea rcx, [rsp + 0xc0]
call fcn.0100da30
nop
xor edx, edx
lea rcx, [r12 + 0x138]
call fcn.0100df30
mov rdx, rax
lea rcx, [0x01009678]
call fcn.0100fdd0
xor edx, edx
lea rcx, [r12 + 0x128]
call fcn.0100df30
mov rdx, rax
lea rcx, [0x010096c0]
call fcn.0100fdd0
xor edx, edx
lea rcx, [r12 + 0x128]
call fcn.0100df30
mov rdi, rax
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.0100df30
mov rbx, rax
xor edx, edx
lea rcx, [r12 + 0x138]
call fcn.0100df30
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov esi, 0x104
mov dword [rsp + 0x20], esi
mov r9, rbx
mov r8, r15
lea rdx, [0x01009708]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or r15d, 0xffffffff
mov edx, r15d
lea rcx, [rsp + 0xc0]
call fcn.0100dfa0
mov rbx, qword [rsp + 0xc0]
cmp qword [rbx - 0x10], rbp
jne 0x101763d
lea rcx, [0x01009730]
call fcn.0100fdd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x01009790]
call fcn.0100fdd0
cmp qword [rbx - 0x10], rbp
jne 0x10176a8
lea rcx, [0x010097e0]
call fcn.0100fdd0
mov r11, qword [r12 + 0x50]
mov qword [rsp + 0x20], r11
lea r9, [0x01009850]
lea r8, [0x01009870]
lea rdx, [rsp + 0xb0]
mov rcx, r12
call fcn.010173a4
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.0100db8c
lea rcx, [rsp + 0xb0]
call fcn.0100d9e0
mov rdx, qword [rsp + 0xc0]
lea rcx, [0x01009880]
call fcn.0100fdd0
lea r8, [0x010073e8]
lea rdx, [r12 + 0x100]
lea rcx, [rsp + 0x40]
call fcn.0100dd70
lea r8, [rsp + 0xc0]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.0100dd30
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.0100db8c
lea rcx, [rsp + 0xb0]
call fcn.0100d9e0
lea rcx, [rsp + 0x40]
call fcn.0100d9e0
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.0100df30
mov rdx, rax
lea rcx, [0x010098f0]
call fcn.0100fdd0
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.0100df30
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, r15d
lea rcx, [rsp + 0x30]
call fcn.0100dfa0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.0100df30
mov rdx, rax
lea rcx, [0x01009940]
call fcn.0100fdd0
mov rdx, rsi
lea rcx, [rsp + 0xb8]
call fcn.0100df30
mov rdx, rax
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
mov edx, r15d
lea rcx, [rsp + 0xb8]
call fcn.0100dfa0
cmp ebx, ebp
jne 0x10177a6
lea rcx, [0x01006f10]
call fcn.0100fdd0
mov ebp, 0xffffff9d
jmp 0x10179cd
lea r8, [0x01006f70]
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x48]
call fcn.0100dd70
lea r8, [r12 + 0x108]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.0100dd30
lea r8, [0x01009980]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.0100dd70
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.0100db8c
lea rcx, [rsp + 0xb0]
call fcn.0100d9e0
lea rcx, [rsp + 0x40]
call fcn.0100d9e0
lea rcx, [rsp + 0x48]
call fcn.0100d9e0
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.0100df30
mov rdx, rax
lea rcx, [0x01009990]
call fcn.0100fdd0
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.0100df30
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebp
jne 0x101786c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x010099e0]
call fcn.0100fdd0
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.0100df30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x10178ac
test al, 2
jne 0x10178ac
or ebx, 2
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.0100df30
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, rsi
lea rcx, [rsp + 0xc8]
call fcn.0100df30
mov rdi, rax
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.0100df30
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.0100df30
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov r9d, esi
mov r8, rbx
lea rcx, [rsp + 0xb0]
call fcn.01024e10
mov ebx, eax
mov edx, r15d
lea rcx, [rsp + 0xc8]
call fcn.0100dfa0
xor edx, edx
lea rcx, [rsp + 0xc8]
call fcn.0100df30
mov rdx, rax
lea rcx, [0x01009a50]
call fcn.0100fdd0
cmp ebx, 0x80004005
jne 0x1017943
lea rcx, [0x01009aa0]
call fcn.0100fdd0
mov ebp, 0xffffff9d
jmp 0x10179cd
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.0100df30
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0xc8]
call fcn.0100df30
mov qword [rsp + 0xb0], rbx
lea r9, [rsp + 0xb0]
lea r8, [0x01024d6c]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
cmp eax, ebp
jne 0x101799d
lea rcx, [0x01009b00]
call fcn.0100fdd0
mov ebp, 0xffffff9d
jmp 0x10179cd
xor edx, edx
lea rcx, [rsp + 0xc8]
call fcn.0100df30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x10179cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x01009b50]
call fcn.0100fdd0
mov edx, ebp
lea rcx, [0x01009bc0]
call fcn.0100fdd0
nop
lea rcx, [rsp + 0xc0]
call fcn.0100d9e0
nop
lea rcx, [rsp + 0x38]
call fcn.0100d9e0
nop
lea rcx, [rsp + 0xc8]
call fcn.0100d9e0
nop
lea rcx, [rsp + 0xb8]
call fcn.0100d9e0
nop
lea rcx, [rsp + 0x30]
call fcn.0100d9e0
mov eax, ebp
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret