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

Disassembly:
push 0x534
mov eax, 0x44ae8f
call fcn.004386f7
mov dword [ebp - 0x508], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x520], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x510], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x51c], eax
xor edi, edi
and dword [ebp - 0x460], edi
xor eax, eax
mov dword [ebp - 0x524], esi
mov ebx, pe_nt_image_headers32
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x53c]
call fcn.00430f14
and dword [ebp - 0x518], edi
and dword [ebp - 0x514], edi
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 1
call fcn.00405061
mov dword [ebp - 0x518], eax
and dword [ebp - 0x430], edi
xor eax, eax
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
push 0x45434c
push str.CPrinterDriverInf::AllocAndGetValue
push 5
mov byte [ebp - 4], 3
call fcn.00405a24
add esp, 0xc
test esi, esi
je 0x42207a
cmp dword [ebp - 0x50c], edi
je 0x42207a
push str._OK__pSection__pKey._n
mov edi, str.CPrinterDriverInf::AllocAndGetValue
push edi
push 5
call fcn.00405a24
push esi
push str.pSection___1_s_._n
push edi
push 5
call fcn.00405a24
push dword [ebp - 0x50c]
push str.pKey___1_s_._n
push edi
push 5
call fcn.00405a24
mov esi, dword [ebp - 0x508]
add esi, 0x14
lea eax, [ebp - 0x440]
add esp, 0x2c
cmp eax, esi
je 0x421b35
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00401cf8
mov edi, 0x20a
push edi
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00438dc0
push edi
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00438dc0
add esp, 0x18
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x421c00
lea eax, [ebp - 0x21c]
push eax
push edi
push 0x454b88
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x421c00
cmp dword [esi + 0x14], 8
jb 0x421b9c
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x421c00
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], di
jne 0x421be0
xor eax, eax
jmp 0x421bed
lea eax, [ebp - 0x21c]
push eax
call fcn.0043860f
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x440]
call fcn.00401db2
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push str.strTargetInfFile___1_s__IN_n
push str.CPrinterDriverInf::AllocAndGetValue
push 5
call fcn.00405a24
push 0xb02
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0042ae50
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x421cc1
mov esi, dword [ebp - 0x524]
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push 2
lea eax, [ebp - 0x540]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [ebx - 2]
cmp ecx, eax
jne 0x421cc1
push edi
call fcn.0042afb6
add ebx, 0x100
mov dword [esp], 0xb0c
lea eax, [ebx + ebx]
push str...CommonDeviceInf.cpp
push eax
call fcn.0042ae50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x421c49
push str.Get_section_items_finished._n
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push ebx
push 5
call fcn.00405a24
add esp, 0xc
cmp word [ebp - 0x21c], 0
je 0x421d16
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_s___n
push ebx
push 5
call fcn.00405a24
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 edi, edi
je 0x42209d
push edi
lea ecx, [ebp - 0x53c]
call fcn.004322ad
test eax, eax
jne 0x421d43
push str._NG__dnlSectionItems.Set._n
push ebx
push 5
call fcn.00405a24
add esp, 0xc
jmp 0x422087
push str._OK__dnlSectionItems.Set._n
push ebx
push 5
call fcn.00405a24
add esp, 0xc
lea ecx, [ebp - 0x53c]
xor esi, esi
call fcn.00431332
test eax, eax
je 0x421e81
mov ebx, dword [ebp - 0x508]
lea ecx, [ebp - 0x504]
call fcn.00430f7c
push esi
lea ecx, [ebp - 0x53c]
mov byte [ebp - 4], 4
call fcn.00431655
inc eax
push eax
push esi
lea ecx, [ebp - 0x53c]
call fcn.004315c5
push eax
lea ecx, [ebp - 0x504]
call fcn.0043232c
lea ecx, [ebp - 0x504]
call fcn.004316d5
push eax
lea ecx, [ebx + 0x34]
call fcn.004326d5
push eax
lea ecx, [ebp - 0x458]
call fcn.00403477
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 5
call fcn.004321b2
push eax
lea ecx, [ebx + 0x34]
call fcn.004326d5
push eax
lea ecx, [ebp - 0x488]
call fcn.00403477
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 6
call fcn.00403424
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 7
call fcn.00403424
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 8
call fcn.0040c27c
lea ecx, [ebp - 0x4b8]
call fcn.0040393c
push 0
push 1
lea ecx, [ebp - 0x488]
call fcn.00401ba5
push 0
push 1
lea ecx, [ebp - 0x458]
call fcn.00401ba5
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 3
call fcn.00431034
lea ecx, [ebp - 0x53c]
inc esi
call fcn.00431332
cmp esi, eax
jb 0x421d6e
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push str._OK__prepare_mapSectionItems._n
push ebx
push 5
call fcn.00405a24
add esp, 0xc
lea ecx, [ebp - 0x458]
push dword [ebp - 0x50c]
call fcn.00403477
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp - 0x518]
call fcn.004057eb
mov esi, dword [eax]
push 0
push 1
lea ecx, [ebp - 0x458]
call fcn.00401ba5
cmp esi, dword [ebp - 0x518]
jne 0x421f78
push str.pKey_is_not_found_on_the_section._n
push ebx
push 5
call fcn.00405a24
mov esi, dword [ebp - 0x520]
add esp, 0xc
test esi, esi
jne 0x421f00
push edi
call fcn.0042afb6
pop ecx
xor edi, edi
jmp 0x422087
push dword [ebp - 0x510]
push esi
call fcn.0043965b
push 0xb32
lea eax, [eax*2 + 2]
push str...CommonDeviceInf.cpp
push eax
call fcn.0042ae50
push str.return_buffer_allocated._n
push str.CPrinterDriverInf::AllocAndGetValue
push 5
mov ebx, eax
call fcn.00405a24
add esp, 0x20
test ebx, ebx
jne 0x421f4f
push str.Memory_allocation_error.__pBufferReplaced__n
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push ebx
push 2
jmp 0x421d36
push dword [ebp - 0x510]
push esi
call fcn.0043965b
push esi
inc eax
push eax
push ebx
call fcn.00439aca
push dword [ebp - 0x510]
push esi
call fcn.0043965b
add esp, 0x1c
jmp 0x422047
push str.pKey_has_been_found_on_the_section._n
push ebx
push 5
call fcn.00405a24
lea eax, [esi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x421f93
mov eax, dword [eax]
push eax
push str.iter__second.data______1_s__._n
push ebx
push 5
call fcn.00405a24
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x28]
add esp, 0x10
cmp dword [ecx + 0x14], 8
jb 0x421fb2
mov ecx, dword [ecx]
test ecx, ecx
jne 0x421fba
xor eax, eax
jmp 0x421fc4
inc eax
push eax
push ecx
call fcn.0043965b
pop ecx
pop ecx
push 0xb3e
lea eax, [eax*2 + 2]
push str...CommonDeviceInf.cpp
push eax
call fcn.0042ae50
push str.return_buffer_allocated._n
push str.CPrinterDriverInf::AllocAndGetValue
push 5
mov ebx, eax
call fcn.00405a24
add esp, 0x18
test ebx, ebx
je 0x421f3d
lea eax, [esi + 0x28]
mov dword [ebp - 0x508], eax
cmp dword [eax + 0x14], 8
jb 0x422010
mov eax, dword [eax]
mov dword [ebp - 0x508], eax
mov edx, dword [esi + 0x38]
lea ecx, [esi + 0x28]
cmp dword [ecx + 0x14], 8
jb 0x42201e
mov ecx, dword [ecx]
test ecx, ecx
je 0x422036
lea eax, [edx + 1]
push eax
push ecx
call fcn.0043965b
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x508]
push eax
lea eax, [ecx + 1]
push eax
push ebx
call fcn.00439aca
mov eax, dword [esi + 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x51c]
push str.buffer_copied._n
mov esi, str.CPrinterDriverInf::AllocAndGetValue
inc eax
push esi
push 5
mov dword [ecx], eax
call fcn.00405a24
push edi
call fcn.0042afb6
push 0x454368
push esi
push 5
call fcn.00405a24
add esp, 0x1c
jmp 0x42209f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push 0x454368
push ebx
push 5
call fcn.00405a24
push edi
call fcn.0042afb6
add esp, 0x10
xor ebx, ebx
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.00401ba5
lea ecx, [ebp - 0x518]
call fcn.0040390e
lea ecx, [ebp - 0x53c]
mov byte [ebp - 4], 0
call fcn.00430fbe
push 0
push 1
lea ecx, [ebp - 0x470]
call fcn.00401ba5
mov eax, ebx
call fcn.004386a6
ret 0x14