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

Disassembly:
push 0x534
mov eax, 0x5a8f3f
call fcn.00588aeb
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, 0x100
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x53c]
call fcn.0046c3f7
and dword [ebp - 0x518], edi
and dword [ebp - 0x514], edi
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 1
call fcn.0041e433
mov dword [ebp - 0x518], eax
and dword [ebp - 0x430], edi
xor eax, eax
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
push 0x5c69a8
push str.CPrinterDriverInf::AllocAndGetValue
push 5
mov byte [ebp - 4], 3
call fcn.00423f75
add esp, 0xc
test esi, esi
je 0x425aa4
cmp dword [ebp - 0x50c], edi
je 0x425aa4
push str._OK__pSection__pKey._n
mov edi, str.CPrinterDriverInf::AllocAndGetValue
push edi
push 5
call fcn.00423f75
push esi
push str.pSection___1_s_._n
push edi
push 5
call fcn.00423f75
push dword [ebp - 0x50c]
push str.pKey___1_s_._n
push edi
push 5
call fcn.00423f75
mov esi, dword [ebp - 0x508]
add esi, 0x14
lea eax, [ebp - 0x440]
add esp, 0x2c
cmp eax, esi
je 0x42555f
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00403c35
mov edi, 0x20a
push edi
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00587a70
push edi
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
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 0x42562a
lea eax, [ebp - 0x21c]
push eax
push edi
push 0x5c4108
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42562a
cmp dword [esi + 0x14], 8
jb 0x4255c6
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 0x42562a
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 0x42560a
xor eax, eax
jmp 0x425617
lea eax, [ebp - 0x21c]
push eax
call fcn.00588144
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x440]
call fcn.00403cef
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.00423f75
push 0xb02
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0045976f
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4256eb
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 0x4256eb
push edi
call fcn.00459786
add ebx, 0x100
mov dword [esp], 0xb0c
lea eax, [ebx + ebx]
push str...CommonDeviceInf.cpp
push eax
call fcn.0045976f
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x425673
push str.Get_section_items_finished._n
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push ebx
push 5
call fcn.00423f75
add esp, 0xc
cmp word [ebp - 0x21c], 0
je 0x425740
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_s___n
push ebx
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 edi, edi
je 0x425ac7
push edi
lea ecx, [ebp - 0x53c]
call fcn.0046d791
test eax, eax
jne 0x42576d
push str._NG__dnlSectionItems.Set._n
push ebx
push 5
call fcn.00423f75
add esp, 0xc
jmp 0x425ab1
push str._OK__dnlSectionItems.Set._n
push ebx
push 5
call fcn.00423f75
add esp, 0xc
lea ecx, [ebp - 0x53c]
xor esi, esi
call fcn.0046c815
test eax, eax
je 0x4258ab
mov ebx, dword [ebp - 0x508]
lea ecx, [ebp - 0x504]
call fcn.0046c45f
push esi
lea ecx, [ebp - 0x53c]
mov byte [ebp - 4], 4
call fcn.0046cb38
inc eax
push eax
push esi
lea ecx, [ebp - 0x53c]
call fcn.0046caa8
push eax
lea ecx, [ebp - 0x504]
call fcn.0046d810
lea ecx, [ebp - 0x504]
call fcn.0046cbb8
push eax
lea ecx, [ebx + 0x34]
call fcn.0046dbb9
push eax
lea ecx, [ebp - 0x458]
call fcn.004010bc
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 5
call fcn.0046d696
push eax
lea ecx, [ebx + 0x34]
call fcn.0046dbb9
push eax
lea ecx, [ebp - 0x488]
call fcn.004010bc
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 6
call fcn.00401069
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 7
call fcn.00401069
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 8
call fcn.00405a09
lea ecx, [ebp - 0x4b8]
call fcn.0040723e
push 0
push 1
lea ecx, [ebp - 0x488]
call fcn.00403a7f
push 0
push 1
lea ecx, [ebp - 0x458]
call fcn.00403a7f
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 3
call fcn.0046c517
lea ecx, [ebp - 0x53c]
inc esi
call fcn.0046c815
cmp esi, eax
jb 0x425798
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push str._OK__prepare_mapSectionItems._n
push ebx
push 5
call fcn.00423f75
add esp, 0xc
lea ecx, [ebp - 0x458]
push dword [ebp - 0x50c]
call fcn.004010bc
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp - 0x518]
call fcn.0041fa16
mov esi, dword [eax]
push 0
push 1
lea ecx, [ebp - 0x458]
call fcn.00403a7f
cmp esi, dword [ebp - 0x518]
jne 0x4259a2
push str.pKey_is_not_found_on_the_section._n
push ebx
push 5
call fcn.00423f75
mov esi, dword [ebp - 0x520]
add esp, 0xc
test esi, esi
jne 0x42592a
push edi
call fcn.00459786
pop ecx
xor edi, edi
jmp 0x425ab1
push dword [ebp - 0x510]
push esi
call fcn.0058b10d
push 0xb32
lea eax, [eax*2 + 2]
push str...CommonDeviceInf.cpp
push eax
call fcn.0045976f
push str.return_buffer_allocated._n
push str.CPrinterDriverInf::AllocAndGetValue
push 5
mov ebx, eax
call fcn.00423f75
add esp, 0x20
test ebx, ebx
jne 0x425979
push str.Memory_allocation_error.__pBufferReplaced__n
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push ebx
push 2
jmp 0x425760
push dword [ebp - 0x510]
push esi
call fcn.0058b10d
push esi
inc eax
push eax
push ebx
call fcn.0058b0b1
push dword [ebp - 0x510]
push esi
call fcn.0058b10d
add esp, 0x1c
jmp 0x425a71
push str.pKey_has_been_found_on_the_section._n
push ebx
push 5
call fcn.00423f75
lea eax, [esi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4259bd
mov eax, dword [eax]
push eax
push str.iter__second.data______1_s__._n
push ebx
push 5
call fcn.00423f75
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x28]
add esp, 0x10
cmp dword [ecx + 0x14], 8
jb 0x4259dc
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4259e4
xor eax, eax
jmp 0x4259ee
inc eax
push eax
push ecx
call fcn.0058b10d
pop ecx
pop ecx
push 0xb3e
lea eax, [eax*2 + 2]
push str...CommonDeviceInf.cpp
push eax
call fcn.0045976f
push str.return_buffer_allocated._n
push str.CPrinterDriverInf::AllocAndGetValue
push 5
mov ebx, eax
call fcn.00423f75
add esp, 0x18
test ebx, ebx
je 0x425967
lea eax, [esi + 0x28]
mov dword [ebp - 0x508], eax
cmp dword [eax + 0x14], 8
jb 0x425a3a
mov eax, dword [eax]
mov dword [ebp - 0x508], eax
mov edx, dword [esi + 0x38]
lea ecx, [esi + 0x28]
cmp dword [ecx + 0x14], 8
jb 0x425a48
mov ecx, dword [ecx]
test ecx, ecx
je 0x425a60
lea eax, [edx + 1]
push eax
push ecx
call fcn.0058b10d
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x508]
push eax
lea eax, [ecx + 1]
push eax
push ebx
call fcn.0058b0b1
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.00423f75
push edi
call fcn.00459786
push 0x5c69c4
push esi
push 5
call fcn.00423f75
add esp, 0x1c
jmp 0x425ac9
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push 0x5c69c4
push ebx
push 5
call fcn.00423f75
push edi
call fcn.00459786
add esp, 0x10
xor ebx, ebx
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.00403a7f
lea ecx, [ebp - 0x518]
call fcn.00406b5f
lea ecx, [ebp - 0x53c]
mov byte [ebp - 4], 0
call fcn.0046c4a1
push 0
push 1
lea ecx, [ebp - 0x470]
call fcn.00403a7f
mov eax, ebx
call fcn.00588a9a
ret 0x14