Function at 0x4024e0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x644
mov eax, dword [0x42eb60]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push ebp
mov ebp, dword [esp + 0x654]
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [esp + 0x654]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x408
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], ebp
call edi
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push esi
mov esi, dword [sym.imp.SETUPAPI.dll_SetupGetInfFileListA]
mov ebx, eax
mov dword [esp + 0x38], 0
call esi
test eax, eax
jne 0x40256d
push str.SetupGetInfFileList
call fcn.00402490
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x650]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411d2a
add esp, 0x644
ret
mov edx, dword [ebp + 0x20]
push 0
push ebx
push 0x402
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
push 0x40
add ebx, 1
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push 0
push ecx
mov edi, eax
push edi
push 2
push edx
mov dword [esp + 0x3c], edi
call esi
test eax, eax
je 0x402545
mov eax, dword [ebp + 0x20]
push 0
push ebx
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
add ebx, 1
cmp byte [edi], 0
mov dword [esp + 0x20], ebx
mov ebx, edi
je 0x402c02
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x14]
add ecx, edi
cmp ebx, ecx
jae 0x402c02
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x44c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4025f5
mov eax, ebx
mov esi, ebx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402605
lea edi, [esp + 0x44c]
sub eax, esi
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402620
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 2
mov ecx, eax
push 0
lea edx, [esp + 0x458]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov edi, dword [esp + 0x24]
mov esi, eax
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
mov ecx, edi
sub ecx, eax
jne 0x402692
mov eax, dword [esp + 0x20]
cmp eax, 0x5a
jge 0x402692
mov edx, dword [esp + 0x2c]
push 0
push eax
mov eax, dword [edx + 0x20]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
add dword [esp + 0x20], 1
add edi, 1
cmp esi, 0xffffffff
mov dword [esp + 0x24], edi
je 0x402b02
lea ecx, [esp + 0x30]
push ecx
push 0
push str.Manufacturer
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x402af6
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
push 0
push 0x100
lea edx, [esp + 0x48]
push edx
push 1
lea eax, [esp + 0x40]
push eax
call edi
test eax, eax
je 0x402af6
lea ecx, [esp + 0x30]
push ecx
push 0
lea edx, [esp + 0x48]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x402af6
push 0
push 0x100
lea eax, [esp + 0x48]
push eax
push 2
lea ecx, [esp + 0x40]
push ecx
call edi
test eax, eax
je 0x402af6
mov edx, dword [0x430014]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
je 0x402740
mov ecx, dword [0x430014]
cmp dword [ecx - 0xc], 0
jne 0x402a9e
mov edx, dword [0x430018]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x430030]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov eax, dword [0x430074]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov edx, dword [0x43006c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x430040]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov eax, dword [0x430088]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov edx, dword [0x430084]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x430038]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov eax, dword [0x430024]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov edx, dword [0x430068]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x430058]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov eax, dword [0x430064]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov edx, dword [0x43008c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x430028]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov eax, dword [0x430070]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov edx, dword [0x430080]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x430034]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov eax, dword [0x430090]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov edx, dword [0x430020]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x43007c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov eax, dword [0x43002c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov edx, dword [0x430054]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x430050]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov eax, dword [0x43004c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov edx, dword [0x43003c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x430078]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov eax, dword [0x430094]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov edx, dword [0x430048]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x430044]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov eax, dword [0x430060]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov edx, dword [0x43005c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402a9e
mov ecx, dword [0x43001c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004125af
add esp, 8
test eax, eax
je 0x402af6
lea eax, [esp + 0x30]
push eax
push 0
push str.Strings
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x402b0f
push 0
push 0x100
lea ecx, [esp + 0x48]
push ecx
push 1
lea edx, [esp + 0x40]
push edx
call edi
test eax, eax
je 0x402b0f
lea eax, [esp + 0x40]
push str.Microsoft
push eax
call fcn.004125af
add esp, 8
test eax, eax
jne 0x402b0f
mov dword [esp + 0x18], 1
jmp 0x402b0f
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x402be8
push str.INVALID_HANDLE_VALUE
call fcn.00402490
add esp, 4
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x10], 0
je 0x402be8
cmp dword [esp + 0x18], 0
je 0x402be8
push ebx
lea ecx, [esp + 0x550]
push ecx
call ebp
push ebx
lea edx, [esp + 0x34c]
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x144]
push eax
call ebp
push esi
lea ecx, [esp + 0x248]
push ecx
call ebp
lea edx, [esp + 0x348]
push 0x425af0
push edx
call fcn.004125af
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
mov byte [eax], 0x2e
mov byte [eax + 1], 0x50
mov byte [eax + 2], 0x4e
mov byte [eax + 3], 0x46
lea eax, [esp + 0x54c]
push eax
lea ecx, [esp + 0x144]
push ecx
call esi
lea edx, [esp + 0x348]
push edx
lea eax, [esp + 0x248]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
lea ecx, [esp + 0x144]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x140]
push edx
call edi
push 0x80
lea eax, [esp + 0x248]
push eax
call esi
lea ecx, [esp + 0x244]
push ecx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebx + eax + 1], 0
mov edi, dword [esp + 0x28]
lea ebx, [ebx + eax + 1]
jne 0x4025d0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], 0
je 0x402552
cmp dword [esp + 0x18], 0
je 0x402552
mov eax, 1
jmp 0x402554