Function at 0x429c68
Capabilities:
Copy file
Delete file
Get common file path
Read .ini file
Set file attributes

Disassembly:
push 0x500
mov eax, 0x5b01e3
call fcn.0058f792
mov ebx, ecx
mov dword [ebp - 0x4f0], ebx
lea ecx, [ebp - 0x504]
mov dword [ebp - 0x508], 0x100
call fcn.0046d53c
push 7
xor edi, edi
xor eax, eax
pop ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x474], ecx
mov dword [ebp - 0x478], edi
mov word [ebp - 0x488], ax
mov dword [ebp - 0x48c], ecx
mov dword [ebp - 0x490], edi
mov word [ebp - 0x4a0], ax
mov byte [ebp - 4], 2
cmp dword [ebx + 0x68], edi
jne 0x429cd4
push 0x3e9
jmp 0x429cf0
lea esi, [ebx + 0x34]
cmp dword [esi + 0x14], 8
jb 0x429ce1
mov eax, dword [esi]
jmp 0x429ce3
mov eax, esi
push eax
call fcn.004366b8
pop ecx
test eax, eax
jne 0x429cfb
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x429fbf
lea edi, [ebx + 4]
push dword [edi + 4]
mov ecx, edi
push dword [edi]
call fcn.0041f5d8
mov eax, dword [edi]
mov dword [edi + 4], eax
lea edi, [ebx + 0x10]
push dword [edi + 4]
mov ecx, edi
push dword [edi]
call fcn.0041f5d8
mov eax, dword [edi]
mov dword [edi + 4], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], edi
mov word [ebp - 0x440], ax
lea eax, [ebx + 0x4c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x470]
call fcn.00401bb9
xor eax, eax
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], edi
mov word [ebp - 0x458], ax
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 5
cmp eax, esi
je 0x429d83
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.00404b26
mov esi, 0x20a
lea eax, [ebp - 0x428]
push esi
push edi
push eax
call fcn.0058e700
push esi
lea eax, [ebp - 0x21c]
push edi
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 0x429e56
lea eax, [ebp - 0x21c]
push eax
push edi
push 0x5ca1f8
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x429e56
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x21c]
push edi
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x429e56
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push edi
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], 0
jne 0x429e36
mov eax, edi
jmp 0x429e43
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]
mov esi, str.CDeviceInfSection::GetList
cmovae eax, dword [ebp - 0x440]
push eax
push str.strTargetInfFile___1_lS__IN_n
push esi
push 5
call fcn.00424dad
push 0x832
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0045a88d
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x429f41
mov esi, dword [ebp - 0x508]
xor ebx, ebx
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push 2
lea eax, [ebp - 0x50c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x440]
lea eax, [ebp - 0x470]
cmovae ecx, dword [ebp - 0x440]
cmp dword [ebp - 0x45c], 8
push ecx
cmovae eax, dword [ebp - 0x470]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ecx, eax
lea eax, [esi - 2]
cmp eax, ecx
jne 0x429f36
push edi
call fcn.0045a8a4
add esi, 0x100
mov dword [esp], 0x83d
push str...CommonDeviceInf.cpp
lea eax, [esi + esi]
push eax
call fcn.0045a88d
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x429ea6
mov ebx, dword [ebp - 0x4f0]
mov esi, str.CDeviceInfSection::GetList
cmp word [ebp - 0x21c], 0
je 0x429f81
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_lS___n
push esi
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]
push str.pItems_successfully_gotten._n
push esi
push 5
call fcn.00424dad
add esp, 0xc
test edi, edi
jne 0x429fc6
push edi
push 1
lea ecx, [ebp - 0x458]
call fcn.00404970
push edi
push 1
lea ecx, [ebp - 0x470]
call fcn.00404970
push edi
push 1
lea ecx, [ebp - 0x440]
call fcn.00404970
mov esi, edi
jmp 0x42a261
lea ecx, [ebp - 0x504]
call fcn.0046d8ee
xor eax, eax
mov esi, edi
cmp word [edi], ax
je 0x42a063
xor ebx, ebx
cmp word [esi], bx
jne 0x429fe9
mov eax, ebx
jmp 0x429ff0
push esi
call fcn.0058edd4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x458]
call fcn.00404be0
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
push str.strItem____1_s___n
push str.CDeviceInfSection::GetList
push 5
call fcn.00424dad
add esp, 0x10
lea eax, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
lea ecx, [ebp - 0x504]
cmovae eax, dword [ebp - 0x458]
push eax
call fcn.0046d6d9
push ebx
push esi
call fcn.00591c76
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42a05d
add esi, 2
cmp word [esi], bx
jne 0x429fe9
mov ebx, dword [ebp - 0x4f0]
push edi
call fcn.0045a8a4
pop ecx
xor edi, edi
lea ecx, [ebp - 0x458]
push edi
push 1
call fcn.00404970
push edi
push 1
lea ecx, [ebp - 0x470]
call fcn.00404970
push edi
push 1
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 2
call fcn.00404970
lea ecx, [ebp - 0x4ec]
call fcn.0046d5a4
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 6
mov esi, edi
call fcn.0046d95f
test eax, eax
je 0x42a24f
lea ecx, [ebp - 0x4ec]
call fcn.0046d932
push esi
lea ecx, [ebp - 0x504]
call fcn.0046dc88
inc eax
lea ecx, [ebp - 0x504]
push eax
push esi
call fcn.0046dbf8
push eax
mov ecx, ebx
call sym.SETUP.exe_protected:_int___thiscall_CDeviceInfSection::IsComment_wchar_t_const___unsigned_int_
test eax, eax
jne 0x42a23b
push esi
lea ecx, [ebp - 0x504]
call fcn.0046dc88
inc eax
lea ecx, [ebp - 0x504]
push eax
push esi
call fcn.0046dbf8
push eax
lea ecx, [ebp - 0x4ec]
call fcn.0046e960
lea ecx, [ebp - 0x4ec]
cmp dword [ebx + 0x64], edi
jne 0x42a153
call fcn.0046dd08
mov edi, eax
xor eax, eax
cmp word [edi], ax
je 0x42a139
push edi
call fcn.0058edd4
pop ecx
push eax
push edi
lea ecx, [ebp - 0x488]
call fcn.00404be0
lea ecx, [ebp - 0x4ec]
call fcn.0046e7e6
jmp 0x42a192
call fcn.0046dd08
mov ecx, dword [ebx + 0x64]
push eax
call fcn.0046ed66
mov edi, eax
xor eax, eax
cmp word [edi], ax
je 0x42a171
push edi
call fcn.0058edd4
pop ecx
push eax
push edi
lea ecx, [ebp - 0x488]
call fcn.00404be0
lea ecx, [ebp - 0x4ec]
call fcn.0046e7e6
mov ecx, dword [ebx + 0x64]
push eax
call fcn.0046ed66
mov edi, eax
xor eax, eax
cmp word [edi], ax
je 0x42a1a2
push edi
call fcn.0058edd4
pop ecx
push eax
push edi
lea ecx, [ebp - 0x4a0]
call fcn.00404be0
cmp dword [ebp - 0x474], 8
lea eax, [ebp - 0x488]
lea ecx, [ebp - 0x470]
cmovae eax, dword [ebp - 0x488]
push eax
call fcn.00401c0c
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebx + 4]
call fcn.00420bd6
xor edi, edi
mov byte [ebp - 4], 6
push edi
push 1
lea ecx, [ebp - 0x470]
call fcn.00404970
cmp dword [ebp - 0x48c], 8
lea eax, [ebp - 0x4a0]
lea ecx, [ebp - 0x470]
cmovae eax, dword [ebp - 0x4a0]
push eax
call fcn.00401c0c
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebx + 0x10]
call fcn.00420bd6
push edi
push 1
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 6
call fcn.00404970
lea ecx, [ebp - 0x504]
inc esi
call fcn.0046d95f
cmp esi, eax
jb 0x42a0be
xor esi, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4ec]
inc esi
call fcn.0046d661
push edi
push 1
lea ecx, [ebp - 0x4a0]
call fcn.00404970
push edi
push 1
lea ecx, [ebp - 0x488]
call fcn.00404970
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x504]
call fcn.0046d5eb
mov eax, esi
call fcn.0058f741
ret