Function at 0x1049ea4
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x2c
mov eax, 0x1058d75
call fcn.01022092
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
call fcn.0101526d
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
mov dword [eax], 1
call fcn.010155dc
mov byte [ebp - 4], 1
push dword [0x10645c8]
lea ecx, [ebp - 0x20]
call fcn.01016a0f
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.010151a6
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104a0e5
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [0x10645cc]
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
call edi
cmp eax, ebx
je 0x1049f4f
cmp eax, 2
jmp 0x104a12e
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.010542e0
cmp eax, ebx
pop ecx
mov dword [esi], eax
je 0x104a0e5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ecx], eax
push ebx
push dword [esi]
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [esi]
push ebx
push ebx
push dword [0x10645cc]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x104a0e5
push dword [esi]
lea ecx, [ebp - 0x38]
call fcn.0103c2bd
mov esi, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
call fcn.010157a2
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.010376c5
cmp eax, ebx
jne 0x1049fd0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x104a0aa
lea ecx, [ebp + 0xc]
call fcn.010155dc
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
call fcn.010155dc
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x38]
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.01014be7
push eax
lea ecx, [ebp + 0xc]
call fcn.01015b0a
push dword [esi]
lea ecx, [ebp + 0xc]
call fcn.01014f10
test eax, eax
lea ecx, [ebp - 0x38]
jne 0x104a087
lea eax, [ebp + 0xc]
push eax
call fcn.0103b4ad
cmp dword [ebp - 0x30], ebx
je 0x104a092
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push eax
call fcn.01049aa6
mov eax, dword [ebp - 0x38]
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.01014be7
push eax
lea ecx, [ebp + 8]
call fcn.01015b0a
push dword [0x10645d0]
lea ecx, [ebp + 8]
call fcn.01014f10
test eax, eax
jne 0x104a092
push dword [0x10645d0]
lea ecx, [ebp + 0x14]
call fcn.01016a0f
mov byte [ebp - 4], 6
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.0103b4ad
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x14]
call fcn.010151a6
jmp 0x104a092
push esi
call fcn.0103b4ad
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
call fcn.010151a6
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.010151a6
cmp dword [ebp - 0x30], ebx
je 0x104a11d
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.01035a81
mov esi, eax
cmp esi, ebx
je 0x104a0e5
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
push esi
push 7
push ebx
push dword [0x10645cc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push esi
je 0x104a115
call fcn.010213c8
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x104a0f3
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.01014fc6
mov eax, dword [ebp - 0x1c]
call fcn.0102217e
ret 0x14
call fcn.010213c8
pop ecx
jmp 0x104a130
push dword [0x10645cc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x104a0e5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 1
jmp 0x104a0f3