Function at 0x1019430
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, [0x0100b560]
call fcn.01011d38
lea r15, [0x010053c0]
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.0100f990
nop
mov rdx, r15
lea rcx, [rsp + 0xb8]
call fcn.0100f990
nop
mov rdx, r15
lea rcx, [rsp + 0xc8]
call fcn.0100f990
nop
xor edx, edx
lea rcx, [r12 + 0x108]
call fcn.0100fe90
mov rdx, rax
lea rcx, [0x0100b5b0]
call fcn.01011d38
xor edx, edx
lea rcx, [r12 + 0x100]
call fcn.0100fe90
mov rdx, rax
lea rcx, [0x0100b600]
call fcn.01011d38
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.0100f990
nop
mov rdx, r15
lea rcx, [rsp + 0xc0]
call fcn.0100f990
nop
xor edx, edx
lea rcx, [r12 + 0x138]
call fcn.0100fe90
mov rdx, rax
lea rcx, [0x0100b648]
call fcn.01011d38
xor edx, edx
lea rcx, [r12 + 0x128]
call fcn.0100fe90
mov rdx, rax
lea rcx, [0x0100b690]
call fcn.01011d38
xor edx, edx
lea rcx, [r12 + 0x128]
call fcn.0100fe90
mov rdi, rax
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.0100fe90
mov rbx, rax
xor edx, edx
lea rcx, [r12 + 0x138]
call fcn.0100fe90
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov esi, 0x104
mov dword [rsp + 0x20], esi
mov r9, rbx
mov r8, r15
lea rdx, [0x0100b6d8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or r15d, 0xffffffff
mov edx, r15d
lea rcx, [rsp + 0xc0]
call fcn.0100ff00
mov rbx, qword [rsp + 0xc0]
cmp qword [rbx - 0x10], rbp
jne 0x10195c5
lea rcx, [0x0100b700]
call fcn.01011d38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x0100b760]
call fcn.01011d38
cmp qword [rbx - 0x10], rbp
jne 0x1019630
lea rcx, [0x0100b7b0]
call fcn.01011d38
mov r11, qword [r12 + 0x50]
mov qword [rsp + 0x20], r11
lea r9, [0x0100b820]
lea r8, [0x0100b840]
lea rdx, [rsp + 0xb0]
mov rcx, r12
call fcn.0101932c
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.0100faec
lea rcx, [rsp + 0xb0]
call fcn.0100f940
mov rdx, qword [rsp + 0xc0]
lea rcx, [0x0100b850]
call fcn.01011d38
lea r8, [0x010093a8]
lea rdx, [r12 + 0x100]
lea rcx, [rsp + 0x40]
call fcn.0100fcd0
lea r8, [rsp + 0xc0]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.0100fc90
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.0100faec
lea rcx, [rsp + 0xb0]
call fcn.0100f940
lea rcx, [rsp + 0x40]
call fcn.0100f940
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.0100fe90
mov rdx, rax
lea rcx, [0x0100b8c0]
call fcn.01011d38
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.0100fe90
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, r15d
lea rcx, [rsp + 0x30]
call fcn.0100ff00
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.0100fe90
mov rdx, rax
lea rcx, [0x0100b910]
call fcn.01011d38
mov rdx, rsi
lea rcx, [rsp + 0xb8]
call fcn.0100fe90
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.0100ff00
cmp ebx, ebp
jne 0x101972e
lea rcx, [0x01008ed0]
call fcn.01011d38
mov ebp, 0xffffff9d
jmp 0x1019955
lea r8, [0x01008f30]
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x48]
call fcn.0100fcd0
lea r8, [r12 + 0x108]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.0100fc90
lea r8, [0x0100b950]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.0100fcd0
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.0100faec
lea rcx, [rsp + 0xb0]
call fcn.0100f940
lea rcx, [rsp + 0x40]
call fcn.0100f940
lea rcx, [rsp + 0x48]
call fcn.0100f940
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.0100fe90
mov rdx, rax
lea rcx, [0x0100b960]
call fcn.01011d38
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.0100fe90
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebp
jne 0x10197f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x0100b9b0]
call fcn.01011d38
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.0100fe90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1019834
test al, 2
jne 0x1019834
or ebx, 2
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.0100fe90
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, rsi
lea rcx, [rsp + 0xc8]
call fcn.0100fe90
mov rdi, rax
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.0100fe90
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.0100fe90
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov r9d, esi
mov r8, rbx
lea rcx, [rsp + 0xb0]
call fcn.01026224
mov ebx, eax
mov edx, r15d
lea rcx, [rsp + 0xc8]
call fcn.0100ff00
xor edx, edx
lea rcx, [rsp + 0xc8]
call fcn.0100fe90
mov rdx, rax
lea rcx, [0x0100ba20]
call fcn.01011d38
cmp ebx, 0x80004005
jne 0x10198cb
lea rcx, [0x0100ba70]
call fcn.01011d38
mov ebp, 0xffffff9d
jmp 0x1019955
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.0100fe90
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0xc8]
call fcn.0100fe90
mov qword [rsp + 0xb0], rbx
lea r9, [rsp + 0xb0]
lea r8, [0x01026180]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
cmp eax, ebp
jne 0x1019925
lea rcx, [0x0100bad0]
call fcn.01011d38
mov ebp, 0xffffff9d
jmp 0x1019955
xor edx, edx
lea rcx, [rsp + 0xc8]
call fcn.0100fe90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x1019955
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x0100bb20]
call fcn.01011d38
mov edx, ebp
lea rcx, [0x0100bb90]
call fcn.01011d38
nop
lea rcx, [rsp + 0xc0]
call fcn.0100f940
nop
lea rcx, [rsp + 0x38]
call fcn.0100f940
nop
lea rcx, [rsp + 0xc8]
call fcn.0100f940
nop
lea rcx, [rsp + 0xb8]
call fcn.0100f940
nop
lea rcx, [rsp + 0x30]
call fcn.0100f940
mov eax, ebp
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret