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

Disassembly:
push 0x484
mov eax, 0x5a90e5
call fcn.00588aeb
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x460], eax
xor ecx, ecx
xor eax, eax
mov ebx, 0x100
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], ecx
mov word [ebp - 0x440], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x474]
call fcn.0046c3f7
xor eax, eax
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], eax
mov word [ebp - 0x458], ax
push 0x5c69a8
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection
push 5
mov byte [ebp - 4], 2
call fcn.00423f75
mov eax, dword [ebp - 0x45c]
add esp, 0xc
test eax, eax
je 0x427bbe
push dword [ebp + 0xc]
push eax
call fcn.0058b10d
pop ecx
pop ecx
test eax, eax
je 0x427bbe
add esi, 0x14
lea eax, [ebp - 0x458]
cmp eax, esi
je 0x427849
push 0xffffffffffffffff
xor eax, eax
push eax
push esi
lea ecx, [ebp - 0x458]
call fcn.00403c35
xor eax, eax
push 0x20a
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00587a70
xor eax, eax
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00587a70
add esp, 0x18
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42791d
lea eax, [ebp - 0x21c]
push eax
xor eax, eax
push eax
push 0x5c4108
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42791d
cmp dword [esi + 0x14], 8
jb 0x4278b6
mov esi, dword [esi]
xor eax, eax
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x42791d
lea eax, [ebp - 0x21c]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x80
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp word [ebp - 0x21c], 0
jne 0x4278fd
xor eax, eax
jmp 0x42790a
lea eax, [ebp - 0x21c]
push eax
call fcn.00588144
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x458]
call fcn.00403cef
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
push str.strTargetInfFile___1_s__IN_n
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection
push 5
call fcn.00423f75
push 0xba9
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0045976f
add esp, 0x1c
jmp 0x4279d4
cmp dword [ebp - 0x444], 8
lea ecx, [ebp - 0x458]
cmovae ecx, dword [ebp - 0x458]
push ecx
push 2
lea eax, [ebp - 0x478]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
push ebx
push esi
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [ebx - 2]
cmp ecx, eax
jne 0x427ace
push esi
call fcn.00459786
mov dword [esp], 0xbb4
add ebx, 0x100
push str...CommonDeviceInf.cpp
push ebx
call fcn.0045976f
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x42795c
cmp word [ebp - 0x21c], 0
je 0x427a1e
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_s___n
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection
push 5
call fcn.00423f75
add esp, 0x10
lea eax, [ebp - 0x21c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x427bda
push esi
lea ecx, [ebp - 0x474]
call fcn.0046d791
push esi
call fcn.00459786
pop ecx
xor eax, eax
lea ecx, [ebp - 0x474]
mov ebx, eax
call fcn.0046c815
test eax, eax
je 0x427ba3
lea ecx, [ebp - 0x490]
call fcn.0046c48f
push 0x2c
push ebx
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 3
call fcn.0046caa8
push eax
lea ecx, [ebp - 0x490]
call fcn.0046d9ee
push 0x20
lea ecx, [ebp - 0x490]
call fcn.0046e2e7
test edi, edi
je 0x427ae2
push 0x5c
push edi
call fcn.0058b1ea
mov esi, eax
xor eax, eax
pop ecx
pop ecx
cmp word [edi], ax
je 0x427aa4
push edi
call fcn.00588144
pop ecx
push eax
push edi
lea ecx, [ebp - 0x440]
call fcn.00403cef
test esi, esi
je 0x427af5
xor eax, eax
cmp word [esi + 2], ax
je 0x427af5
push 0x5c
push 1
lea ecx, [ebp - 0x440]
call fcn.0041ec8e
jmp 0x427af5
test eax, eax
jne 0x4279da
push esi
call fcn.00459786
pop ecx
jmp 0x427bda
xor eax, eax
push eax
push 0x5bef10
lea ecx, [ebp - 0x440]
call fcn.00403cef
xor esi, esi
push esi
lea ecx, [ebp - 0x490]
call fcn.0046caa8
mov esi, eax
xor eax, eax
cmp word [esi], ax
je 0x427b13
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x440]
call fcn.00403b92
cmp dword [ebp - 0x42c], 8
mov eax, dword [ebp - 0x430]
lea ecx, [ebp - 0x440]
cmovae ecx, dword [ebp - 0x440]
push fcn.00589557
lea eax, [ecx + eax*2]
lea edx, [ebp - 0x440]
cmovae edx, dword [ebp - 0x440]
push edx
push eax
lea ecx, [ebp - 0x440]
cmovae ecx, dword [ebp - 0x440]
push ecx
lea eax, [ebp - 0x45c]
push eax
call fcn.00405b31
mov ecx, dword [ebp - 0x460]
add esp, 0x14
lea eax, [ebp - 0x440]
push eax
call fcn.0041fe09
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 2
call fcn.0046c546
lea ecx, [ebp - 0x474]
inc ebx
call fcn.0046c815
cmp ebx, eax
jb 0x427a50
push 0x5c69c4
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection
push 5
call fcn.00423f75
xor esi, esi
add esp, 0xc
inc esi
xor ebx, ebx
jmp 0x427bf2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pSection_is_invalid._n
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection
push 5
call fcn.00423f75
add esp, 0xc
push 0x5c69c4
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection
push 5
call fcn.00423f75
add esp, 0xc
xor ebx, ebx
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x458]
call fcn.00403a7f
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], bl
call fcn.0046c4a1
push ebx
push 1
lea ecx, [ebp - 0x440]
call fcn.00403a7f
mov eax, esi
call fcn.00588a9a
ret 0x10