Function at 0x104d6b6
Capabilities:
Delete registry key

Disassembly:
push 0x2c
mov eax, 0x105941b
call fcn.01022092
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], 5
mov dword [edi], ebx
jne 0x104d793
lea ecx, [ebp - 0x38]
call fcn.0101526d
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.01017b73
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0104b138
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.01051ba1
test eax, eax
jne 0x104d753
push dword [ebp + 0xc]
push 0x1013648
push 3
call fcn.0103aac4
add esp, 0xc
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x104d72f
mov ecx, esi
call fcn.0101ab3d
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.01014fc6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.010151a6
mov eax, 0x643
call fcn.0102217e
ret 8
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.010517a4
cmp dword [ebp - 0x14], ebx
je 0x104d771
mov dword [edi], 1
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x104d783
mov ecx, esi
call fcn.0101ab3d
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.01014fc6
jmp 0x104d828
cmp dword [ebp + 8], 9
jne 0x104d8c7
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.0104b138
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.01051238
test eax, eax
jne 0x104d7f9
push dword [ebp + 0xc]
push 0x1013580
push 3
call fcn.0103aac4
add esp, 0xc
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x104d7e1
mov ecx, esi
call fcn.0101ab3d
mov dword [ebp - 0x10], ebx
mov ebx, 0x643
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.010151a6
mov eax, ebx
jmp 0x104d74b
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov dword [ebp - 0x18], ebx
call fcn.01050d14
cmp dword [ebp - 0x18], ebx
je 0x104d817
mov dword [edi], 1
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x104d828
mov ecx, esi
call fcn.0101ab3d
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
call fcn.010155dc
mov byte [ebp - 4], 4
push 0x1012778
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
call fcn.01016a0f
mov byte [ebp - 4], 5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.010151a6
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104d891
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.010151a6
jmp 0x104d7e6
push 0x1013574
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
je 0x104d8b3
cmp eax, 2
je 0x104d8b3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x104d881
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.010151a6
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 0x1c], ebx
call fcn.010157a2
mov byte [ebp - 4], 6
mov byte [ebp - 4], bl
call fcn.0104af64
cmp eax, ebx
jne 0x104d909
cmp dword [ebp + 8], 5
je 0x104d7e6
cmp dword [ebp + 8], 9
jne 0x104d7e1
jmp 0x104d7e6
cmp dword [ebp - 0x1c], ebx
je 0x104d7e6
mov dword [edi], 1
jmp 0x104d7e6