Function at 0x104b7c0
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105ad88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 8], 5
jne 0x104b8d4
lea ecx, [ebp - 0x2c]
call fcn.01010bb7
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.010107dc
push eax
lea ecx, [ebp - 0x2c]
call fcn.010133e2
lea ecx, [ebp - 0x30]
call fcn.01039360
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0104cd70
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.01041990
mov ecx, eax
call fcn.01050520
test eax, eax
jne 0x104b888
mov edx, dword [ebp + 0xc]
push edx
push 0x100eeb0
push 3
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x48], 0x643
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.010395d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.01010c00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x48]
jmp 0x104bb2e
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.01041990
mov ecx, eax
call fcn.0104f4f0
cmp dword [ebp - 0x14], 0
je 0x104b8b7
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.010395d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.01010c00
jmp 0x104b981
cmp dword [ebp + 8], 9
jne 0x104b981
lea ecx, [ebp - 0x38]
call fcn.01039360
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0104cd70
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x38]
call fcn.01041990
mov ecx, eax
call fcn.01050ac0
test eax, eax
jne 0x104b946
mov ecx, dword [ebp + 0xc]
push ecx
push 0x100ede8
push 3
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x4c], 0x643
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.010395d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x4c]
jmp 0x104bb2e
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x34]
push edx
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x38]
call fcn.01041990
mov ecx, eax
call fcn.0104fec0
cmp dword [ebp - 0x34], 0
je 0x104b975
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.010395d0
cmp dword [ebp + 8], 5
je 0x104b991
cmp dword [ebp + 8], 9
jne 0x104ba87
lea ecx, [ebp - 0x3c]
call fcn.01010c62
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], 0
push 0x100dcd8
lea ecx, [ebp - 0x50]
call fcn.0101236d
mov byte [ebp - 4], 5
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.01025680
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.01010c92
lea edx, [ebp - 0x40]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x3c]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104ba1f
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x54]
jmp 0x104bb2e
push 0x100eddc
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x104ba71
cmp dword [ebp - 0x44], 2
je 0x104ba71
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x58]
jmp 0x104bb2e
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.01010c92
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea edx, [ebp + 0xc]
push edx
call fcn.01010eb5
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 6
mov byte [ebp - 4], 0
call fcn.0104bb50
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x104bb06
cmp dword [ebp + 8], 5
je 0x104bad0
cmp dword [ebp + 8], 9
jne 0x104baeb
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x60]
jmp 0x104bb2e
mov dword [ebp - 0x64], 0x643
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x64]
jmp 0x104bb2e
cmp dword [ebp - 0x10], 0
je 0x104bb15
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 1
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc