Function at 0x104a250
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x34
mov eax, 0x105918e
call fcn.01021eb9
xor ebx, ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
call fcn.01014c71
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x20]
call fcn.010151da
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
mov esi, SysReAllocString
push esi
push ebx
push ebx
mov dword [eax], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x104a2b9
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
jne 0x104a2f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x104a305
cmp dword [ebp - 0x14], ebx
je 0x104a2c7
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], ebx
je 0x104a2d5
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.01014fbc
mov eax, dword [ebp - 0x28]
call fcn.01021fa5
ret 0x14
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [0x1064698]
lea ecx, [ebp - 0x24]
call fcn.010161a7
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.010360f6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.01015174
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x104a2b9
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [0x106469c]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call esi
cmp eax, ebx
je 0x104a394
cmp eax, 2
jne 0x104a2b9
cmp dword [ebp - 0x18], ebx
je 0x104a3ee
push dword [0x10646a0]
lea ecx, [ebp - 0x40]
call fcn.01037176
jmp 0x104a3ee
cmp dword [ebp - 0x18], ebx
je 0x104a3ee
cmp dword [ebp - 0x10], ebx
je 0x104a3ee
add dword [ebp - 0x10], 4
push dword [ebp - 0x10]
call fcn.01054617
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x104a2b9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ecx], eax
push ebx
push dword [edi]
call fcn.010219e0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [edi]
push ebx
push ebx
push dword [0x106469c]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x104a2b9
push dword [edi]
lea ecx, [ebp - 0x40]
call fcn.0103c474
mov esi, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
call fcn.010151f2
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.010378c2
cmp eax, ebx
je 0x104a473
mov eax, dword [ebp - 0x40]
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x104a429
push 0x80004005
call fcn.01014415
add eax, 8
push eax
lea ecx, [ebp + 0xc]
call fcn.010151f2
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0101492b
test eax, eax
je 0x104a453
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 0xc]
push eax
call fcn.01015959
mov eax, dword [ebp + 0x14]
push dword [ebp - 0x14]
mov dword [eax], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.01015174
jmp 0x104a4cb
push dword [esi]
lea ecx, [ebp - 0x40]
call fcn.01037176
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
call fcn.01035d59
mov esi, eax
cmp esi, ebx
je 0x104a2b9
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
push esi
push 7
push ebx
push dword [0x106469c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
test eax, eax
je 0x104a4bc
call fcn.01021179
pop ecx
jmp 0x104a2b9
call fcn.01021179
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 1
jmp 0x104a2c7