Function at 0x140028370
Capabilities:
Copy file
Delete file
Get common file path
Read .ini file
Set file attributes

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x598
mov qword [rsp + 0x568], 0xfffffffffffffffe
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x588], rax
mov dword [rsp + 0x4c8], 0x100
mov eax, dword [rsp + 0x4c8]
mov dword [rsp + 0x4f8], eax
mov qword [rsp + 0x258], 0
lea rcx, [rsp + 0x4a0]
call fcn.140003370
nop
mov dword [rsp + 0x250], 0
lea rcx, [rsp + 0x470]
call fcn.140062470
nop
lea rcx, [rsp + 0x4d0]
call fcn.140003370
nop
lea rdx, str.CPrinterDriverInf::GetFilesFromCopyFilesSection__________________________IN._n
mov ecx, 5
call fcn.14001c160
cmp qword [rsp + 0x5a8], 0
je 0x140028431
mov rcx, qword [rsp + 0x5a8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140028452
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CPrinterDriverInf::GetFilesFromCopyFilesSection_pSection_is_invalid._n
mov ecx, 5
call fcn.14001c160
jmp 0x140028919
mov rax, qword [rsp + 0x5a0]
add rax, 0x10
mov rdx, rax
lea rcx, [rsp + 0x4d0]
call fcn.1400104f0
mov r8d, 0x20a
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.1401ac6a0
mov r8d, 0x20a
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1401ac6a0
lea rdx, [rsp + 0x260]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14002852a
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x1401ee708]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14002852a
mov rax, qword [rsp + 0x5a0]
add rax, 0x10
mov rcx, rax
call fcn.140003530
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14002852a
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, 0x80
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x4d0]
call fcn.140010520
lea rcx, [rsp + 0x4d0]
call fcn.140003530
mov r8, rax
lea rdx, str.CPrinterDriverInf::GetFilesFromCopyFilesSection_strTargetInfFile___1_s__IN_n
mov ecx, 5
call fcn.14001c160
mov eax, dword [rsp + 0x4f8]
shl rax, 1
mov r8d, 0xfff
lea rdx, [0x1401f03c8]
mov rcx, rax
call fcn.140047520
mov qword [rsp + 0x258], rax
cmp qword [rsp + 0x258], 0
je 0x140028678
lea rcx, [rsp + 0x4d0]
call fcn.140003530
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x4fc]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x4d0]
call fcn.140003530
mov r9, rax
mov r8d, dword [rsp + 0x4f8]
mov rdx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x5a8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [rsp + 0x250], eax
mov eax, dword [rsp + 0x4f8]
sub eax, 2
cmp eax, dword [rsp + 0x250]
jne 0x140028647
mov rcx, qword [rsp + 0x258]
call fcn.140047560
mov eax, dword [rsp + 0x4c8]
mov ecx, dword [rsp + 0x4f8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4f8], eax
mov eax, dword [rsp + 0x4f8]
shl rax, 1
mov r8d, 0x100a
lea rdx, [0x1401f05d8]
mov rcx, rax
call fcn.140047520
mov qword [rsp + 0x258], rax
jmp 0x140028673
cmp dword [rsp + 0x250], 0
jne 0x140028671
mov rcx, qword [rsp + 0x258]
call fcn.140047560
mov qword [rsp + 0x258], 0
jmp 0x140028919
jmp 0x140028678
jmp 0x140028572
movzx eax, word [rsp + 0x40]
test eax, eax
je 0x1400286b2
lea r8, [rsp + 0x40]
lea rdx, str.CPrinterDriverInf::GetFilesFromCopyFilesSection_Delete_the_temp_file.___1_s___n
mov ecx, 5
call fcn.14001c160
mov edx, 0x80
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rsp + 0x258], 0
jne 0x1400286c2
jmp 0x140028919
mov rdx, qword [rsp + 0x258]
lea rcx, [rsp + 0x470]
call fcn.1400628a0
mov rcx, qword [rsp + 0x258]
call fcn.140047560
mov qword [rsp + 0x258], 0
mov dword [rsp + 0x500], 0
jmp 0x14002870d
mov eax, dword [rsp + 0x500]
inc eax
mov dword [rsp + 0x500], eax
mov eax, dword [rsp + 0x500]
mov qword [rsp + 0x570], rax
lea rcx, [rsp + 0x470]
call fcn.140062550
mov rcx, qword [rsp + 0x570]
cmp rcx, rax
jae 0x1400288cb
lea rcx, [rsp + 0x508]
call fcn.140061270
nop
mov eax, dword [rsp + 0x500]
mov edx, eax
lea rcx, [rsp + 0x470]
call fcn.1400627c0
mov r8w, 0x2c
mov rdx, rax
lea rcx, [rsp + 0x508]
call fcn.1400612e0
mov dx, 0x20
lea rcx, [rsp + 0x508]
call fcn.140061b10
cmp qword [rsp + 0x5b0], 0
je 0x1400287ef
mov dx, 0x5c
mov rcx, qword [rsp + 0x5b0]
call fcn.1401ad2b4
mov qword [rsp + 0x538], rax
mov rdx, qword [rsp + 0x5b0]
lea rcx, [rsp + 0x4a0]
call fcn.140010520
cmp qword [rsp + 0x538], 0
je 0x1400287ed
mov rcx, qword [rsp + 0x538]
call fcn.140010230
movzx eax, word [rax]
test eax, eax
je 0x1400287ed
mov dx, 0x5c
lea rcx, [rsp + 0x4a0]
call fcn.1400105b0
jmp 0x140028803
lea rdx, [0x1401eba24]
lea rcx, [rsp + 0x4a0]
call fcn.140010520
xor edx, edx
lea rcx, [rsp + 0x508]
call fcn.1400627c0
mov rdx, rax
lea rcx, [rsp + 0x4a0]
call fcn.140010580
lea rdx, [rsp + 0x540]
lea rcx, [rsp + 0x4a0]
call fcn.1400034a0
mov qword [rsp + 0x578], rax
lea rdx, [rsp + 0x548]
lea rcx, [rsp + 0x4a0]
call fcn.1400034e0
mov qword [rsp + 0x580], rax
lea rdx, [rsp + 0x550]
lea rcx, [rsp + 0x4a0]
call fcn.1400034a0
lea rcx, [fcn.1401abf98]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x578]
mov r9, qword [rcx]
mov rcx, qword [rsp + 0x580]
mov r8, qword [rcx]
mov rdx, qword [rax]
lea rcx, [rsp + 0x558]
call fcn.140004130
lea rdx, [rsp + 0x4a0]
mov rcx, qword [rsp + 0x5b8]
call fcn.1400109f0
nop
lea rcx, [rsp + 0x508]
call fcn.1400612b0
jmp 0x1400286fd
lea rdx, str.CPrinterDriverInf::GetFilesFromCopyFilesSection__________________________OUT._n
mov ecx, 5
call fcn.14001c160
mov dword [rsp + 0x560], 1
lea rcx, [rsp + 0x4d0]
call fcn.140003430
nop
lea rcx, [rsp + 0x470]
call fcn.1400629e0
nop
lea rcx, [rsp + 0x4a0]
call fcn.140003430
mov eax, dword [rsp + 0x560]
jmp 0x140028965
lea rdx, str.CPrinterDriverInf::GetFilesFromCopyFilesSection__________________________Error_OUT._n
mov ecx, 5
call fcn.14001c160
mov dword [rsp + 0x564], 0
lea rcx, [rsp + 0x4d0]
call fcn.140003430
nop
lea rcx, [rsp + 0x470]
call fcn.1400629e0
nop
lea rcx, [rsp + 0x4a0]
call fcn.140003430
mov eax, dword [rsp + 0x564]
mov rcx, qword [rsp + 0x588]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x598
ret