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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], 1
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov dword [ebp - 4], 0
mov ecx, dword [0x10649d4]
push ecx
lea ecx, [ebp - 0x44]
call fcn.0101236d
mov byte [ebp - 4], 1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.01025680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.01010c92
lea edx, [ebp - 0x1c]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x10]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x104474f
cmp dword [ebp - 0x14], 2
je 0x1044738
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x100c508
push 3
call fcn.0102e650
add esp, 0x10
mov dword [ebp - 0x20], 0
jmp 0x10447ad
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x100c440
push 1
call fcn.0102e650
add esp, 0xc
jmp 0x10447ad
cmp dword [ebp + 0x10], 0
jne 0x104475e
mov dword [ebp - 0x40], 1
jmp 0x10447ad
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 7
push 0
mov ecx, dword [0x10649d8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10447a6
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x100c380
push 3
call fcn.0102e650
add esp, 0x10
mov dword [ebp - 0x20], 0
jmp 0x10447ad
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x1c], 0
je 0x10447bd
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x40], 0
je 0x10447d7
lea ecx, [ebp - 0x10]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x3c]
call fcn.01010bb7
mov byte [ebp - 4], 2
cmp dword [ebp + 0x10], 0
je 0x10447f5
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0102f1f0
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
mov edx, dword [ebp + 8]
push edx
call fcn.01010eb5
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.01045dc0
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x1044847
push 0x100c318
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x24], 0
jmp 0x104484e
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x20], 0
je 0x104485a
cmp dword [ebp - 0x24], 0
jne 0x1044863
mov dword [ebp - 0x14], 0x643
jmp 0x104486a
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.01010c00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14