Function at 0x10001707
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe18
push ebx
push esi
push edi
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x118]
push 0x10001134
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
mov edi, 0xf003f
push eax
push edi
push 0
mov esi, 0x80000002
push 0x100010fc
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001904
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x118]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x100010f4
lea eax, [ebp - 0x618]
push 0x100010e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push edi
push eax
push 0x10002280
push eax
lea eax, [ebp - 0x618]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 8]
call ebx
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x618]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x118]
push 8
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
push dword [ebp - 8]
call ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x618]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001904
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x800
push eax
lea eax, [ebp - 0xe18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100010e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x10001854
push dword [ebp - 4]
call ebx
and byte [ebp - 0x218], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x217]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x218]
push eax
call edi
and byte [ebp + eax - 0x217], 0
lea eax, [ebp - 0x218]
push eax
call edi
inc eax
inc eax
push eax
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0xc]
lea eax, [ebp + eax - 0xe19]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call edi
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 1]
push eax
lea eax, [ebp - 0xe18]
push eax
push 7
push 0
push 0x100010e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x618]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10001908
xor eax, eax
jmp 0x10001980
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x118]
push eax
call edi
lea eax, [ebp - 0x118]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
push dword [ebp - 4]
call ebx
xor eax, eax
push 3
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x618]
push eax
push esi
call fcn.100013a0
add esp, 0x1c
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x100010fc
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x118]
push 8
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
push dword [ebp - 8]
call ebx
lea eax, [ebp - 0x118]
push eax
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret