Function at 0x1006e42
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push 0x874
push 0x1001cf0
call fcn.01011fec
mov eax, dword [0x101647c]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x860], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x870], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x854], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x864], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x848], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x86c], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x868], ecx
mov esi, dword [ebp + 0x2c]
mov dword [ebp - 0x84c], esi
xor ebx, ebx
mov dword [ebp - 0x840], ebx
cmp esi, ebx
je 0x1006eb2
mov dword [esi], ebx
mov dword [ebp - 4], ebx
push eax
call fcn.010064a6
mov eax, dword [0x101602c]
cmp eax, 0xffffffff
je 0x1007245
mov dword [ebp - 0x850], ebx
mov esi, 0x1001c9c
push esi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountW]
inc eax
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x884]
push eax
push ebx
push esi
push dword [0x101602c]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x1007259
cmp edi, ebx
je 0x100724f
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
mov esi, 0x1001cd8
push esi
mov dword [ebp - 0x874], eax
call edi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x874]
lea eax, [ecx + eax + 1]
cmp eax, 0x104
jae 0x100724f
push dword [ebp - 0x860]
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x80
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1006f9c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x1006f9c
mov esi, dword [ebp - 0x84c]
cmp esi, ebx
je 0x100724f
call edi
jmp 0x1007241
push 1
push ebx
push 0x1012fee
push 0x1001cc8
push esi
push dword [ebp - 0x860]
call fcn.010134e1
mov dword [0x1019394], eax
cmp eax, ebx
je 0x1007231
mov esi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
mov eax, dword [ebp + 0x28]
cmp dword [eax], ebx
je 0x1006fde
mov dword [ebp - 0x840], 0x80004004
jmp 0x1007259
push ebx
push 0x104
lea eax, [ebp - 0x83c]
push eax
push 1
lea eax, [ebp - 0x884]
push eax
call esi
test eax, eax
je 0x1007198
mov word [ebp - 0x224], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
inc eax
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x858], eax
push ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x224]
push eax
push 2
lea eax, [ebp - 0x884]
push eax
call esi
test eax, eax
je 0x10070e0
push 0x1001cb0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x100706b
mov dword [ebp - 0x85c], ebx
mov word [ebp - 0x224], bx
jmp 0x10070e0
push 0x1001c8c
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1007089
mov dword [ebp - 0x858], ebx
jmp 0x1007062
push ebx
push edi
lea eax, [ebp - 0x634]
push eax
push 3
lea eax, [ebp - 0x884]
push eax
call esi
test eax, eax
je 0x10070e0
push 0x1001cb0
lea eax, [ebp - 0x634]
push eax
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
call edi
test eax, eax
jne 0x10070c1
mov dword [ebp - 0x85c], ebx
jmp 0x10070d9
push 0x1001c8c
lea eax, [ebp - 0x224]
push eax
call edi
test eax, eax
jne 0x10070e0
mov dword [ebp - 0x858], ebx
mov word [ebp - 0x634], bx
push dword [ebp - 0x858]
push dword [ebp - 0x85c]
push dword [ebp - 0x86c]
push dword [ebp - 0x868]
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x860]
push dword [ebp - 0x870]
lea eax, [ebp - 0x83c]
push eax
call fcn.010069fc
test eax, eax
jne 0x1007137
mov edi, dword [ebp - 0x84c]
cmp edi, ebx
je 0x100712d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov dword [ebp - 0x840], 0x80004005
inc dword [ebp - 0x850]
cmp dword [ebp - 0x848], ebx
je 0x1007178
movzx eax, word [ebp - 0x844]
shl eax, 0x10
push eax
push ebx
push 0x401
push dword [ebp - 0x848]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
call edi
push ebx
push dword [ebp - 0x850]
push 0x402
push dword [ebp - 0x848]
call edi
cmp dword [ebp - 0x854], ebx
je 0x1007198
push dword [ebp - 0x844]
push dword [ebp - 0x850]
push dword [ebp - 0x864]
call dword [ebp - 0x854]
lea eax, [ebp - 0x884]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x1006fc8
mov esi, dword [ebp + 0x28]
cmp dword [esi], ebx
jne 0x1006fcf
push ebx
push ebx
push ebx
push ebx
push dword [0x1019394]
call fcn.01013806
test eax, eax
je 0x1007231
cmp dword [esi], ebx
jne 0x1006fcf
cmp dword [ebp - 0x848], ebx
je 0x100720f
movzx eax, word [ebp - 0x844]
shl eax, 0x10
push eax
push ebx
push 0x401
push dword [ebp - 0x848]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push ebx
push dword [ebp - 0x844]
push 0x402
push dword [ebp - 0x848]
call esi
cmp dword [ebp - 0x854], ebx
je 0x1007259
push dword [ebp - 0x844]
push dword [ebp - 0x844]
push dword [ebp - 0x864]
call dword [ebp - 0x854]
jmp 0x1007259
mov esi, dword [ebp - 0x84c]
cmp esi, ebx
je 0x100724f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x100724f
cmp esi, ebx
je 0x100724f
mov dword [esi], 0x54f
mov dword [ebp - 0x840], 0x80004005
or dword [ebp - 4], 0xffffffff
call fcn.0100729f
mov esi, dword [ebp - 0x86c]
cmp esi, ebx
je 0x10072ae
cmp dword [ebp - 0x840], ebx
jge 0x10072a0
cmp dword [ebp - 0x840], 0x80004004
je 0x10072a0
mov eax, dword [ebp - 0x84c]
push dword [eax]
push dword [ebp - 0x868]
push esi
call fcn.01006b41
push ebx
push ebx
push 0x8002
jmp 0x10072a7
push ebx
push ebx
push 0x8001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x840]
mov ecx, dword [ebp - 0x1c]
call fcn.01011c2a
call fcn.01012027
ret 0x28