Function at 0x10076b5
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xea0
push 0x1001ed0
call fcn.01012f9c
mov eax, dword [0x1017484]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe88], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe70], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xe80], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xe60], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xe94], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xe90], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xe5c], eax
xor ebx, ebx
mov dword [ebp - 0xe58], ebx
cmp dword [0x101e89c], ebx
mov dword [ebp - 0xe8c], 0x1001ec4
jne 0x100773b
mov dword [ebp - 0xe8c], 0x1001ebc
push 0x104
lea eax, [ebp - 0xc4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x1007cca
mov edi, 0xc4
cmp eax, edi
ja 0x1007cca
push 0x1001e68
lea eax, [ebp - 0xc4c]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0xe54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x1007cca
cmp eax, edi
ja 0x1007cca
push 0x1001604
push dword [ebp - 0xe88]
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0xe84], ecx
mov eax, dword [ebp - 0xe5c]
cmp eax, ebx
je 0x10077d7
mov dword [eax], ebx
mov dword [ebp - 4], ebx
push esi
cmp dword [0x101e878], ebx
je 0x10077f0
call fcn.01006aa8
mov edi, dword [0x1017030]
jmp 0x10077fb
call fcn.010069ea
mov edi, dword [0x101702c]
mov dword [ebp - 0xe9c], edi
cmp edi, 0xffffffff
je 0x1007c53
mov dword [ebp - 0xe74], ebx
mov esi, 0x1001e54
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountW]
inc eax
mov dword [ebp - 0xe64], eax
lea eax, [ebp - 0xeac]
push eax
push ebx
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x1007c6d
cmp dword [ebp - 0xe68], ebx
je 0x1007c63
push dword [ebp - 0xe68]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
mov esi, 0x1001ea4
push esi
mov dword [ebp - 0xe98], eax
call edi
pop ecx
pop ecx
mov ecx, dword [ebp - 0xe98]
lea eax, [ecx + eax + 1]
cmp eax, 0x104
jae 0x1007c63
push dword [ebp - 0xe68]
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push esi
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x80
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10078e1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x10078e1
mov esi, dword [ebp - 0xe5c]
cmp esi, ebx
je 0x1007c63
call edi
jmp 0x1007c4f
push 1
push ebx
push 0x101331c
push 0x1001e94
push esi
push dword [ebp - 0xe68]
call fcn.0101484e
mov dword [0x101a3b8], eax
cmp eax, ebx
je 0x1007c3f
mov eax, dword [ebp + 0x28]
cmp dword [eax], ebx
je 0x100791d
mov dword [ebp - 0xe58], 0x80004004
jmp 0x1007c6d
push ebx
push 0x104
lea eax, [ebp - 0x42c]
push eax
push 1
lea eax, [ebp - 0xeac]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x1007b8b
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 esi, esi
inc esi
mov dword [ebp - 0xe7c], esi
mov dword [ebp - 0xe78], esi
push ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x224]
push eax
push 2
lea eax, [ebp - 0xeac]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x1007a2b
push 0x1001e7c
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x10079b2
mov dword [ebp - 0xe7c], ebx
mov word [ebp - 0x224], bx
jmp 0x1007a2b
push 0x1001e44
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x10079d0
mov dword [ebp - 0xe78], ebx
jmp 0x10079a9
push ebx
push edi
lea eax, [ebp - 0x634]
push eax
push 3
lea eax, [ebp - 0xeac]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x1007a2b
push 0x1001e7c
lea eax, [ebp - 0x634]
push eax
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
call edi
test eax, eax
jne 0x1007a0c
mov dword [ebp - 0xe7c], ebx
jmp 0x1007a24
push 0x1001e44
lea eax, [ebp - 0x224]
push eax
call edi
test eax, eax
jne 0x1007a2b
mov dword [ebp - 0xe78], ebx
mov word [ebp - 0x634], bx
push 0x1001604
lea eax, [ebp - 0x42c]
push eax
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
call edi
test eax, eax
jne 0x1007a51
mov eax, dword [ebp - 0xe84]
mov dword [ebp - 0xe6c], eax
jmp 0x1007acb
cmp dword [ebp - 0xe84], ebx
je 0x1007a73
push 0x10015e8
lea eax, [ebp - 0x42c]
push eax
call edi
test eax, eax
jne 0x1007a73
mov dword [ebp - 0xe6c], ebx
jmp 0x1007acb
push 0x1001738
lea eax, [ebp - 0x42c]
push eax
call edi
test eax, eax
je 0x1007a6b
cmp word [ebp - 0x224], bx
je 0x1007ac5
push 0x2e
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
sub eax, 4
mov dword [ebp - 0xeb0], eax
je 0x1007ac1
push 2
push dword [ebp - 0xe8c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x1007ac1
mov eax, esi
jmp 0x1007a49
xor eax, eax
jmp 0x1007a49
mov dword [ebp - 0xe6c], esi
cmp dword [ebp - 0xe6c], ebx
je 0x1007b2a
push dword [ebp - 0xe78]
push dword [ebp - 0xe7c]
push dword [ebp - 0xe94]
push dword [ebp - 0xe90]
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0xe68]
push dword [ebp - 0xe88]
lea eax, [ebp - 0x42c]
push eax
call fcn.0100717e
test eax, eax
jne 0x1007b2a
mov edi, dword [ebp - 0xe5c]
cmp edi, ebx
je 0x1007b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov dword [ebp - 0xe58], 0x80004005
inc dword [ebp - 0xe74]
cmp dword [ebp - 0xe60], ebx
je 0x1007b6b
movzx eax, word [ebp - 0xe64]
shl eax, 0x10
push eax
push ebx
push 0x401
push dword [ebp - 0xe60]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
call edi
push ebx
push dword [ebp - 0xe74]
push 0x402
push dword [ebp - 0xe60]
call edi
cmp dword [ebp - 0xe70], ebx
je 0x1007b8b
push dword [ebp - 0xe64]
push dword [ebp - 0xe74]
push dword [ebp - 0xe80]
call dword [ebp - 0xe70]
lea eax, [ebp - 0xeac]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x1007907
mov esi, dword [ebp + 0x28]
cmp dword [esi], ebx
jne 0x100790e
push ebx
push ebx
push ebx
push ebx
push dword [0x101a3b8]
call fcn.01014b73
test eax, eax
jne 0x1007bda
mov edi, dword [ebp - 0xe5c]
cmp edi, ebx
je 0x1007c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x1007c63
cmp dword [esi], ebx
jne 0x100790e
cmp dword [ebp - 0xe60], ebx
je 0x1007c1d
movzx eax, word [ebp - 0xe64]
shl eax, 0x10
push eax
push ebx
push 0x401
push dword [ebp - 0xe60]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push ebx
push dword [ebp - 0xe64]
push 0x402
push dword [ebp - 0xe60]
call esi
cmp dword [ebp - 0xe70], ebx
je 0x1007c6d
push dword [ebp - 0xe64]
push dword [ebp - 0xe64]
push dword [ebp - 0xe80]
call dword [ebp - 0xe70]
jmp 0x1007c6d
mov esi, dword [ebp - 0xe5c]
cmp esi, ebx
je 0x1007c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x1007c63
mov eax, dword [ebp - 0xe5c]
cmp eax, ebx
je 0x1007c63
mov dword [eax], 0x54f
mov dword [ebp - 0xe58], 0x80004005
or dword [ebp - 4], 0xffffffff
call fcn.01007cb3
mov esi, dword [ebp - 0xe94]
cmp esi, ebx
je 0x1007cc2
cmp dword [ebp - 0xe58], ebx
jge 0x1007cb4
cmp dword [ebp - 0xe58], 0x80004004
je 0x1007cb4
mov eax, dword [ebp - 0xe5c]
push dword [eax]
push dword [ebp - 0xe90]
push esi
call fcn.010072c3
push ebx
push ebx
push 0x8002
jmp 0x1007cbb
push ebx
push ebx
push 0x8001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xe58]
jmp 0x1007ccf
mov eax, 0x80004005
mov ecx, dword [ebp - 0x1c]
call fcn.01012bde
call fcn.01012fd7
ret 0x28