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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53604c
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x464], eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x46c], ecx
mov edi, 0x100
mov dword [ebp - 0x44c], 7
mov dword [ebp - 0x450], eax
mov word [ebp - 0x460], dx
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], eax
call fcn.00428420
xor eax, eax
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], ax
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection__________________________IN._n
push 5
mov byte [ebp - 4], 2
call fcn.00403750
add esp, 8
test ebx, ebx
je 0x41b2d4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41b2d4
push 0xffffffffffffffff
push 0
add esi, 0xc
push esi
lea ecx, [ebp - 0x444]
call fcn.00401cd0
push 0x20a
lea ecx, [ebp - 0x428]
push 0
push ecx
call fcn.0051eb70
push 0x20a
lea edx, [ebp - 0x21c]
push 0
push edx
call fcn.0051eb70
add esp, 0x18
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41afbe
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0x54d72c
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41afbe
cmp dword [esi + 0x14], 8
jb 0x41af73
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41afbe
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x80
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x444]
call fcn.004036f0
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x41afd3
lea eax, [ebp - 0x444]
push eax
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection_strTargetInfFile___1_s__IN_n
push 5
call fcn.00403750
push 0xfff
push str...CommonDeviceInf.cpp
push 0x200
call fcn.00422d90
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41b07a
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x41b012
lea eax, [ebp - 0x444]
push eax
push 2
lea ecx, [ebp - 0x488]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x41b03d
lea eax, [ebp - 0x444]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea edx, [edi - 2]
cmp edx, eax
jne 0x41b17a
push esi
call fcn.00422db0
push 0x100a
add edi, 0x100
lea eax, [edi + edi]
push str...CommonDeviceInf.cpp
push eax
call fcn.00422d90
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41affd
cmp word [ebp - 0x21c], 0
je 0x41b0b9
lea ecx, [ebp - 0x21c]
push ecx
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection_Delete_the_temp_file.___1_s___n
push 5
call fcn.00403750
add esp, 0xc
push 0x80
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x41b2eb
push esi
lea ecx, [ebp - 0x484]
call fcn.00428e50
push esi
call fcn.00422db0
add esp, 4
lea ecx, [ebp - 0x484]
xor ebx, ebx
call fcn.00426dd0
test eax, eax
je 0x41b25d
jmp 0x41b0f0
lea ecx, [ebp - 0x4a0]
call fcn.00428600
push 0x2c
push ebx
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 3
call fcn.00427000
push eax
lea ecx, [ebp - 0x4a0]
call fcn.004289f0
push 0x20
lea ecx, [ebp - 0x4a0]
call fcn.00428040
mov edi, dword [ebp - 0x464]
test edi, edi
je 0x41b190
push 0x5c
push edi
call fcn.0051edd8
mov esi, eax
mov eax, edi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b142
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x460]
call fcn.00401dd0
test esi, esi
je 0x41b1a2
cmp word [esi + 2], 0
je 0x41b1a2
push 0x5c
push 1
lea ecx, [ebp - 0x460]
call fcn.00412ef0
jmp 0x41b1a2
test eax, eax
jne 0x41b07a
push esi
call fcn.00422db0
add esp, 4
jmp 0x41b2eb
push 0
push 0x5450a0
lea ecx, [ebp - 0x460]
call fcn.00401dd0
push 0
lea ecx, [ebp - 0x4a0]
call fcn.00427000
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41b1b4
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.004035d0
mov eax, dword [ebp - 0x44c]
mov edx, dword [ebp - 0x460]
mov esi, edx
cmp eax, 8
jae 0x41b21e
lea esi, [ebp - 0x460]
mov ecx, esi
mov edi, dword [ebp - 0x450]
cmp eax, 8
lea ecx, [ecx + edi*2]
mov eax, edx
jae 0x41b201
lea eax, [ebp - 0x460]
cmp eax, ecx
je 0x41b222
push fcn.005200a7
push esi
push ecx
push eax
lea ecx, [ebp - 0x468]
push ecx
call fcn.004127b0
add esp, 0x14
jmp 0x41b228
mov ecx, edx
jmp 0x41b1eb
mov dword [ebp - 0x468], esi
mov ecx, dword [ebp - 0x46c]
lea edx, [ebp - 0x460]
push edx
call fcn.00402610
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 2
call fcn.00428610
lea ecx, [ebp - 0x484]
inc ebx
call fcn.00426dd0
cmp ebx, eax
jb 0x41b0f0
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection__________________________OUT._n
push 5
call fcn.00403750
mov esi, 8
add esp, 8
cmp dword [ebp - 0x430], esi
jb 0x41b288
mov eax, dword [ebp - 0x444]
push eax
call fcn.00429e6f
add esp, 4
xor ecx, ecx
mov word [ebp - 0x444], cx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
call fcn.00428480
cmp dword [ebp - 0x44c], esi
jb 0x41b2ca
mov edx, dword [ebp - 0x460]
push edx
call fcn.00429e6f
add esp, 4
mov eax, 1
jmp 0x41b35a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection_pSection_is_invalid._n
push 5
call fcn.00403750
add esp, 8
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection__________________________Error_OUT._n
push 5
call fcn.00403750
mov esi, 8
add esp, 8
cmp dword [ebp - 0x430], esi
jb 0x41b316
mov eax, dword [ebp - 0x444]
push eax
call fcn.00429e6f
add esp, 4
xor ecx, ecx
mov word [ebp - 0x444], cx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
call fcn.00428480
cmp dword [ebp - 0x44c], esi
jb 0x41b358
mov edx, dword [ebp - 0x460]
push edx
call fcn.00429e6f
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret 0xc