Function at 0x4a9c40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1353
mov eax, dword fs:[0]
push eax
mov eax, 0x1894
call fcn.00459d20
mov eax, dword [0x58bd90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1888], esi
call fcn.004a7a10
push str.SoftwareMONOGRAMMONOGRAM_GraphStudioFavorites
lea ecx, [ebp - 0x1830]
call fcn.00401830
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1874], edi
mov dword [ebp - 0x1870], edi
mov dword [ebp - 0x186c], edi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1830]
lea eax, [ebp - 0x1824]
push eax
push 0x2001f
push edi
push ecx
push SysReAllocStringLen
mov dword [ebp - 0x1824], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4a9f10
mov ebx, dword [ebp - 0x1824]
push 0x7fe
lea edx, [ebp - 0x100e]
xor ecx, ecx
push edi
mov dword [ebp - 0x1870], edi
push edx
mov dword [ebp - 0x1874], ebx
mov dword [ebp - 0x1870], edi
mov word [ebp - 0x1010], cx
call fcn.004576e0
add esp, 0xc
lea eax, [ebp - 0x189c]
push eax
lea ecx, [ebp - 0x1878]
push ecx
lea edx, [ebp - 0x1880]
push edx
lea eax, [ebp - 0x1884]
push eax
lea ecx, [ebp - 0x1820]
push ecx
lea edx, [ebp - 0x1864]
push edx
lea eax, [ebp - 0x1868]
push eax
lea ecx, [ebp - 0x1838]
push ecx
push edi
lea edx, [ebp - 0x1860]
push edx
lea eax, [ebp - 0x1010]
push eax
push ebx
mov dword [ebp - 0x1860], 0x400
mov dword [ebp - 0x1838], edi
mov dword [ebp - 0x1820], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
mov dword [ebp - 0x1818], esi
cmp dword [ebp - 0x1838], edi
jbe 0x4aa302
jmp 0x4a9d90
push 0x400
lea ecx, [ebp - 0x810]
push ecx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x4aa2ef
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x1894]
call fcn.00401830
mov ebx, eax
mov byte [ebp - 4], 3
push 0x5318e0
lea eax, [ebp - 0x1830]
push eax
lea ecx, [ebp - 0x1890]
push ecx
call fcn.00405940
mov byte [ebp - 4], 4
push ebx
push eax
lea edx, [ebp - 0x187c]
push edx
call fcn.00405880
add esp, 0x18
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1890]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9e17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1894]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9e3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov dword [ebp - 0x1850], ebx
mov dword [ebp - 0x184c], edi
mov dword [ebp - 0x1848], edi
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x187c]
lea ecx, [ebp - 0x1834]
push ecx
push 0x2001f
push edi
push edx
push SysReAllocStringLen
mov dword [ebp - 0x1834], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4aa2a8
mov eax, dword [ebp - 0x1834]
lea ecx, [ebp - 0x189c]
push ecx
lea edx, [ebp - 0x1878]
push edx
lea ecx, [ebp - 0x1880]
push ecx
lea edx, [ebp - 0x1884]
push edx
lea ecx, [ebp - 0x1820]
push ecx
lea edx, [ebp - 0x1864]
push edx
lea ecx, [ebp - 0x1868]
push ecx
lea edx, [ebp - 0x188c]
push edx
push edi
lea ecx, [ebp - 0x1860]
push ecx
lea edx, [ebp - 0x1010]
push edx
mov dword [ebp - 0x184c], edi
push eax
mov dword [ebp - 0x1850], eax
mov dword [ebp - 0x184c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push 0x24
call fcn.00415ec5
add esp, 4
mov dword [ebp - 0x182c], eax
mov byte [ebp - 4], 0xb
cmp eax, edi
je 0x4a9f4b
push eax
call fcn.004a92b0
mov ebx, eax
mov dword [ebp - 0x181c], eax
jmp 0x4a9f53
mov byte [ebp - 4], 0
mov dword [ebp - 0x1870], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1830]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a9f43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x4aa72b
xor ebx, ebx
mov dword [ebp - 0x181c], ebx
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1858]
call fcn.00401830
mov byte [ebp - 4], 0xc
lea ecx, [ebx + 8]
push eax
call fcn.00402150
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x1858]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9f9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x1888]
mov ebx, dword [esi + 0xc]
add esi, 4
cmp ebx, edi
jl 0x4aa43e
lea edi, [ebx + 1]
call fcn.004047b0
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x181c]
xor edi, edi
mov dword [ecx + ebx*4], edx
mov dword [ebp - 0x1828], edi
cmp dword [ebp - 0x1820], edi
jbe 0x4aa275
mov ebx, 0x400
mov edx, dword [ebp - 0x1834]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x185c]
push eax
lea ecx, [ebp - 0x810]
push ecx
push edi
push edx
mov dword [ebp - 0x185c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4aa262
call fcn.0041d9cc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4aa443
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1814], eax
mov byte [ebp - 4], 0xf
call fcn.0041d9cc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4aa443
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1840], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x1844]
call fcn.00401830
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x1814]
call fcn.00402150
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x1844]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aa0ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x1814]
mov ecx, 0x5318e4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4aa0de
test dx, dx
je 0x4aa0da
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4aa0de
add eax, 4
add ecx, 4
test dx, dx
jne 0x4aa0b8
xor eax, eax
jmp 0x4aa0e3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4aa21c
lea ecx, [ebp - 0x185c]
push ecx
lea edx, [ebp - 0x1810]
push edx
push esi
lea ecx, [ebp - 0x1850]
mov dword [ebp - 0x185c], ebx
call fcn.00410b10
test eax, eax
jne 0x4aa21c
push 0x18
call fcn.00415ec5
add esp, 4
mov dword [ebp - 0x182c], eax
mov byte [ebp - 4], 0x14
test eax, eax
je 0x4aa13a
push eax
call fcn.004a9340
mov ebx, eax
jmp 0x4aa13c
xor ebx, ebx
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x1810]
push eax
lea ecx, [ebp - 0x183c]
call fcn.00401830
mov byte [ebp - 4], 0x15
lea ecx, [ebx + 8]
push eax
call fcn.00402150
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x183c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1814]
add eax, 0xfffffff0
push eax
call fcn.00402370
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x1854], esi
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x1854]
lea ecx, [ebx + 0xc]
push edx
call fcn.00402150
mov byte [ebp - 4], 0x11
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa1d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x181c]
lea esi, [eax + 0xc]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x182c], eax
test eax, eax
js 0x4aa43e
mov edi, eax
inc edi
call fcn.004047b0
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x182c]
mov esi, dword [ebp - 0x1814]
mov edi, dword [ebp - 0x1828]
mov dword [ecx + edx*4], ebx
mov ebx, 0x400
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x1840]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa242
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa262
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
mov dword [ebp - 0x1828], edi
cmp edi, dword [ebp - 0x1820]
jb 0x4a9fdd
mov eax, dword [ebp - 0x1834]
test eax, eax
je 0x4aa290
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1850], 0
mov ebx, dword [ebp - 0x1850]
mov esi, dword [ebp - 0x1818]
mov dword [ebp - 0x184c], 0
xor edi, edi
mov byte [ebp - 4], 8
cmp ebx, edi
je 0x4aa2bd
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1850], edi
mov dword [ebp - 0x184c], edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x187c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa2e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x1824]
inc esi
mov dword [ebp - 0x1818], esi
cmp esi, dword [ebp - 0x1838]
jb 0x4a9d90
lea ecx, [ebp - 0x189c]
push ecx
lea edx, [ebp - 0x1878]
push edx
lea eax, [ebp - 0x1880]
push eax
lea ecx, [ebp - 0x1884]
push ecx
lea edx, [ebp - 0x1820]
push edx
lea eax, [ebp - 0x1864]
push eax
lea ecx, [ebp - 0x1868]
push ecx
lea edx, [ebp - 0x1838]
push edx
push edi
lea eax, [ebp - 0x1860]
push eax
lea ecx, [ebp - 0x1010]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor eax, eax
mov dword [ebp - 0x1828], eax
cmp dword [ebp - 0x1820], edi
jbe 0x4aa6e5
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x181c]
push edx
lea ecx, [ebp - 0x810]
push ecx
push eax
push ebx
mov dword [ebp - 0x181c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
jne 0x4aa6c6
call fcn.0041d9cc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x4aa443
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1814], ebx
mov byte [ebp - 4], 0x1e
call fcn.0041d9cc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x4aa443
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1858], eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x1840]
call fcn.00401830
mov byte [ebp - 4], 0x21
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x4aa463
cmp dword [esi + 0xc], edi
lea ebx, [esi + 0xc]
jl 0x4aa44d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4aa44d
push eax
call fcn.00402370
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4aa431
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebx, [edi + 0x10]
mov dword [ebp - 0x1814], ebx
xor edi, edi
jmp 0x4aa463
call fcn.0041d34a
push 0x80004005
call fcn.004016a0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1814]
call fcn.004016f0
mov ebx, dword [ebp - 0x1814]
mov byte [ebp - 4], 0x20
mov eax, dword [ebp - 0x1840]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa489
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, 0x5318e8
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4aa4b6
cmp dx, di
je 0x4aa4b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4aa4b6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4aa490
xor eax, eax
jmp 0x4aa4bb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
setne al
test al, al
je 0x4aa680
lea ecx, [ebp - 0x1818]
push ecx
mov ecx, dword [ebp - 0x1824]
lea edx, [ebp - 0x1810]
push edx
lea eax, [ebp - 0x1854]
push eax
push edi
push ebx
push ecx
mov dword [ebp - 0x1818], 0x800
mov dword [ebp - 0x181c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x4aa680
mov eax, dword [ebp - 0x1854]
cmp eax, 1
je 0x4aa518
cmp eax, 2
jne 0x4aa680
mov eax, dword [ebp - 0x1818]
cmp eax, edi
je 0x4aa53d
test al, 1
jne 0x4aa680
mov edx, eax
shr edx, 1
cmp word [ebp + edx*2 - 0x1812], di
je 0x4aa546
jmp 0x4aa680
xor ecx, ecx
mov word [ebp - 0x1810], cx
shr eax, 1
push 0x18
mov dword [ebp - 0x181c], eax
call fcn.00415ec5
mov esi, eax
add esp, 4
mov dword [ebp - 0x188c], esi
mov byte [ebp - 4], 0x23
cmp esi, edi
je 0x4aa5ac
xor edi, edi
push 0x54cf44
lea ecx, [esi + 8]
mov dword [esi], vtable.GraphStudio::FavoriteItem.0
mov dword [esi + 4], edi
call fcn.00401830
mov byte [ebp - 4], 0x25
push 0x531874
lea ecx, [esi + 0xc]
mov dword [esi], vtable.GraphStudio::FavoriteFilter.0
call fcn.00401830
mov byte [ebp - 4], 0x26
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 4], edi
mov byte [ebp - 4], 0x23
mov ebx, esi
jmp 0x4aa5b0
xor ebx, ebx
xor edi, edi
mov byte [ebp - 4], 0x20
lea edx, [ebp - 0x1810]
push edx
lea ecx, [ebp - 0x183c]
call fcn.00401830
mov byte [ebp - 4], 0x27
lea ecx, [ebx + 8]
push eax
call fcn.00402150
mov byte [ebp - 4], 0x20
mov eax, dword [ebp - 0x183c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa5f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1814]
add eax, 0xfffffff0
push eax
call fcn.00402370
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x1844], esi
mov byte [ebp - 4], 0x2a
lea edx, [ebp - 0x1844]
lea ecx, [ebx + 0xc]
push edx
call fcn.00402150
mov byte [ebp - 4], 0x20
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa647
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x1888]
add esi, 0x18
mov dword [ebx + 0x10], edi
mov eax, dword [esi + 8]
mov dword [ebp - 0x1818], eax
cmp eax, edi
jl 0x4aa43e
mov edi, eax
inc edi
call fcn.004047b0
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x1818]
mov dword [ecx + edx*4], ebx
mov ebx, dword [ebp - 0x1814]
xor edi, edi
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x1858]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa6a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa6c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1828]
mov ebx, dword [ebp - 0x1824]
inc eax
mov dword [ebp - 0x1828], eax
cmp eax, dword [ebp - 0x1820]
jb 0x4aa364
mov byte [ebp - 4], 0
cmp ebx, edi
je 0x4aa6fa
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1874], edi
mov dword [ebp - 0x1870], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1830]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa729
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045463b
mov esp, ebp
pop ebp
ret