Function at 0x42a5e4
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, 0x5b02d8
call fcn.0058f792
mov edi, ecx
mov dword [ebp - 0x4f0], edi
lea ecx, [ebp - 0x508]
mov dword [ebp - 0x4f4], 0x100
call fcn.0046d53c
push 7
xor ebx, ebx
xor eax, eax
pop ecx
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 0x42a676
push 0x3e9
jmp 0x42a693
lea esi, [edi + 0x1c]
cmp dword [esi + 0x14], 8
jb 0x42a683
mov eax, dword [esi]
jmp 0x42a685
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42a69e
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42a8e4
lea ebx, [edi + 4]
push dword [ebx + 4]
mov ecx, ebx
push dword [ebx]
call fcn.0041f5d8
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea ebx, [edi + 0x10]
push dword [ebx + 4]
mov ecx, ebx
push dword [ebx]
call fcn.0041f5d8
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea ebx, [edi + 0x328]
push dword [ebx + 4]
mov ecx, ebx
push dword [ebx]
call fcn.0041f5d8
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x42a6f3
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00404b26
mov ebx, 0x20a
lea eax, [ebp - 0x428]
push ebx
push 0
push eax
call fcn.0058e700
push ebx
xor ebx, ebx
lea eax, [ebp - 0x21c]
push ebx
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 0x42a7bc
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x5ca1f8
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42a7bc
cmp dword [esi + 0x14], 8
jb 0x42a75a
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 0x42a7bc
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 0x42a79c
mov eax, ebx
jmp 0x42a7a9
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.CManufacturers::GetList
push 5
call fcn.00424dad
push 0x917
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0045a88d
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x42a89c
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 0x42a853
mov eax, dword [ebx]
jmp 0x42a855
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 0x42a894
push esi
call fcn.0045a8a4
add edi, 0x100
mov dword [esp], 0x922
push str...CommonDeviceInf.cpp
lea eax, [edi + edi]
push eax
call fcn.0045a88d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42a80c
mov edi, dword [ebp - 0x4f0]
xor ebx, ebx
cmp word [ebp - 0x21c], 0
je 0x42a8e0
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_s___n
push str.CManufacturers::GetList
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 esi, esi
jne 0x42a8eb
mov esi, ebx
jmp 0x42ab69
push esi
lea ecx, [ebp - 0x508]
call fcn.0046e8e1
push esi
call fcn.0045a8a4
pop ecx
lea ecx, [ebp - 0x508]
mov esi, ebx
call fcn.0046d95f
test eax, eax
je 0x42ab66
lea ecx, [ebp - 0x4ec]
call fcn.0046d5a4
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 5
call fcn.0046d5d4
push esi
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 6
call fcn.0046dc88
inc eax
lea ecx, [ebp - 0x508]
push eax
push esi
call fcn.0046dbf8
push eax
lea ecx, [ebp - 0x4ec]
call fcn.0046e960
lea ecx, [ebp - 0x4ec]
cmp dword [edi + 0x64], ebx
jne 0x42a991
call fcn.0046dd08
mov ebx, eax
xor eax, eax
cmp word [ebx], ax
je 0x42a977
push ebx
call fcn.0058edd4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x458]
call fcn.00404be0
lea ecx, [ebp - 0x4ec]
call fcn.0046e7e6
jmp 0x42a9d0
call fcn.0046dd08
mov ecx, dword [edi + 0x64]
push eax
call fcn.0046ed66
mov ebx, eax
xor eax, eax
cmp word [ebx], ax
je 0x42a9af
push ebx
call fcn.0058edd4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x458]
call fcn.00404be0
lea ecx, [ebp - 0x4ec]
call fcn.0046e7e6
mov ecx, dword [edi + 0x64]
push eax
call fcn.0046ed66
mov ebx, eax
xor eax, eax
cmp word [ebx], ax
je 0x42a9e0
push ebx
call fcn.0058edd4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x470]
call fcn.00404be0
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
cmp word [eax], 0x3b
lea eax, [ebp - 0x458]
jne 0x42aa55
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.00424dad
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x524]
call fcn.0046d690
lea ecx, [ebp - 0x4ec]
mov byte [ebp - 4], 4
call fcn.0046d661
xor ebx, ebx
jmp 0x42ab52
push 0xffffffffffffffff
xor ebx, ebx
lea ecx, [ebp - 0x4a0]
push ebx
push eax
call fcn.00404b26
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
lea ecx, [ebp - 0x488]
cmovae eax, dword [ebp - 0x458]
push eax
call fcn.00401c0c
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 4]
call fcn.00420bd6
push ebx
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 6
call fcn.00404970
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
lea ecx, [ebp - 0x488]
cmovae eax, dword [ebp - 0x470]
push eax
call fcn.00401c0c
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 8
push eax
lea ecx, [edi + 0x10]
call fcn.00420bd6
push ebx
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 6
call fcn.00404970
cmp dword [ebp - 0x48c], 8
lea eax, [ebp - 0x4a0]
lea ecx, [ebp - 0x488]
cmovae eax, dword [ebp - 0x4a0]
push eax
call fcn.00401c0c
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 9
push eax
lea ecx, [edi + 0x328]
call fcn.00420bd6
push ebx
push 1
lea ecx, [ebp - 0x488]
call fcn.00404970
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 5
call fcn.0046d690
lea ecx, [ebp - 0x4ec]
mov byte [ebp - 4], 4
call fcn.0046d661
lea ecx, [ebp - 0x508]
inc esi
call fcn.0046d95f
cmp esi, eax
jb 0x42a913
xor esi, esi
inc esi
push ebx
push 1
lea ecx, [ebp - 0x440]
call fcn.00404970
push ebx
push 1
lea ecx, [ebp - 0x4a0]
call fcn.00404970
push ebx
push 1
lea ecx, [ebp - 0x470]
call fcn.00404970
push ebx
push 1
lea ecx, [ebp - 0x458]
call fcn.00404970
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.0046d5eb
mov eax, esi
call fcn.0058f741
ret