Function at 0x104b265
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1058f65
call fcn.01022092
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call fcn.010155dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.010155dc
mov byte [ebp - 4], 2
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x104b460
cmp dword [ebp + 0x14], ebx
je 0x104b460
mov esi, 0x80000000
push esi
push ebx
push ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x104b2c3
xor esi, esi
jmp 0x104b41a
push esi
lea ecx, [ebp + 8]
call fcn.01014f3a
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x104b3fa
call dword [fcn.0100131c]
cmp eax, 0x424
jne 0x104b3f6
mov eax, dword [ebp + 0xc]
push 0x1012778
lea ecx, [ebp + 0xc]
mov dword [eax], 1
call fcn.01016a0f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.010151a6
push dword [0x10645d4]
lea ecx, [ebp - 0x1c]
call fcn.01016a0f
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.010151a6
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
lea ecx, [ebp - 0x14]
call fcn.01014f3a
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104b3f6
push dword [ebp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
push ebx
push dword [0x10645d8]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x104b3f6
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.010542e0
cmp eax, ebx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x104b3f6
push dword [ebp + 0x14]
push eax
push ebx
push ebx
push dword [0x10645d8]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x104b3f6
push dword [ebp - 0x10]
call dword [entry0]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.01014f3a
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push eax
push esi
call edi
test eax, eax
jne 0x104b3f6
lea ecx, [ebp - 0x18]
call fcn.01014f3a
push eax
push esi
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x104b402
xor esi, esi
jmp 0x104b402
mov eax, dword [ebp + 0xc]
xor esi, esi
inc esi
mov dword [eax], ebx
cmp dword [ebp - 0x20], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x104b412
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x24]
call edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x10], ebx
je 0x104b428
push dword [ebp - 0x10]
call dword [entry0]
cmp esi, ebx
jne 0x104b439
mov edi, dword [edi]
cmp edi, ebx
je 0x104b439
push edi
call fcn.010213c8
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, esi
jmp 0x104b485
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
xor eax, eax
call fcn.0102217e
ret 0x10