Function at 0x1000a7e4
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [ebp + 8], 0x80000002
push esi
push edi
jne 0x1000a9ff
mov eax, dword [0x10039720]
cmp word [eax + 0x9c], 9
jne 0x1000a9ff
mov eax, dword [0x10039740]
xor edi, edi
cmp dword [eax + 0x6c], edi
je 0x1000aa01
mov esi, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x1000a9e1
cmp dword [eax + 0x60], edi
je 0x1000a9fa
cmp dword [eax + 0x64], edi
je 0x1000a9fa
push 0xcd4
call fcn.10012cce
cmp dword [ebp + 0x14], 4
pop ecx
mov dword [ebp + 8], eax
jne 0x1000a88c
mov ecx, dword [0x10039720]
add ecx, 0x1020
call fcn.1000adf7
mov ecx, dword [ebp + 8]
mov edx, eax
call fcn.1000adf7
mov ecx, dword [ebp + 0xc]
add edx, eax
call fcn.1000adf7
mov ecx, dword [ebp + 0x10]
add edx, eax
call fcn.1000adf7
lea esi, [edx + eax + 0x29]
jmp 0x1000a8d3
cmp dword [ebp + 0x14], 1
jne 0x1000a9e9
mov ecx, dword [0x10039720]
add ecx, 0x1020
call fcn.1000adf7
lea ecx, [esi + 0x28]
mov edx, eax
call fcn.1000adf7
mov ecx, dword [ebp + 8]
add edx, eax
call fcn.1000adf7
mov ecx, dword [ebp + 0xc]
add edx, eax
call fcn.1000adf7
mov ecx, dword [ebp + 0x10]
add edx, eax
call fcn.1000adf7
lea esi, [edx + eax + 1]
lea eax, [esi + esi + 2]
push eax
call fcn.1000ac58
mov ebx, eax
pop ecx
mov dword [ebp - 0x10], ebx
cmp ebx, edi
jne 0x1000a8ee
push 0xfffffffffffffffb
jmp 0x1000a9eb
push 0xd0e
call fcn.10012cce
mov ecx, dword [0x10039720]
add ecx, 0x1020
push ecx
push eax
push esi
push ebx
mov dword [ebp - 0x14], eax
call fcn.1000ce46
mov edi, eax
add esp, 0x14
test edi, edi
jle 0x1000a9ba
cmp dword [ebp + 0x14], 4
jne 0x1000a961
mov eax, dword [ebp + 0x18]
push dword [eax]
lea eax, [ebp - 0x98]
push 0x10036758
push 0x40
push eax
call fcn.1000ce46
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x10]
sub esi, edi
push str.REG_DWORD
push dword [ebp + 0xc]
lea eax, [ebx + edi*2]
push dword [ebp + 8]
push esi
push eax
call fcn.1000ce46
add esp, 0x2c
jmp 0x1000a981
push dword [ebp + 0x18]
sub esi, edi
push dword [ebp + 0x10]
lea eax, [ebx + edi*2]
push str.REG_SZ
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push eax
call fcn.1000ce46
add esp, 0x1c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x10039740]
call dword [eax + 0x60]
push 1
push 0x1388
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.1000baa0
add esp, 0x10
test eax, eax
jne 0x1000a9ac
mov dword [ebp - 4], 0xfffffff9
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x10039740]
call dword [eax + 0x64]
jmp 0x1000a9c1
mov dword [ebp - 4], 0xfffffffa
lea eax, [ebp - 0x10]
push 0xfffffffffffffffe
push eax
call fcn.1000ab81
lea eax, [ebp - 0x14]
push eax
call fcn.1000ba86
lea eax, [ebp + 8]
push eax
call fcn.1000ba86
add esp, 0x10
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret
push 0xfffffffffffffffc
lea eax, [ebp + 8]
pop esi
push eax
call fcn.1000ba86
pop ecx
mov eax, esi
jmp 0x1000a9e4
or eax, 0xffffffff
jmp 0x1000a9e4
xor edi, edi
lea eax, [ebp - 8]
push eax
push 2
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000aa1d
or eax, 0xffffffff
jmp 0x1000a9e5
cmp dword [ebp + 0x18], edi
je 0x1000aa4e
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000aa62
push 0xfffffffffffffffe
pop esi
push dword [ebp - 8]
mov eax, dword [0x1003974c]
call dword [eax + 0x1c]
mov eax, esi
jmp 0x1000a9e5
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1000aa62
push 0xfffffffffffffffd
jmp 0x1000aa3e
xor esi, esi
jmp 0x1000aa3f