Function at 0x4a0f2f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call fcn.0049f896
test al, al
je 0x4a0f65
pop ebx
pop ecx
pop edi
pop ebx
pop esp
pop edi
push eax
push eax
pop edi
push edx
pop eax
pop edx
pop esi
push esp
push ebx
pop ebx
pop ebp
push edx
pop esi
push ebp
pop ecx
pop ebp
push ecx
push esi
push ebx
call fcn.0049f48b
test al, al
je 0x4a0f85
push ebx
push esp
pop ebp
pop eax
pop ecx
pop eax
pop ebx
pop ebx
push edi
pop esi
push eax
pop ebp
push edx
pop esp
push ecx
push esi
pop ebp
pop esi
push esp
push edi
pop ecx
push ebp
pop ecx
call fcn.0049fa34
test al, al
je 0x4a0fa3
push ecx
pop edi
push esi
pop ecx
pop ebx
pop eax
pop ecx
push ecx
pop esp
pop eax
pop ecx
push ebp
push ebp
push ebx
push esi
pop esp
push esi
push edx
push esp
push esi
push edx
call fcn.0049f55a
test al, al
je 0x4a0fcb
pop edi
pop ecx
push esp
pop eax
push ecx
push esp
push ecx
push esp
push ebx
push esi
pop edi
pop esp
push esp
push edx
push ecx
push ecx
pop edi
push edx
push ebp
pop edi
pop eax
push ebp
push eax
pop ebx
pop edx
push ecx
push ebp
pop eax
pop esp
push esp
push esp
lea eax, [ebp - 0xc]
push eax
push 0xf013f
push 0
push str.SoftWare
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a116f
call fcn.0049f55a
test al, al
je 0x4a1008
push eax
pop ebx
pop edx
push edi
push edi
pop esp
pop esp
push esi
push esi
pop edx
push edx
pop ebx
push edx
push esi
push edi
push ebp
pop ebp
call fcn.0049fb48
test al, al
je 0x4a1031
pop eax
pop edx
pop ecx
pop ebx
pop edx
push ebx
pop ebp
pop edi
push esp
pop esp
push esp
push edi
pop edx
push edi
push ebx
pop edx
push edx
push edx
push edx
pop esi
push eax
push ebx
pop edx
push esi
pop esp
push ebp
push edi
pop edx
pop ebx
push edx
pop edx
push ebx
call fcn.0049f515
test al, al
je 0x4a104d
push edi
pop ecx
push edi
push ebp
pop ecx
push edx
pop edx
push esi
pop esi
pop ebp
pop edi
push ebx
push ecx
push esp
pop esp
pop esi
push edx
pop ebp
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4a107b
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a116f
call fcn.0049f851
test al, al
je 0x4a10a2
push edi
push edi
push ebp
pop edi
push esi
pop ebx
pop ecx
push ecx
push edi
push esp
pop ecx
pop esi
pop esp
push esi
pop esi
push ecx
push esi
pop edi
pop esi
pop ebp
push edx
push eax
pop edx
pop edx
push edi
push edx
push edi
push esi
pop ebp
pop esi
call fcn.0049fa79
test al, al
je 0x4a10bf
push esp
pop esp
push esp
pop edx
push edx
pop edi
pop edi
pop eax
push ebx
push ecx
pop ecx
push ebx
push ebx
pop edi
pop ebp
pop ebx
push ecx
push edi
pop ebp
push edi
call fcn.0049f9ef
test al, al
je 0x4a10e7
pop esi
pop esp
pop edi
push edx
push ecx
push edi
push edi
pop ecx
push eax
push ebx
push ebp
push eax
push eax
pop ebx
push esp
pop ecx
push esp
pop ecx
pop ebx
push esp
pop edx
pop edx
push ecx
pop edi
pop edi
push ebp
pop esi
pop esi
push ebx
pop eax
pop esi
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4a1117
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x4a116d
call fcn.0049fb03
test al, al
je 0x4a1136
push ecx
push esi
push edx
pop edx
push ecx
pop edi
push ecx
push esp
push edx
pop ecx
pop ebx
push esp
push esi
push eax
push ecx
push ebp
pop ebx
push esi
pop esp
push edi
pop esi
pop esi
push dword [ebp + 0x14]
call fcn.004b009e
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret