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

Disassembly:
push 0x534
mov eax, 0x5afeda
call fcn.0058f792
mov dword [ebp - 0x508], ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
mov ebx, 0x100
and dword [ebp - 0x460], edi
mov dword [ebp - 0x514], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x528], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x518], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x51c], eax
xor eax, eax
mov dword [ebp - 0x520], esi
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x53c]
call fcn.0046d53c
and dword [ebp - 0x510], edi
lea ecx, [ebp - 0x510]
and dword [ebp - 0x50c], edi
mov byte [ebp - 4], 1
call fcn.0041f3fd
mov dword [ebp - 0x510], eax
and dword [ebp - 0x430], edi
xor eax, eax
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
push 0x5cca70
push str.CPrinterDriverInf::AllocAndGetValue
push 5
mov byte [ebp - 4], 3
call fcn.00424dad
add esp, 0xc
test esi, esi
je 0x426882
cmp dword [ebp - 0x514], edi
je 0x426882
push str._OK__pSection__pKey._n
mov edi, str.CPrinterDriverInf::AllocAndGetValue
push edi
push 5
call fcn.00424dad
push esi
push str.pSection___1_s_._n
push edi
push 5
call fcn.00424dad
push dword [ebp - 0x514]
push str.pKey___1_s_._n
push edi
push 5
call fcn.00424dad
mov esi, dword [ebp - 0x508]
lea eax, [ebp - 0x440]
add esi, 0x14
add esp, 0x2c
cmp eax, esi
je 0x42632b
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00404b26
mov edi, 0x20a
lea eax, [ebp - 0x428]
push edi
push 0
push eax
call fcn.0058e700
push edi
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0058e700
add esp, 0x18
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4263f6
lea eax, [ebp - 0x21c]
push eax
push edi
push 0x5ca1f8
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4263f6
cmp dword [esi + 0x14], 8
jb 0x426392
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 0x4263f6
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 0x4263d6
xor eax, eax
jmp 0x4263e3
lea eax, [ebp - 0x21c]
push eax
call fcn.0058edd4
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x440]
call fcn.00404be0
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.00424dad
push 0xb02
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0045a88d
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4264b7
mov esi, dword [ebp - 0x520]
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 0x4264b7
push edi
call fcn.0045a8a4
add ebx, 0x100
mov dword [esp], 0xb0c
push str...CommonDeviceInf.cpp
lea eax, [ebx + ebx]
push eax
call fcn.0045a88d
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42643f
push str.Get_section_items_finished._n
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push ebx
push 5
call fcn.00424dad
add esp, 0xc
cmp word [ebp - 0x21c], 0
je 0x42650c
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_s___n
push ebx
push 5
call fcn.00424dad
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 0x4268a5
push edi
lea ecx, [ebp - 0x53c]
call fcn.0046e8e1
test eax, eax
jne 0x426539
push str._NG__dnlSectionItems.Set._n
push ebx
push 5
call fcn.00424dad
add esp, 0xc
jmp 0x42688f
push str._OK__dnlSectionItems.Set._n
push ebx
push 5
call fcn.00424dad
add esp, 0xc
lea ecx, [ebp - 0x53c]
xor esi, esi
call fcn.0046d95f
test eax, eax
je 0x426689
mov ebx, dword [ebp - 0x508]
lea ecx, [ebp - 0x504]
call fcn.0046d5a4
push esi
lea ecx, [ebp - 0x53c]
mov byte [ebp - 4], 4
call fcn.0046dc88
inc eax
lea ecx, [ebp - 0x53c]
push eax
push esi
call fcn.0046dbf8
push eax
lea ecx, [ebp - 0x504]
call fcn.0046e960
lea ecx, [ebp - 0x504]
call fcn.0046dd08
push eax
lea ecx, [ebx + 0x34]
call fcn.0046ed66
push eax
lea ecx, [ebp - 0x458]
call fcn.00401c0c
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 5
call fcn.0046e7e6
push eax
lea ecx, [ebx + 0x34]
call fcn.0046ed66
push eax
lea ecx, [ebp - 0x488]
call fcn.00401c0c
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00401bb9
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00401bb9
lea eax, [ebp - 0x4b8]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x510]
call fcn.0040569b
push eax
add eax, 0x10
lea ecx, [ebp - 0x510]
push eax
push 0
lea eax, [ebp - 0x524]
push eax
call fcn.004061f9
lea ecx, [ebp - 0x4b8]
call fcn.00407af3
push 0
push 1
lea ecx, [ebp - 0x488]
call fcn.00404970
push 0
push 1
lea ecx, [ebp - 0x458]
call fcn.00404970
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 3
call fcn.0046d661
lea ecx, [ebp - 0x53c]
inc esi
call fcn.0046d95f
cmp esi, eax
jb 0x426564
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push str._OK__prepare_mapSectionItems._n
push ebx
push 5
call fcn.00424dad
add esp, 0xc
lea ecx, [ebp - 0x458]
push dword [ebp - 0x514]
call fcn.00401c0c
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x510]
call fcn.0042e43d
push 0
push 1
lea ecx, [ebp - 0x458]
mov esi, dword [eax]
call fcn.00404970
cmp esi, dword [ebp - 0x510]
jne 0x426780
push str.pKey_is_not_found_on_the_section._n
push ebx
push 5
call fcn.00424dad
mov esi, dword [ebp - 0x528]
add esp, 0xc
test esi, esi
jne 0x426708
push edi
call fcn.0045a8a4
pop ecx
xor edi, edi
jmp 0x42688f
push dword [ebp - 0x518]
push esi
call fcn.00591dbe
push 0xb32
push str...CommonDeviceInf.cpp
lea eax, [eax*2 + 2]
push eax
call fcn.0045a88d
push str.return_buffer_allocated._n
push str.CPrinterDriverInf::AllocAndGetValue
push 5
mov ebx, eax
call fcn.00424dad
add esp, 0x20
test ebx, ebx
jne 0x426757
push str.Memory_allocation_error.__pBufferReplaced__n
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push ebx
push 2
jmp 0x42652c
push dword [ebp - 0x518]
push esi
call fcn.00591dbe
push esi
inc eax
push eax
push ebx
call fcn.00591d62
push dword [ebp - 0x518]
push esi
call fcn.00591dbe
add esp, 0x1c
jmp 0x42684f
push str.pKey_has_been_found_on_the_section._n
push ebx
push 5
call fcn.00424dad
lea eax, [esi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x42679b
mov eax, dword [eax]
push eax
push str.iter__second.data______1_s__._n
push ebx
push 5
call fcn.00424dad
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x28]
add esp, 0x10
cmp dword [ecx + 0x14], 8
jb 0x4267ba
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4267c2
xor eax, eax
jmp 0x4267cc
inc eax
push eax
push ecx
call fcn.00591dbe
pop ecx
pop ecx
push 0xb3e
lea eax, [eax*2 + 2]
push str...CommonDeviceInf.cpp
push eax
call fcn.0045a88d
push str.return_buffer_allocated._n
push str.CPrinterDriverInf::AllocAndGetValue
push 5
mov ebx, eax
call fcn.00424dad
add esp, 0x18
test ebx, ebx
je 0x426745
lea eax, [esi + 0x28]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x508], eax
jb 0x426818
mov eax, dword [eax]
mov dword [ebp - 0x508], eax
mov edx, dword [esi + 0x38]
lea ecx, [esi + 0x28]
cmp dword [ecx + 0x14], 8
jb 0x426826
mov ecx, dword [ecx]
test ecx, ecx
je 0x42683e
lea eax, [edx + 1]
push eax
push ecx
call fcn.00591dbe
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x508]
push eax
lea eax, [ecx + 1]
push eax
push ebx
call fcn.00591d62
mov eax, dword [esi + 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x51c]
mov esi, str.CPrinterDriverInf::AllocAndGetValue
push str.buffer_copied._n
inc eax
push esi
push 5
mov dword [ecx], eax
call fcn.00424dad
push edi
call fcn.0045a8a4
push 0x5cca8c
push esi
push 5
call fcn.00424dad
add esp, 0x1c
jmp 0x4268a7
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, str.CPrinterDriverInf::AllocAndGetValue
push 0x5cca8c
push ebx
push 5
call fcn.00424dad
push edi
call fcn.0045a8a4
add esp, 0x10
xor ebx, ebx
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.00404970
lea ecx, [ebp - 0x510]
call fcn.00407a25
lea ecx, [ebp - 0x53c]
mov byte [ebp - 4], 0
call fcn.0046d5eb
push 0
push 1
lea ecx, [ebp - 0x470]
call fcn.00404970
mov eax, ebx
call fcn.0058f741
ret 0x14