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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov dword [ebp - 4], 0
mov ecx, dword [0x10649d4]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0101236d
mov byte [ebp - 4], 1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.01025680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.01010c92
lea edx, [ebp - 0x18]
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 0x104676f
cmp dword [ebp - 0x14], 2
je 0x1046758
mov eax, dword [ebp + 0xc]
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 - 0x1c], 0
jmp 0x10467cd
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0x100c440
push 1
call fcn.0102e650
add esp, 0xc
jmp 0x10467cd
cmp dword [ebp + 0x10], 0
jne 0x104677e
mov dword [ebp - 0x24], 1
jmp 0x10467cd
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 - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10467c6
mov eax, dword [ebp + 0xc]
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 - 0x1c], 0
jmp 0x10467cd
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x18], 0
je 0x10467dd
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], 0
je 0x10467f7
lea ecx, [ebp - 0x10]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 0x18], 0
je 0x1046911
lea ecx, [ebp - 0x28]
call fcn.01010c62
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ecx
push 2
mov ecx, dword [ebp + 8]
call fcn.0102ed60
test eax, eax
jne 0x1046846
push 0x1007b18
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.01010c92
jmp 0x1046911
lea edx, [ebp - 0x30]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.0102ecf0
test eax, eax
jne 0x1046883
mov eax, dword [ebp - 0x28]
push eax
push 0x1008468
push 3
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.01010c92
jmp 0x1046911
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x1007ac8
push 1
call fcn.0102e650
add esp, 0x10
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
je 0x10468b4
cmp dword [ebp - 0x3c], 1
jbe 0x10468de
cmp dword [ebp - 0x3c], 4
jbe 0x10468ca
jmp 0x10468de
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.01044bc0
mov dword [ebp - 0x2c], eax
jmp 0x10468de
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.010450d0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x10468fe
mov ecx, dword [ebp - 0x28]
push ecx
push 0x100da00
push 3
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.01010c92
cmp dword [ebp - 0x1c], 0
je 0x104691d
cmp dword [ebp - 0x20], 0
jne 0x1046926
mov dword [ebp - 0x14], 0x643
jmp 0x104692d
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18