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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55882d
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x5d7b20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebp - 0x510]
mov dword [ebp - 0x4f4], ebx
mov edi, 0x100
call fcn.004477d0
xor esi, esi
mov eax, 7
xor ecx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x46c], esi
mov word [ebp - 0x47c], cx
xor edx, edx
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x450], esi
mov word [ebp - 0x460], dx
mov dword [ebp - 0x430], eax
xor eax, eax
mov dword [ebp - 0x434], esi
mov word [ebp - 0x444], ax
mov byte [ebp - 4], 3
cmp dword [ebx + 0x60], esi
jne 0x43207e
push 0x3e9
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 8
cmp dword [ebp - 0x430], ebx
jb 0x431ff3
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.00449b7c
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x434], esi
mov word [ebp - 0x444], dx
cmp dword [ebp - 0x44c], ebx
jb 0x432024
mov eax, dword [ebp - 0x460]
push eax
call fcn.00449b7c
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x450], esi
mov word [ebp - 0x460], cx
cmp dword [ebp - 0x468], ebx
jb 0x432050
mov edx, dword [ebp - 0x47c]
push edx
call fcn.00449b7c
add esp, 4
mov dword [ebp - 0x468], edi
mov dword [ebp - 0x46c], esi
xor eax, eax
lea ecx, [ebp - 0x510]
mov word [ebp - 0x47c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00447830
xor eax, eax
jmp 0x432716
cmp dword [ebx + 0x38], 8
lea esi, [ebx + 0x24]
jb 0x43208b
mov eax, dword [esi]
jmp 0x43208d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43214e
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 8
cmp dword [ebp - 0x430], ebx
jb 0x4320c1
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.00449b7c
add esp, 4
xor esi, esi
xor edx, edx
mov edi, 7
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x434], esi
mov word [ebp - 0x444], dx
cmp dword [ebp - 0x44c], ebx
jb 0x4320f4
mov eax, dword [ebp - 0x460]
push eax
call fcn.00449b7c
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x450], esi
mov word [ebp - 0x460], cx
cmp dword [ebp - 0x468], ebx
jb 0x432120
mov edx, dword [ebp - 0x47c]
push edx
call fcn.00449b7c
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x510]
mov dword [ebp - 0x468], edi
mov dword [ebp - 0x46c], esi
mov word [ebp - 0x47c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00447830
xor eax, eax
jmp 0x432716
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
lea ecx, [ebp - 0x4f8]
push ecx
lea ecx, [ebx + 4]
call fcn.00406d70
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push eax
push ecx
lea eax, [ebp - 0x4f8]
push eax
lea ecx, [ebx + 0x14]
call fcn.00406d70
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x444]
call fcn.00401f90
push 0x20a
lea ecx, [ebp - 0x428]
push 0
push ecx
call fcn.0053e550
push 0x20a
lea edx, [ebp - 0x21c]
push 0
push edx
call fcn.0053e550
add esp, 0x18
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x43223d
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0x579474
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x43223d
cmp dword [esi + 0x14], 8
jb 0x4321f2
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 0x43223d
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x80
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x444]
call fcn.00402490
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x432252
lea eax, [ebp - 0x444]
push eax
push str.CDeviceInfSection::GetList_strTargetInfFile___1_s__IN_n
push 5
call fcn.00403ab0
push 0x90a
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0043e4e0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x43231b
mov ebx, dword [ebp - 0x4f4]
jmp 0x432290
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x4322a5
lea eax, [ebp - 0x444]
push eax
push 2
lea ecx, [ebp - 0x514]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x430], 8
mov ecx, dword [ebp - 0x444]
jae 0x4322d0
lea ecx, [ebp - 0x444]
cmp dword [ebx + 0x54], 8
jb 0x4322db
mov eax, dword [ebx + 0x40]
jmp 0x4322de
lea eax, [ebx + 0x40]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea edx, [edi - 2]
cmp edx, eax
jne 0x43231b
push esi
call fcn.0043e500
push 0x916
add edi, 0x100
lea eax, [edi + edi]
push str...CommonDeviceInf.cpp
push eax
call fcn.0043e4e0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x432290
xor edi, edi
cmp word [ebp - 0x21c], di
je 0x43235b
lea ecx, [ebp - 0x21c]
push ecx
push str.CDeviceInfSection::GetList_Delete_the_temp_file.___1_s___n
push 5
call fcn.00403ab0
add esp, 0xc
push 0x80
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, edi
jne 0x4323f2
cmp dword [ebp - 0x430], 8
jb 0x43237b
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.00449b7c
add esp, 4
xor edx, edx
cmp dword [ebp - 0x44c], 8
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], edi
mov word [ebp - 0x444], dx
jb 0x4323ac
mov eax, dword [ebp - 0x460]
push eax
call fcn.00449b7c
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x468], 8
mov dword [ebp - 0x44c], 7
mov dword [ebp - 0x450], edi
mov word [ebp - 0x460], cx
jb 0x4323dd
mov edx, dword [ebp - 0x47c]
push edx
call fcn.00449b7c
add esp, 4
mov dword [ebp - 0x468], 7
mov dword [ebp - 0x46c], edi
jmp 0x43205c
push esi
lea ecx, [ebp - 0x510]
call fcn.00448200
push esi
call fcn.0043e500
add esp, 4
lea ecx, [ebp - 0x510]
mov dword [ebp - 0x4f4], edi
call fcn.00445fe0
test eax, eax
je 0x432671
mov esi, edi
lea ecx, [ebp - 0x4f0]
call fcn.00446510
push esi
lea ecx, [ebp - 0x510]
mov byte [ebp - 4], 4
call fcn.00446210
push eax
mov ecx, ebx
call sym.DelDrv.exe_protected:_int___thiscall_CDeviceInfSection::IsComment_wchar_t_const__
test eax, eax
je 0x43245d
lea ecx, [ebp - 0x4f0]
mov byte [ebp - 4], 3
call fcn.00446550
jmp 0x432657
push esi
lea ecx, [ebp - 0x510]
call fcn.00446210
push eax
lea ecx, [ebp - 0x4f0]
call fcn.004472e0
lea ecx, [ebp - 0x4f0]
cmp dword [ebx + 0x5c], edi
jne 0x4324cd
call fcn.00446350
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x432490
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x47c]
call fcn.004021b0
lea ecx, [ebp - 0x4f0]
call fcn.00446360
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4324c0
jmp 0x432520
call fcn.00446350
mov ecx, dword [ebx + 0x5c]
push eax
call fcn.00446a30
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4324e0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x47c]
call fcn.004021b0
lea ecx, [ebp - 0x4f0]
call fcn.00446360
mov ecx, dword [ebx + 0x5c]
push eax
call fcn.00446a30
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x432515
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.004021b0
cmp dword [ebp - 0x468], 8
mov edx, dword [ebp - 0x47c]
jae 0x432546
lea edx, [ebp - 0x47c]
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x484], 7
mov dword [ebp - 0x488], edi
mov word [ebp - 0x498], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x432564
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x498]
call fcn.004021b0
lea edx, [ebp - 0x498]
push edx
lea ecx, [ebx + 4]
mov byte [ebp - 4], 5
call fcn.00423be0
cmp dword [ebp - 0x484], 8
mov byte [ebp - 4], 4
jb 0x4325af
mov eax, dword [ebp - 0x498]
push eax
call fcn.00449b7c
add esp, 4
cmp dword [ebp - 0x44c], 8
mov edx, dword [ebp - 0x460]
jae 0x4325c4
lea edx, [ebp - 0x460]
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x484], 7
mov dword [ebp - 0x488], edi
mov word [ebp - 0x498], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4325e2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x498]
call fcn.004021b0
lea edx, [ebp - 0x498]
push edx
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 6
call fcn.00423be0
cmp dword [ebp - 0x484], 8
jb 0x432629
mov eax, dword [ebp - 0x498]
push eax
call fcn.00449b7c
add esp, 4
xor ecx, ecx
mov word [ebp - 0x498], cx
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x484], 7
mov dword [ebp - 0x488], edi
mov byte [ebp - 4], 3
call fcn.00446550
mov esi, dword [ebp - 0x4f4]
inc esi
lea ecx, [ebp - 0x510]
mov dword [ebp - 0x4f4], esi
call fcn.00445fe0
cmp esi, eax
jb 0x432422
mov ebx, 8
cmp dword [ebp - 0x430], ebx
jb 0x43268d
mov edx, dword [ebp - 0x444]
push edx
call fcn.00449b7c
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x434], edi
mov word [ebp - 0x444], ax
cmp dword [ebp - 0x44c], ebx
jb 0x4326be
mov ecx, dword [ebp - 0x460]
push ecx
call fcn.00449b7c
add esp, 4
xor edx, edx
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x450], edi
mov word [ebp - 0x460], dx
cmp dword [ebp - 0x468], ebx
jb 0x4326ea
mov eax, dword [ebp - 0x47c]
push eax
call fcn.00449b7c
add esp, 4
xor ecx, ecx
mov word [ebp - 0x47c], cx
lea ecx, [ebp - 0x510]
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x46c], edi
mov dword [ebp - 4], 0xffffffff
call fcn.00447830
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret