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

Disassembly:
push 8
mov eax, 0x1055f6b
call fcn.01021eb9
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 0x1036b30
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x1036b30
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x1036b30
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
push 0x100a718
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10369d7
xor edi, edi
jmp 0x1036abf
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 0x10369d0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0x10]
call fcn.01015002
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
xor edi, edi
inc edi
push edi
push ebx
push 0x100a6f4
push dword [ebp - 0x10]
call esi
cmp eax, ebx
jne 0x10369d0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0xc]
call fcn.01015002
push eax
push edi
push ebx
push 0x100a6dc
push dword [ebp - 0x10]
call esi
cmp eax, ebx
jne 0x10369d0
push 0x100a6d4
lea ecx, [ebp + 0x14]
call fcn.01018c3e
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0x14]
call fcn.01015002
push eax
push 2
push ebx
push 0x100a6bc
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 0x18]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x1036a9b
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0x18]
call fcn.01015002
push eax
push edi
push ebx
push 0x100a69c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x1036abf
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0x1c]
call fcn.01015002
push eax
push edi
push ebx
push 0x100a688
push dword [ebp - 0x10]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
je 0x1036ad2
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x1036af1
cmp edi, ebx
jne 0x1036ae9
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.01015174
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.01015174
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x14]
call fcn.01015174
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x18]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.01015174
mov eax, edi
jmp 0x1036b6d
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.01015174
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.01015174
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x14]
call fcn.01015174
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x18]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.01015174
xor eax, eax
call fcn.01021fa5
ret 0x18