Function at 0x4a8e70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ece9c
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x58bd90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SoftwareMONOGRAMMONOGRAM_GraphStudio
lea ecx, [ebp - 0x14]
call fcn.00401830
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push edx
push SysReAllocStringLen
mov dword [ebp - 0x1c], esi
call edi
cmp eax, esi
jne 0x4a8f51
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], esi
push 0x5318ec
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
call fcn.00410870
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x4a8f0a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], esi
push 0xa
push 0x531950
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x34], esi
call fcn.00402220
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
cmp ebx, esi
je 0x4a8fd3
cmp dword [ebx], esi
je 0x4a8fc7
push 0x5504f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, esi
jne 0x4a8f95
mov eax, 1
jmp 0x4a8fec
mov byte [ebp - 4], 0
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a8f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4a8fcc
mov ecx, dword [ebx]
push esi
push ecx
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push edx
push SysReAllocStringLen
call eax
jmp 0x4a8fec
cmp dword [ebx + 4], esi
jne 0x4a8fd3
mov eax, 1
jmp 0x4a8fec
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
push esi
push 0x2001f
push esi
push esi
push esi
push eax
push SysReAllocStringLen
call edi
cmp eax, esi
jne 0x4a9013
mov ecx, dword [ebp - 0x38]
xor eax, eax
cmp ecx, esi
je 0x4a9003
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], esi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], esi
cmp eax, esi
je 0x4a904a
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x4a9028
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4a8f72
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0xc], esi
jg 0x4a90e3
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp dword [ebx + 0x20], esi
jle 0x4a90bc
cmp ecx, esi
jl 0x4a924d
cmp ecx, dword [ebx + 0x20]
jge 0x4a924d
mov edx, dword [ebx + 0x1c]
lea eax, [edx + ecx*4]
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
xor eax, eax
cmp edi, esi
setne al
cmp eax, esi
je 0x4a90b3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x28]
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x10]
push ecx
push edi
push 1
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, dword [ebx + 0x20]
jl 0x4a9065
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x4a9252
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x38], eax
jmp 0x4a9255
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jl 0x4a924d
cmp eax, dword [ebx + 0xc]
jge 0x4a924d
mov ecx, dword [ebx + 8]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
push str.Favorites
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00405940
mov byte [ebp - 4], 4
lea ebx, [edi + 8]
push ebx
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00405880
add esp, 0x18
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a9147
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 8
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x4a91f8
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], esi
cmp dword [edi + 0x14], esi
jle 0x4a91e7
lea esp, [esp]
cmp ebx, esi
jl 0x4a924d
cmp ebx, dword [edi + 0x14]
jge 0x4a924d
mov ecx, dword [edi + 0x10]
lea eax, [ecx + ebx*4]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edx, dword [eax + 0xc]
xor eax, eax
test esi, esi
setne al
mov dword [ebp - 0x24], edx
test eax, eax
je 0x4a91dc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc ebx
xor esi, esi
cmp ebx, dword [edi + 0x14]
jl 0x4a9190
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x4a91f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x44]
cmp eax, esi
je 0x4a920d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 0x1c], eax
mov ebx, ecx
cmp eax, dword [ecx + 0xc]
jl 0x4a90e0
jmp 0x4a905b
call fcn.0041d34a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 0
cmp eax, esi
je 0x4a926a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4