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

Disassembly:
push 0x500
mov eax, 0x5a9213
call fcn.00588aeb
mov ebx, ecx
mov dword [ebp - 0x4f0], ebx
lea ecx, [ebp - 0x504]
mov dword [ebp - 0x508], 0x100
call fcn.0046c3f7
push 7
xor edi, edi
pop ecx
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x474], ecx
mov dword [ebp - 0x478], edi
mov word [ebp - 0x488], ax
mov dword [ebp - 0x48c], ecx
mov dword [ebp - 0x490], edi
mov word [ebp - 0x4a0], ax
mov byte [ebp - 4], 2
cmp dword [ebx + 0x68], edi
jne 0x428ec5
push 0x3e9
jmp 0x428ee1
lea esi, [ebx + 0x34]
cmp dword [esi + 0x14], 8
jb 0x428ed2
mov eax, dword [esi]
jmp 0x428ed4
mov eax, esi
push eax
call fcn.00435877
pop ecx
test eax, eax
jne 0x428eec
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4291b0
lea edi, [ebx + 4]
mov ecx, edi
push dword [edi + 4]
push dword [edi]
call fcn.0041e660
mov eax, dword [edi]
mov dword [edi + 4], eax
lea edi, [ebx + 0x10]
mov ecx, edi
push dword [edi + 4]
push dword [edi]
call fcn.0041e660
mov eax, dword [edi]
mov dword [edi + 4], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], edi
mov word [ebp - 0x440], ax
lea eax, [ebx + 0x4c]
push eax
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 3
call fcn.00401069
xor eax, eax
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], edi
mov word [ebp - 0x458], ax
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 5
cmp eax, esi
je 0x428f74
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.00403c35
mov esi, 0x20a
push esi
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.00587a70
push esi
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 0x429047
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 0x429047
cmp dword [ebp - 0x42c], 8
push edi
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x429047
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push edi
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 0x429027
mov eax, edi
jmp 0x429034
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_lS__IN_n
mov esi, str.CDeviceInfSection::GetList
push esi
push 5
call fcn.00423f75
push 0x832
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0045976f
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x429132
mov esi, dword [ebp - 0x508]
xor ebx, ebx
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push 2
lea eax, [ebp - 0x50c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x440]
cmovae ecx, dword [ebp - 0x440]
cmp dword [ebp - 0x45c], 8
push ecx
push esi
lea eax, [ebp - 0x470]
cmovae eax, dword [ebp - 0x470]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ecx, eax
lea eax, [esi - 2]
cmp eax, ecx
jne 0x429127
push edi
call fcn.00459786
add esi, 0x100
mov dword [esp], 0x83d
lea eax, [esi + esi]
push str...CommonDeviceInf.cpp
push eax
call fcn.0045976f
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x429097
mov ebx, dword [ebp - 0x4f0]
mov esi, str.CDeviceInfSection::GetList
cmp word [ebp - 0x21c], 0
je 0x429172
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_lS___n
push esi
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]
push str.pItems_successfully_gotten._n
push esi
push 5
call fcn.00423f75
add esp, 0xc
test edi, edi
jne 0x4291b7
push edi
push 1
lea ecx, [ebp - 0x458]
call fcn.00403a7f
push edi
push 1
lea ecx, [ebp - 0x470]
call fcn.00403a7f
push edi
push 1
lea ecx, [ebp - 0x440]
call fcn.00403a7f
mov esi, edi
jmp 0x429452
lea ecx, [ebp - 0x504]
call fcn.0046c7a4
xor eax, eax
mov esi, edi
cmp word [edi], ax
je 0x429254
xor ebx, ebx
cmp word [esi], bx
jne 0x4291da
mov eax, ebx
jmp 0x4291e1
push esi
call fcn.00588144
pop ecx
push eax
push esi
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.strItem____1_s___n
push str.CDeviceInfSection::GetList
push 5
call fcn.00423f75
add esp, 0x10
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
lea ecx, [ebp - 0x504]
call fcn.0046c58f
push ebx
push esi
call fcn.0058afc5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42924e
add esi, 2
cmp word [esi], bx
jne 0x4291da
mov ebx, dword [ebp - 0x4f0]
push edi
call fcn.00459786
pop ecx
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x458]
call fcn.00403a7f
push edi
push 1
lea ecx, [ebp - 0x470]
call fcn.00403a7f
push edi
push 1
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 2
call fcn.00403a7f
lea ecx, [ebp - 0x4ec]
call fcn.0046c45f
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 6
mov esi, edi
call fcn.0046c815
test eax, eax
je 0x429440
lea ecx, [ebp - 0x4ec]
call fcn.0046c7e8
push esi
lea ecx, [ebp - 0x504]
call fcn.0046cb38
inc eax
push eax
push esi
lea ecx, [ebp - 0x504]
call fcn.0046caa8
push eax
mov ecx, ebx
call sym.SETUP.exe_protected:_int___thiscall_CDeviceInfSection::IsComment_wchar_t_const___unsigned_int_
test eax, eax
jne 0x42942c
push esi
lea ecx, [ebp - 0x504]
call fcn.0046cb38
inc eax
push eax
push esi
lea ecx, [ebp - 0x504]
call fcn.0046caa8
push eax
lea ecx, [ebp - 0x4ec]
call fcn.0046d810
lea ecx, [ebp - 0x4ec]
cmp dword [ebx + 0x64], edi
jne 0x429344
call fcn.0046cbb8
mov edi, eax
xor eax, eax
cmp word [edi], ax
je 0x42932a
push edi
call fcn.00588144
pop ecx
push eax
push edi
lea ecx, [ebp - 0x488]
call fcn.00403cef
lea ecx, [ebp - 0x4ec]
call fcn.0046d696
jmp 0x429383
call fcn.0046cbb8
mov ecx, dword [ebx + 0x64]
push eax
call fcn.0046dbb9
mov edi, eax
xor eax, eax
cmp word [edi], ax
je 0x429362
push edi
call fcn.00588144
pop ecx
push eax
push edi
lea ecx, [ebp - 0x488]
call fcn.00403cef
lea ecx, [ebp - 0x4ec]
call fcn.0046d696
mov ecx, dword [ebx + 0x64]
push eax
call fcn.0046dbb9
mov edi, eax
xor eax, eax
cmp word [edi], ax
je 0x429393
push edi
call fcn.00588144
pop ecx
push eax
push edi
lea ecx, [ebp - 0x4a0]
call fcn.00403cef
cmp dword [ebp - 0x474], 8
lea eax, [ebp - 0x488]
cmovae eax, dword [ebp - 0x488]
push eax
lea ecx, [ebp - 0x470]
call fcn.004010bc
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebx + 4]
mov byte [ebp - 4], 7
call fcn.0041fd9c
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 6
call fcn.00403a7f
cmp dword [ebp - 0x48c], 8
lea eax, [ebp - 0x4a0]
cmovae eax, dword [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x470]
call fcn.004010bc
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebx + 0x10]
mov byte [ebp - 4], 8
call fcn.0041fd9c
push edi
push 1
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 6
call fcn.00403a7f
lea ecx, [ebp - 0x504]
inc esi
call fcn.0046c815
cmp esi, eax
jb 0x4292af
xor esi, esi
lea ecx, [ebp - 0x4ec]
inc esi
mov byte [ebp - 4], 2
call fcn.0046c517
push edi
push 1
lea ecx, [ebp - 0x4a0]
call fcn.00403a7f
push edi
push 1
lea ecx, [ebp - 0x488]
call fcn.00403a7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x504]
call fcn.0046c4a1
mov eax, esi
call fcn.00588a9a
ret