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

Disassembly:
push 0x494
mov eax, 0x5b0242
call fcn.0058f792
mov edi, ecx
lea ecx, [ebp - 0x49c]
mov ebx, 0x100
call fcn.0046d53c
push 7
xor edx, edx
xor eax, eax
pop ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x460], edx
mov word [ebp - 0x470], ax
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x448], edx
mov word [ebp - 0x458], ax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], edx
mov word [ebp - 0x440], ax
mov byte [ebp - 4], 3
cmp dword [edi + 0x28], edx
jne 0x42a308
push 0x3e9
jmp 0x42a325
lea esi, [edi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x42a315
mov eax, dword [esi]
jmp 0x42a317
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42a330
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42a527
push dword [edi + 8]
lea ecx, [edi + 4]
push dword [edi + 4]
call fcn.0041f5d8
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x42a35a
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00404b26
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0058e700
push 0x20a
lea eax, [ebp - 0x21c]
push 0
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 0x42a429
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x5ca1f8
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42a429
cmp dword [esi + 0x14], 8
jb 0x42a3c4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x42a429
lea eax, [ebp - 0x21c]
xor esi, esi
push eax
push esi
push esi
push esi
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], si
jne 0x42a409
mov eax, esi
jmp 0x42a416
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.CIniSections::GetList
push 5
call fcn.00424dad
push 0xf65
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0045a88d
add esp, 0x1c
jmp 0x42a4d9
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push 2
lea eax, [ebp - 0x4a0]
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 esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [ebx - 2]
cmp ecx, eax
jne 0x42a4df
push esi
call fcn.0045a8a4
add ebx, 0x100
mov dword [esp], 0xf70
push str...CommonDeviceInf.cpp
lea eax, [ebx + ebx]
push eax
call fcn.0045a88d
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x42a468
cmp word [ebp - 0x21c], 0
je 0x42a523
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_s___n
push str.CIniSections::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 0x42a52b
xor esi, esi
jmp 0x42a5a0
push esi
lea ecx, [ebp - 0x49c]
call fcn.0046e8e1
push esi
call fcn.0045a8a4
pop ecx
lea ecx, [ebp - 0x49c]
xor esi, esi
call fcn.0046d95f
test eax, eax
je 0x42a59d
push esi
lea ecx, [ebp - 0x49c]
call fcn.0046dbf8
push eax
lea ecx, [ebp - 0x488]
call fcn.00401c0c
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 4]
call fcn.00420bd6
push 0
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 3
call fcn.00404970
lea ecx, [ebp - 0x49c]
inc esi
call fcn.0046d95f
cmp esi, eax
jb 0x42a54f
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.00404970
push 0
push 1
lea ecx, [ebp - 0x458]
call fcn.00404970
push 0
push 1
lea ecx, [ebp - 0x470]
call fcn.00404970
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x49c]
call fcn.0046d5eb
mov eax, esi
call fcn.0058f741
ret