Function at 0x429485
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, 0x5a9272
call fcn.00588aeb
mov edi, ecx
lea ecx, [ebp - 0x49c]
mov ebx, 0x100
call fcn.0046c3f7
push 7
xor edx, edx
pop ecx
xor eax, eax
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 0x4294f9
push 0x3e9
jmp 0x429516
lea esi, [edi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x429506
mov eax, dword [esi]
jmp 0x429508
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x429521
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x429718
push dword [edi + 8]
lea ecx, [edi + 4]
push dword [edi + 4]
call fcn.0041e660
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x42954b
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00403c35
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00587a70
push 0x20a
lea eax, [ebp - 0x21c]
push 0
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 0x42961a
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x5c4108
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42961a
cmp dword [esi + 0x14], 8
jb 0x4295b5
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 0x42961a
lea eax, [ebp - 0x21c]
push eax
xor esi, esi
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 0x4295fa
mov eax, esi
jmp 0x429607
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.CIniSections::GetList
push 5
call fcn.00423f75
push 0xf65
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0045976f
add esp, 0x1c
jmp 0x4296ca
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 0x4296d0
push esi
call fcn.00459786
add ebx, 0x100
mov dword [esp], 0xf70
lea eax, [ebx + ebx]
push str...CommonDeviceInf.cpp
push eax
call fcn.0045976f
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x429659
cmp word [ebp - 0x21c], 0
je 0x429714
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_s___n
push str.CIniSections::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 0x42971c
xor esi, esi
jmp 0x429791
push esi
lea ecx, [ebp - 0x49c]
call fcn.0046d791
push esi
call fcn.00459786
pop ecx
lea ecx, [ebp - 0x49c]
xor esi, esi
call fcn.0046c815
test eax, eax
je 0x42978e
push esi
lea ecx, [ebp - 0x49c]
call fcn.0046caa8
push eax
lea ecx, [ebp - 0x488]
call fcn.004010bc
lea eax, [ebp - 0x488]
push eax
lea ecx, [edi + 4]
mov byte [ebp - 4], 4
call fcn.0041fd9c
push 0
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 3
call fcn.00403a7f
lea ecx, [ebp - 0x49c]
inc esi
call fcn.0046c815
cmp esi, eax
jb 0x429740
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.00403a7f
push 0
push 1
lea ecx, [ebp - 0x458]
call fcn.00403a7f
push 0
push 1
lea ecx, [ebp - 0x470]
call fcn.00403a7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x49c]
call fcn.0046c4a1
mov eax, esi
call fcn.00588a9a
ret