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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4084
call fcn.00414bd0
mov eax, dword [0x439010]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23a]
push eax
call fcn.00413c30
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x47c], ax
lea eax, [ebp - 0x47a]
push eax
call fcn.00413c30
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x11c], ax
lea eax, [ebp - 0x11a]
push eax
call fcn.00413c30
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x37c], ax
lea eax, [ebp - 0x37a]
push eax
call fcn.00413c30
mov eax, dword [0x429880]
add esp, 0x30
movq xmm0, qword [str.INTELPROUNSTL]
mov dword [ebp - 0x14], eax
movzx eax, word [0x429884]
mov word [ebp - 0x10], ax
mov al, byte [0x429886]
mov byte [ebp - 0xe], al
mov eax, dword [str.INTEL]
mov dword [ebp - 0xc], eax
movzx eax, word [0x42988c]
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x88c]
push 0x104
push eax
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x88c]
push eax
lea eax, [ebp - 0x684]
push 0x104
push eax
call fcn.00413d8d
push str.SetupAPI.dll
lea eax, [ebp - 0x684]
push 0x104
push eax
call fcn.00414e8e
add esp, 0x18
lea eax, [ebp - 0x684]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x43ba54], eax
test eax, eax
jne 0x40fec1
push str.Error_opening_SetupAPI_DLL
call fcn.00401820
add esp, 4
push 0x100
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x40fef2
push str.Get_Windows_directory_for_RemoveOEMInf
call fcn.00401820
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x23c]
push 0x80
push eax
call fcn.00413d8d
push str.Inf_
lea eax, [ebp - 0x23c]
push 0x80
push eax
call fcn.00414e8e
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x37c]
push 0x80
push eax
call fcn.00413d8d
push str._system32CatRoot_
lea eax, [ebp - 0x47c]
push 0x80
push eax
call fcn.00414e8e
mov ecx, 0x11
lea edi, [ebp - 0x1910]
mov esi, str.0123456789012345678901234567890123456789012345678901234567890123456789
lea eax, [ebp - 0x18c9]
rep movsd dword es:[edi], dword [esi]
push 0x103b
push 0
push eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00413c30
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410450
add esp, 0x44
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00410450
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x37c]
push 0x80
push eax
call fcn.00413d8d
push str.oem.inf
lea eax, [ebp - 0x37c]
push 0x80
push eax
call fcn.00414e8e
add esp, 0x20
lea eax, [ebp - 0x3c64]
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x3c6c], eax
cmp eax, 0xffffffff
je 0x410427
push ebx
mov ebx, eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x11c]
push 0x80
push eax
call fcn.00413d8d
lea eax, [ebp - 0x3c38]
push eax
lea eax, [ebp - 0x11c]
push 0x80
push eax
call fcn.00414e8e
add esp, 0x18
lea eax, [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c68], eax
cmp eax, 0xffffffff
je 0x4103fd
push 0x1082
xor edi, edi
lea eax, [ebp - 0x1910]
push 0x78
xor ebx, ebx
push eax
lea esi, [edi + 1]
mov dword [ebp - 0x3c70], ebx
call fcn.00413c30
add esp, 0xc
push 0
lea eax, [ebp - 0x3c74]
push eax
push 0x1000
lea eax, [ebp - 0x18d0]
push eax
push dword [ebp - 0x3c68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4101ed
mov eax, dword [ebp - 0x3c74]
cmp eax, 0x40
jb 0x4101ed
test esi, esi
je 0x4100df
cmp byte [ebp - 0x18cd], 0
jne 0x4100df
lea ecx, [eax + 0x41]
mov edx, 1
mov dword [ebp - 0x3c70], edx
cmp ecx, 0x1082
jae 0x410437
mov byte [ebp + ecx - 0x1910], 0
jmp 0x4100e5
mov edx, dword [ebp - 0x3c70]
add eax, 0x40
cmp eax, 0x1082
jae 0x410437
mov byte [ebp + eax - 0x1910], 0
test edx, edx
je 0x410173
xor eax, eax
push 0x2102
push eax
mov word [ebp - 0x3a14], ax
lea eax, [ebp - 0x3a12]
push eax
call fcn.00413c30
push 0x104
lea eax, [ebp - 0x3a14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1910]
push eax
push 0
push 0
call sym.Prounstl.exe_public:_static_int___cdecl_CNcsString::NcsMultiByteToWideChar_unsigned_int__unsigned_long_int__char_const___int__wchar_t___int_
add esp, 0x24
test esi, esi
je 0x41015e
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x3a14]
push eax
call fcn.00414bfb
add esp, 8
test eax, eax
jne 0x41015e
lea edi, [eax + 1]
jmp 0x4101c0
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x3a14]
push eax
call fcn.00414bfb
jmp 0x4101b2
lea eax, [ebp - 0x1910]
push eax
call fcn.00415a18
add esp, 4
test esi, esi
je 0x4101a2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1910]
push eax
call fcn.00415640
add esp, 8
test eax, eax
jne 0x4101a2
lea edi, [eax + 1]
jmp 0x4101c0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1910]
push eax
call fcn.00415640
add esp, 8
test eax, eax
je 0x4101c0
mov edi, 1
mov ebx, edi
mov esi, dword [ebp - 0x3c74]
xor edx, edx
jmp 0x4101d0
lea ecx, [ebp - 0x1910]
add ecx, edx
inc edx
mov al, byte [ecx + esi]
mov byte [ecx], al
cmp edx, 0x40
jb 0x4101d0
xor esi, esi
test edi, edi
je 0x410076
push dword [ebp - 0x3c68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4103f7
mov eax, dword [0x43bf9c]
mov dword [ebp - 0x3c68], eax
cmp eax, dword [0x43bfa0]
jae 0x41029c
jmp 0x410220
mov esi, eax
lea edi, [ebp - 0x4084]
lea eax, [ebp - 0x11c]
mov ecx, 0x104
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00415291
push 0x4299cc
push eax
call fcn.00414bfb
add esp, 0xc
lea ecx, [ebp - 0x4084]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x410276
test dx, dx
je 0x410272
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x410276
add ecx, 4
add eax, 4
test dx, dx
jne 0x410250
xor eax, eax
jmp 0x41027b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4103f7
mov eax, dword [ebp - 0x3c68]
add eax, 0x410
mov dword [ebp - 0x3c68], eax
cmp eax, dword [0x43bfa0]
jb 0x410220
lea eax, [ebp - 0x11c]
push eax
call fcn.00415291
push 0x4299cc
push eax
call fcn.00414bfb
add esp, 0xc
mov esi, eax
push str.SetupUninstallOEMInfW
push dword [0x43ba54]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 1
push esi
mov dword [0x43ba50], eax
call eax
test eax, eax
jne 0x4103f7
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x11c]
push 0x80
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x11c]
push eax
call edi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x11c]
push 0x80
push eax
call fcn.00413d8d
lea eax, [ebp - 0x3c38]
push eax
lea eax, [ebp - 0x11c]
push 0x80
push eax
call fcn.00414e8e
lea eax, [ebp - 0x11c]
mov esi, str..pnf
push 0x2e
push eax
call fcn.004140d8
add esp, 0x20
sub eax, esi
jmp 0x410350
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [eax + esi - 2], cx
test cx, cx
jne 0x410350
push 0x80
lea eax, [ebp - 0x11c]
push eax
call ebx
lea eax, [ebp - 0x11c]
push eax
call edi
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x47c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x11e], ax
test ax, ax
jne 0x410380
lea eax, [ebp - 0x3c38]
push eax
lea eax, [ebp - 0x11c]
push 0x80
push eax
call fcn.00414e8e
lea eax, [ebp - 0x11c]
mov esi, str..cat
push 0x2e
push eax
call fcn.004140d8
add esp, 0x14
sub eax, esi
jmp 0x4103d0
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [eax + esi - 2], cx
test cx, cx
jne 0x4103d0
push 0x80
lea eax, [ebp - 0x11c]
push eax
call ebx
lea eax, [ebp - 0x11c]
push eax
call edi
mov ebx, dword [ebp - 0x3c6c]
lea eax, [ebp - 0x3c64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fff2
push dword [0x43ba54]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413026
mov esp, ebp
pop ebp
ret
call fcn.00413ffc
int3