Function at 0x104dc35
Capabilities:
Delete registry key

Disassembly:
push 0x2c
mov eax, 0x1059863
call fcn.01021eb9
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], 5
mov dword [edi], ebx
jne 0x104dd12
lea ecx, [ebp - 0x38]
call fcn.01014c71
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.010172fc
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0104b69e
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.01052149
test eax, eax
jne 0x104dcd2
push dword [ebp + 0xc]
push 0x1013238
push 3
call fcn.0103ac75
add esp, 0xc
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x104dcae
mov ecx, esi
call fcn.0101a986
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.01014fbc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01015174
mov eax, 0x643
call fcn.01021fa5
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.01051d4b
cmp dword [ebp - 0x14], ebx
je 0x104dcf0
mov dword [edi], 1
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x104dd02
mov ecx, esi
call fcn.0101a986
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.01014fbc
jmp 0x104dda7
cmp dword [ebp + 8], 9
jne 0x104de46
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.0104b69e
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.010517de
test eax, eax
jne 0x104dd78
push dword [ebp + 0xc]
push 0x1013170
push 3
call fcn.0103ac75
add esp, 0xc
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x104dd60
mov ecx, esi
call fcn.0101a986
mov dword [ebp - 0x10], ebx
mov ebx, 0x643
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01015174
mov eax, ebx
jmp 0x104dcca
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov dword [ebp - 0x18], ebx
call fcn.010512b9
cmp dword [ebp - 0x18], ebx
je 0x104dd96
mov dword [edi], 1
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x104dda7
mov ecx, esi
call fcn.0101a986
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
call fcn.010151da
mov byte [ebp - 4], 4
push 0x1012368
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
call fcn.010161a7
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.010360f6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.01015174
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 0x104de10
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.01015174
jmp 0x104dd65
push 0x1013164
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
je 0x104de32
cmp eax, 2
je 0x104de32
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x104de00
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.01015174
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.010151f2
mov byte [ebp - 4], 6
mov byte [ebp - 4], bl
call fcn.0104960e
cmp eax, ebx
jne 0x104de88
cmp dword [ebp + 8], 5
je 0x104dd65
cmp dword [ebp + 8], 9
jne 0x104dd60
jmp 0x104dd65
cmp dword [ebp - 0x1c], ebx
je 0x104dd65
mov dword [edi], 1
jmp 0x104dd65