Function at 0x1013b67
Capabilities:
Check if file exists
Delete registry key
Delete registry value
Get common file path
Query or enumerate registry key
Set registry value

Disassembly:
push 0x64c
mov eax, 0x102b1d8
call fcn.01017f8b
xor ebx, ebx
push 0x100649c
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x64c], 0x104
mov dword [ebp - 0x650], ebx
call fcn.010135cf
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x628]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x644], ebx
call esi
test eax, eax
jl 0x1013c43
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x100642c
lea eax, [ebp - 0x628]
push eax
call edi
test eax, eax
je 0x1013c43
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1013c43
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jl 0x1013c43
push 0x10046e8
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x1013c43
push 0x1006464
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x1013c43
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0102836f
lea eax, [ebp - 0x630]
push eax
push 0x20019
push ebx
push 0x10063b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013f26
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1013f0c
mov esi, 0xf003f
inc dword [ebp - 0x650]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x648]
mov dword [ebp - 0x64c], 0x104
call fcn.010135cf
mov eax, dword [ebp - 0x640]
push dword [eax - 0xc]
lea eax, [ebp - 0x654]
push eax
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 1
call fcn.010120ef
push dword [ebp - 0x640]
mov edi, dword [ebp - 0x654]
push edi
mov byte [ebp - 4], 2
call fcn.0101798c
test eax, eax
pop ecx
pop ecx
je 0x1013cf9
lea ecx, [edi - 0x10]
jmp 0x1013eca
lea eax, [ebp - 0x638]
push eax
push esi
push ebx
lea eax, [ebp - 0x218]
push eax
mov edi, 0x80000003
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1013d52
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x630]
call fcn.010286e2
test eax, eax
jne 0x1013e63
lea eax, [ebp - 0x638]
push eax
push esi
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013e63
lea eax, [ebp - 0x62c]
push eax
push esi
push ebx
push 0x100638c
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013e63
lea eax, [ebp - 0x644]
push eax
xor edi, edi
inc edi
push edi
push ebx
push 0x1006370
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013e63
push ebx
lea eax, [ebp - 0x634]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x10046e8
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1013e63
push ebx
push dword [ebp - 0x634]
push 0x1006370
push dword [ebp - 0x62c]
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
push 0x1006370
push dword [ebp - 0x62c]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push ebx
lea eax, [ebp - 0x63c]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x1006368
push dword [ebp - 0x634]
mov dword [ebp - 0x63c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1013e33
push 4
lea eax, [ebp - 0x658]
push eax
push 4
push ebx
push 0x10064d4
push dword [ebp - 0x63c]
mov dword [ebp - 0x658], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x10064b0
push 0x1006360
push dword [ebp - 0x634]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp dword [ebp - 0x63c], ebx
je 0x1013e63
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x63c], ebx
cmp dword [ebp - 0x644], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1013e7f
push dword [ebp - 0x644]
call edi
mov dword [ebp - 0x644], ebx
cmp dword [ebp - 0x634], ebx
je 0x1013e95
push dword [ebp - 0x634]
call edi
mov dword [ebp - 0x634], ebx
cmp dword [ebp - 0x62c], ebx
je 0x1013eab
push dword [ebp - 0x62c]
call edi
mov dword [ebp - 0x62c], ebx
cmp dword [ebp - 0x638], ebx
je 0x1013ec1
push dword [ebp - 0x638]
call edi
mov dword [ebp - 0x638], ebx
mov ecx, dword [ebp - 0x654]
add ecx, 0xfffffff0
call fcn.0100fa45
mov ecx, dword [ebp - 0x648]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0100fa45
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x650]
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1013c94
cmp dword [ebp - 0x630], ebx
je 0x1013f26
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x630], ebx
mov ecx, dword [ebp - 0x640]
add ecx, 0xfffffff0
call fcn.0100fa45
call fcn.01017fdf
ret