Function at 0x1036699
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 8
mov eax, 0x1055aea
call fcn.01022092
mov dword [ebp - 4], 4
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp dword [eax - 0xc], ebx
je 0x1036856
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x1036856
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x1036856
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
push 0x100ade8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10366fd
xor edi, edi
jmp 0x10367e5
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x10366f6
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0x10]
call fcn.01014f3a
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
xor edi, edi
inc edi
push edi
push ebx
push 0x100adc8
push dword [ebp - 0x10]
call esi
cmp eax, ebx
jne 0x10366f6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0xc]
call fcn.01014f3a
push eax
push edi
push ebx
push 0x100adb0
push dword [ebp - 0x10]
call esi
cmp eax, ebx
jne 0x10366f6
push 0x100ada8
lea ecx, [ebp + 0x14]
call fcn.01015ced
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0x14]
call fcn.01014f3a
push eax
push 2
push ebx
push 0x100ad90
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 0x18]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x10367c1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0x18]
call fcn.01014f3a
push eax
push edi
push ebx
push 0x100ad70
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x10367e5
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0x1c]
call fcn.01014f3a
push eax
push edi
push ebx
push 0x100ad5c
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10367f8
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x1036817
cmp edi, ebx
jne 0x103680f
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.010151a6
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.010151a6
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x14]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x18]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.010151a6
mov eax, edi
jmp 0x1036893
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.010151a6
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.010151a6
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x14]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x18]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.010151a6
xor eax, eax
call fcn.0102217e
ret 0x18