Function at 0x42e300
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x489fbb
mov eax, dword fs:[0]
push eax
mov eax, 0x1094
call fcn.0046d4a0
mov eax, dword [0x4bc7b8]
xor eax, esp
mov dword [esp + 0x1090], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7b8]
xor eax, esp
push eax
lea eax, [esp + 0x10a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10bc]
mov edi, dword [esp + 0x10b8]
mov esi, edx
xor ebp, ebp
push 0x206
lea edx, [esp + 0x69a]
push ebp
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ecx
mov word [esp + 0x6a0], bp
call fcn.0046adc0
add esp, 0xc
push 0x206
lea eax, [esp + 0xaa2]
push ebp
push eax
mov word [esp + 0xaa8], bp
call fcn.0046adc0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x492]
push ebp
push ecx
mov word [esp + 0x498], bp
call fcn.0046adc0
add esp, 0xc
push 0x206
lea edx, [esp + 0x28a]
push ebp
push edx
mov word [esp + 0x290], bp
call fcn.0046adc0
add esp, 0xc
push 0x1fe
lea eax, [esp + 0x8a2]
push ebp
push eax
mov word [esp + 0x8a8], bp
call fcn.0046adc0
add esp, 0xc
call fcn.00452867
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x42e411
push 0x80004005
call fcn.00402350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push edi
push str.DeleteOEMInfPnf__s_
mov dword [esp + 0x10b8], ebp
call fcn.00426a70
mov edi, eax
call fcn.00426f90
push 0x104
lea ecx, [esp + 0x498]
push ebp
push ecx
call fcn.0046adc0
add esp, 0x14
push 0x104
lea edx, [esp + 0xaa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.infoem.inf
lea eax, [esp + 0xaa0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x14], ebp
jne 0x42e4a1
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0xaa0]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x24], eax
jmp 0x42e4b5
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], ebp
je 0x42e7c6
push 0x104
lea edx, [esp + 0x698]
push ebp
push edx
call fcn.0046adc0
add esp, 0xc
push 0x104
lea eax, [esp + 0x698]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.inf_
lea ecx, [esp + 0x698]
push 0x104
push ecx
call fcn.0046837e
add esp, 0xc
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x698]
push 0x104
push eax
call fcn.0046837e
add esp, 0xc
xor ebx, ebx
mov edi, edi
cmp ebx, ebp
push 0x1fe
push ebp
jne 0x42e560
lea ecx, [esp + 0xeae]
push ecx
mov word [esp + 0xeb0], bp
call fcn.0046adc0
add esp, 0xc
lea edx, [esp + 0x89c]
push edx
lea eax, [esp + 0xea8]
push eax
lea ecx, [esp + 0x69c]
call fcn.0042dee0
jmp 0x42e58e
lea ecx, [esp + 0xcae]
push ecx
mov word [esp + 0xcb0], bp
call fcn.0046adc0
add esp, 0xc
lea edx, [esp + 0x89c]
push edx
lea ecx, [esp + 0xca8]
mov edi, esi
call fcn.0042e040
cmp eax, ebp
jne 0x42e7b8
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x8a0]
push ecx
call fcn.004296d0
add esp, 8
test eax, eax
jne 0x42e5bb
mov esi, dword [esp + 0x1c]
add ebx, 1
jmp 0x42e520
lea edx, [esp + 0x694]
push edx
lea eax, [esp + 0x8a0]
push eax
push str.found_hwid__s_in__s
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 0xc
lea ecx, [esp + 0x694]
push ecx
lea edx, [esp + 0x490]
push 0x104
push edx
mov word [esp + 0x498], bp
call fcn.00467e2b
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 0xc
push 0x80
lea eax, [esp + 0x490]
push eax
call esi
lea ecx, [esp + 0x48c]
push ecx
push str.OemInf_Delete____s
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov edx, dword [esp + 0x34]
add esp, 8
push edx
lea eax, [esp + 0x490]
call fcn.00434720
lea eax, [esp + 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42e692
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
je 0x42e6a6
cmp edi, 2
je 0x42e6a6
push str.OemInf_DeleteFile_failed
call fcn.00426a70
mov ebx, edi
mov ecx, eax
call fcn.00427100
add esp, 4
lea ecx, [esp + 0x48c]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004520da
jmp 0x42e6a6
push str.OemInf_successfully_deleted
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 4
push 0x104
lea edx, [esp + 0x288]
push ebp
push edx
call fcn.0046adc0
add esp, 0xc
lea eax, [esp + 0x694]
push eax
lea ecx, [esp + 0x288]
push 0x104
push ecx
mov word [esp + 0x290], bp
call fcn.00467e2b
lea eax, [esp + 0x290]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x42e6f0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e6f0
sub eax, edx
push 0x4a5238
lea edx, [esp + 0x288]
sar eax, 1
push 0x104
push edx
mov word [esp + eax*2 + 0x28a], bp
call fcn.0046837e
add esp, 0xc
push 0x80
lea eax, [esp + 0x288]
push eax
call esi
lea ecx, [esp + 0x284]
push ecx
push str.OemPnf_Delete____s
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 8
lea edx, [esp + 0x284]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42e7a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
je 0x42e7b8
cmp edi, 2
je 0x42e7b8
push str.OemPnf_DeleteFile_failed
call fcn.00426a70
mov ebx, edi
mov ecx, eax
call fcn.00427100
mov ecx, dword [esp + 0x1c]
add esp, 4
lea eax, [esp + 0x284]
push eax
call fcn.004520da
add dword [esp + 0x14], 1
mov esi, dword [esp + 0x1c]
jmp 0x42e482
push str.OemPnf_successfully_deleted
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 4
add dword [esp + 0x14], 1
mov esi, dword [esp + 0x1c]
jmp 0x42e482
push str.Found_no_more_Inf_files
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x10b0], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e810
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.004677d8
add esp, 0x10a0
ret 8