Function at 0x101a430
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, [0x0100c560]
call fcn.01012d38
lea r15, [0x010063c0]
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.01010990
nop
mov rdx, r15
lea rcx, [rsp + 0xb8]
call fcn.01010990
nop
mov rdx, r15
lea rcx, [rsp + 0xc8]
call fcn.01010990
nop
xor edx, edx
lea rcx, [r12 + 0x108]
call fcn.01010e90
mov rdx, rax
lea rcx, [0x0100c5b0]
call fcn.01012d38
xor edx, edx
lea rcx, [r12 + 0x100]
call fcn.01010e90
mov rdx, rax
lea rcx, [0x0100c600]
call fcn.01012d38
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.01010990
nop
mov rdx, r15
lea rcx, [rsp + 0xc0]
call fcn.01010990
nop
xor edx, edx
lea rcx, [r12 + 0x138]
call fcn.01010e90
mov rdx, rax
lea rcx, [0x0100c648]
call fcn.01012d38
xor edx, edx
lea rcx, [r12 + 0x128]
call fcn.01010e90
mov rdx, rax
lea rcx, [0x0100c690]
call fcn.01012d38
xor edx, edx
lea rcx, [r12 + 0x128]
call fcn.01010e90
mov rdi, rax
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.01010e90
mov rbx, rax
xor edx, edx
lea rcx, [r12 + 0x138]
call fcn.01010e90
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov esi, 0x104
mov dword [rsp + 0x20], esi
mov r9, rbx
mov r8, r15
lea rdx, [0x0100c6d8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or r15d, 0xffffffff
mov edx, r15d
lea rcx, [rsp + 0xc0]
call fcn.01010f00
mov rbx, qword [rsp + 0xc0]
cmp qword [rbx - 0x10], rbp
jne 0x101a5c5
lea rcx, [0x0100c700]
call fcn.01012d38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x0100c760]
call fcn.01012d38
cmp qword [rbx - 0x10], rbp
jne 0x101a630
lea rcx, [0x0100c7b0]
call fcn.01012d38
mov r11, qword [r12 + 0x50]
mov qword [rsp + 0x20], r11
lea r9, [0x0100c820]
lea r8, [0x0100c840]
lea rdx, [rsp + 0xb0]
mov rcx, r12
call fcn.0101a32c
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.01010aec
lea rcx, [rsp + 0xb0]
call fcn.01010940
mov rdx, qword [rsp + 0xc0]
lea rcx, [0x0100c850]
call fcn.01012d38
lea r8, [0x0100a3a8]
lea rdx, [r12 + 0x100]
lea rcx, [rsp + 0x40]
call fcn.01010cd0
lea r8, [rsp + 0xc0]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.01010c90
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.01010aec
lea rcx, [rsp + 0xb0]
call fcn.01010940
lea rcx, [rsp + 0x40]
call fcn.01010940
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.01010e90
mov rdx, rax
lea rcx, [0x0100c8c0]
call fcn.01012d38
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.01010e90
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, r15d
lea rcx, [rsp + 0x30]
call fcn.01010f00
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.01010e90
mov rdx, rax
lea rcx, [0x0100c910]
call fcn.01012d38
mov rdx, rsi
lea rcx, [rsp + 0xb8]
call fcn.01010e90
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.01010f00
cmp ebx, ebp
jne 0x101a72e
lea rcx, [0x01009ed0]
call fcn.01012d38
mov ebp, 0xffffff9d
jmp 0x101a955
lea r8, [0x01009f30]
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x48]
call fcn.01010cd0
lea r8, [r12 + 0x108]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.01010c90
lea r8, [0x0100c950]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.01010cd0
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.01010aec
lea rcx, [rsp + 0xb0]
call fcn.01010940
lea rcx, [rsp + 0x40]
call fcn.01010940
lea rcx, [rsp + 0x48]
call fcn.01010940
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.01010e90
mov rdx, rax
lea rcx, [0x0100c960]
call fcn.01012d38
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.01010e90
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebp
jne 0x101a7f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x0100c9b0]
call fcn.01012d38
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.01010e90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x101a834
test al, 2
jne 0x101a834
or ebx, 2
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.01010e90
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, rsi
lea rcx, [rsp + 0xc8]
call fcn.01010e90
mov rdi, rax
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.01010e90
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.01010e90
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov r9d, esi
mov r8, rbx
lea rcx, [rsp + 0xb0]
call fcn.01027224
mov ebx, eax
mov edx, r15d
lea rcx, [rsp + 0xc8]
call fcn.01010f00
xor edx, edx
lea rcx, [rsp + 0xc8]
call fcn.01010e90
mov rdx, rax
lea rcx, [0x0100ca20]
call fcn.01012d38
cmp ebx, 0x80004005
jne 0x101a8cb
lea rcx, [0x0100ca70]
call fcn.01012d38
mov ebp, 0xffffff9d
jmp 0x101a955
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.01010e90
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0xc8]
call fcn.01010e90
mov qword [rsp + 0xb0], rbx
lea r9, [rsp + 0xb0]
lea r8, [0x01027180]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
cmp eax, ebp
jne 0x101a925
lea rcx, [0x0100cad0]
call fcn.01012d38
mov ebp, 0xffffff9d
jmp 0x101a955
xor edx, edx
lea rcx, [rsp + 0xc8]
call fcn.01010e90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x101a955
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x0100cb20]
call fcn.01012d38
mov edx, ebp
lea rcx, [0x0100cb90]
call fcn.01012d38
nop
lea rcx, [rsp + 0xc0]
call fcn.01010940
nop
lea rcx, [rsp + 0x38]
call fcn.01010940
nop
lea rcx, [rsp + 0xc8]
call fcn.01010940
nop
lea rcx, [rsp + 0xb8]
call fcn.01010940
nop
lea rcx, [rsp + 0x30]
call fcn.01010940
mov eax, ebp
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret