Function at 0x4297d5
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes
Read .ini file
Set file attributes

Disassembly:
push 0x518
mov eax, 0x5a9308
call fcn.00588aeb
mov edi, ecx
mov dword [ebp - 0x4f0], edi
lea ecx, [ebp - 0x508]
mov dword [ebp - 0x4f4], 0x100
call fcn.0046c3f7
push 7
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], ax
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x460], ebx
mov word [ebp - 0x470], ax
mov dword [ebp - 0x48c], ecx
mov dword [ebp - 0x490], ebx
mov word [ebp - 0x4a0], ax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], ax
mov byte [ebp - 4], 4
cmp dword [edi + 0x68], ebx
jne 0x429867
push 0x3e9
jmp 0x429884
lea esi, [edi + 0x1c]
cmp dword [esi + 0x14], 8
jb 0x429874
mov eax, dword [esi]
jmp 0x429876
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42988f
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x429ad5
lea ebx, [edi + 4]
mov ecx, ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.0041e660
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea ebx, [edi + 0x10]
mov ecx, ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.0041e660
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea ebx, [edi + 0x328]
mov ecx, ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.0041e660
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x4298e4
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00403c35
mov ebx, 0x20a
push ebx
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00587a70
push ebx
xor ebx, ebx
lea eax, [ebp - 0x21c]
push ebx
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 0x4299ad
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x5c4108
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4299ad
cmp dword [esi + 0x14], 8
jb 0x42994b
mov esi, dword [esi]
push ebx
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4299ad
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push ebx
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], bx
jne 0x42998d
mov eax, ebx
jmp 0x42999a
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.CManufacturers::GetList
push 5
call fcn.00423f75
push 0x917
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0045976f
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x429a8d
lea ebx, [edi + 0x4c]
mov edi, dword [ebp - 0x4f4]
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push 2
lea eax, [ebp - 0x50c]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x440]
cmovae ecx, dword [ebp - 0x440]
cmp dword [ebx + 0x14], 8
jb 0x429a44
mov eax, dword [ebx]
jmp 0x429a46
mov eax, ebx
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [edi - 2]
cmp ecx, eax
jne 0x429a85
push esi
call fcn.00459786
add edi, 0x100
mov dword [esp], 0x922
lea eax, [edi + edi]
push str...CommonDeviceInf.cpp
push eax
call fcn.0045976f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4299fd
mov edi, dword [ebp - 0x4f0]
xor ebx, ebx
cmp word [ebp - 0x21c], 0
je 0x429ad1
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_s___n
push str.CManufacturers::GetList
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
jne 0x429adc
mov esi, ebx
jmp 0x429d5a
push esi
lea ecx, [ebp - 0x508]
call fcn.0046d791
push esi
call fcn.00459786
pop ecx
lea ecx, [ebp - 0x508]
mov esi, ebx
call fcn.0046c815
test eax, eax
je 0x429d57
lea ecx, [ebp - 0x4ec]
call fcn.0046c45f
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 5
call fcn.0046c48f
push esi
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 6
call fcn.0046cb38
inc eax
push eax
push esi
lea ecx, [ebp - 0x508]
call fcn.0046caa8
push eax
lea ecx, [ebp - 0x4ec]
call fcn.0046d810
lea ecx, [ebp - 0x4ec]
cmp dword [edi + 0x64], ebx
jne 0x429b82
call fcn.0046cbb8
mov ebx, eax
xor eax, eax
cmp word [ebx], ax
je 0x429b68
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x458]
call fcn.00403cef
lea ecx, [ebp - 0x4ec]
call fcn.0046d696
jmp 0x429bc1
call fcn.0046cbb8
mov ecx, dword [edi + 0x64]
push eax
call fcn.0046dbb9
mov ebx, eax
xor eax, eax
cmp word [ebx], ax
je 0x429ba0
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x458]
call fcn.00403cef
lea ecx, [ebp - 0x4ec]
call fcn.0046d696
mov ecx, dword [edi + 0x64]
push eax
call fcn.0046dbb9
mov ebx, eax
xor eax, eax
cmp word [ebx], ax
je 0x429bd1
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x470]
call fcn.00403cef
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
cmp word [eax], 0x3b
lea eax, [ebp - 0x458]
jne 0x429c46
cmp dword [ebp - 0x444], 8
cmovae eax, dword [ebp - 0x458]
push eax
push str.strKey.data_____1_s__skipped._n
push str.CManufacturers::GetList
push 5
call fcn.00423f75
add esp, 0x10
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 5
call fcn.0046c546
lea ecx, [ebp - 0x4ec]
mov byte [ebp - 4], 4
call fcn.0046c517
xor ebx, ebx
jmp 0x429d43
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00403c35
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
lea ecx, [ebp - 0x488]
call fcn.004010bc
lea eax, [ebp - 0x488]
push eax
lea ecx, [edi + 4]
mov byte [ebp - 4], 7
call fcn.0041fd9c
push ebx
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 6
call fcn.00403a7f
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
cmovae eax, dword [ebp - 0x470]
push eax
lea ecx, [ebp - 0x488]
call fcn.004010bc
lea eax, [ebp - 0x488]
push eax
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 8
call fcn.0041fd9c
push ebx
push 1
lea ecx, [ebp - 0x488]
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 - 0x488]
call fcn.004010bc
lea eax, [ebp - 0x488]
push eax
lea ecx, [edi + 0x328]
mov byte [ebp - 4], 9
call fcn.0041fd9c
push ebx
push 1
lea ecx, [ebp - 0x488]
call fcn.00403a7f
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 5
call fcn.0046c546
lea ecx, [ebp - 0x4ec]
mov byte [ebp - 4], 4
call fcn.0046c517
lea ecx, [ebp - 0x508]
inc esi
call fcn.0046c815
cmp esi, eax
jb 0x429b04
xor esi, esi
inc esi
push ebx
push 1
lea ecx, [ebp - 0x440]
call fcn.00403a7f
push ebx
push 1
lea ecx, [ebp - 0x4a0]
call fcn.00403a7f
push ebx
push 1
lea ecx, [ebp - 0x470]
call fcn.00403a7f
push ebx
push 1
lea ecx, [ebp - 0x458]
call fcn.00403a7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.0046c4a1
mov eax, esi
call fcn.00588a9a
ret