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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52415d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x53120c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push 0x200
push edi
push str.SoftwareVAIO_CorporationShared_InfoShared_Dlls
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x505e48
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], edi
push eax
push 0
push str.VAIUTILS.DLL
push edi
mov dword [ebp - 0x20], 0x200
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x505e48
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x505d33
cmp eax, 2
jne 0x505e48
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
shr eax, 1
push 0x531e28
mov dword [ebp - 0x10], eax
call fcn.00504cf0
push 0x5264a0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00504e60
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x505d8e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x505d65
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 1
push 0
push str.VAIUTILS.DLL
push edi
call eax
test edi, edi
je 0x505d9a
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x505dbd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x100
push 0
push str.SoftwareVAIO_CorporationShared_InfoShared_Dlls
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x505f84
test edi, edi
je 0x505df1
push edi
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x100
test eax, eax
jne 0x505f84
lea eax, [esi + esi]
xor esi, esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
push eax
push esi
push str.VAIUTILS.DLL
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x505e40
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x505f3e
cmp eax, 2
je 0x505f3e
mov dword [ebp - 0x14], esi
jmp 0x505f8b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push str.SoftwareVAIO_CorporationShared_InfoShared_Dlls
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
mov dword [ebp - 0x10], esi
test eax, eax
jne 0x505dc0
test edi, edi
je 0x505e88
push edi
call ebx
mov edi, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x200
mov dword [ebp - 0x10], esi
test eax, eax
jne 0x505dc0
push 0x531e28
lea ecx, [ebp - 0x14]
call fcn.00504cf0
push 0x5264a0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00504e60
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x505ef9
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x505ed0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 1
push 0
push str.VAIUTILS.DLL
push edi
call eax
test edi, edi
je 0x505f05
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x24], edi
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x505f37
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 0x10], esi
jmp 0x505dc0
xor esi, esi
jmp 0x505dc0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
shr eax, 1
push 0x531e28
mov dword [ebp - 0x10], eax
call fcn.00504cf0
push str.VaiUtils64.dll
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00504e60
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x506028
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x505f74
jmp 0x50600b
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.SoftwareVAIO_CorporationShared_InfoShared_Dlls
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x50605a
test edi, edi
je 0x505fbf
push edi
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x100
test eax, eax
jne 0x50605a
push 0x531e28
lea ecx, [ebp - 0x14]
call fcn.00504cf0
push str.VaiUtils64.dll
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00504e60
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x506028
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x506000
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.VAIUTILS.DLL
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x506034
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x24], edi
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov dword [ebp - 0x20], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x506057
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x200
push 0
push str.SoftwareVAIO_CorporationShared_InfoAppDBVAIO_Shared_Library
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5060d6
test edi, edi
je 0x506087
push edi
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x200
test eax, eax
jne 0x5060d6
lea eax, [esi + esi]
xor esi, esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
push eax
push esi
push str.appid
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5060c7
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x5060cc
cmp eax, 2
je 0x5060cc
mov dword [ebp - 0x14], esi
jmp 0x5060dd
mov esi, dword [ebp - 0x14]
shr esi, 1
mov dword [ebp - 0x10], esi
jmp 0x50611b
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push str.SoftwareVAIO_CorporationShared_InfoAppDBVAIO_Shared_Library
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x506170
test edi, edi
je 0x50610d
push edi
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x200
test eax, eax
jne 0x506170
push 0x2c
push str._VAIO_Shared_Library_
push 1
push 0
push str.appid
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x28
push 0x526598
push 1
push 0
push str.appname
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x18
push str.1.0.0.10200
push 1
push 0
push str.version
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x506169
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x100
push 0
push str.SoftwareVAIO_CorporationShared_InfoAppDBVAIO_Shared_Library
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5061ec
test edi, edi
je 0x50619d
push edi
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x100
test eax, eax
jne 0x5061ec
lea eax, [esi + esi]
xor esi, esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
push eax
push esi
push str.appid
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5061dd
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x5061e2
cmp eax, 2
je 0x5061e2
mov dword [ebp - 0x14], esi
jmp 0x5061f3
mov esi, dword [ebp - 0x14]
shr esi, 1
mov dword [ebp - 0x10], esi
jmp 0x506231
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.SoftwareVAIO_CorporationShared_InfoAppDBVAIO_Shared_Library
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x506286
test edi, edi
je 0x506223
push edi
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x100
test eax, eax
jne 0x506286
push 0x2c
push str._VAIO_Shared_Library_
push 1
push 0
push str.appid
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x28
push 0x526598
push 1
push 0
push str.appname
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x18
push str.1.0.0.10200
push 1
push 0
push str.version
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x50627f
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x200
push 0
push str.SoftwareVAIO_CorporationShared_InfoVersionPathVAIO_Shared_Library
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x506350
test edi, edi
je 0x5062b7
push edi
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x200
test eax, eax
jne 0x506350
lea eax, [esi + esi]
xor esi, esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
push eax
push esi
push str.version
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5062fe
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x506303
cmp eax, 2
je 0x506303
mov dword [ebp - 0x14], esi
jmp 0x506357
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
shr eax, 1
push 0x531e28
mov dword [ebp - 0x10], eax
call fcn.00504cf0
push str.Version.txt
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00504e60
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x5063f8
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x506340
jmp 0x5063db
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push str.SoftwareVAIO_CorporationShared_InfoVersionPathVAIO_Shared_Library
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x50642a
test edi, edi
je 0x50638b
push edi
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x200
test eax, eax
jne 0x50642a
push 0x531e28
lea ecx, [ebp - 0x14]
call fcn.00504cf0
push str.Version.txt
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00504e60
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x5063f8
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5063d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.version
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x506404
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x24], edi
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov dword [ebp - 0x20], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x506427
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x100
push 0
push str.SoftwareVAIO_CorporationShared_InfoVersionPathVAIO_Shared_Library
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5064e0
test edi, edi
je 0x50645b
push edi
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x100
test eax, eax
jne 0x5064e0
lea eax, [esi + esi]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push str.version
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5064e0
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x50649b
cmp eax, 2
jne 0x5064e0
push 0x531e28
lea ecx, [ebp - 0x14]
call fcn.00504cf0
push str.Version.txt
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00504e60
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x506588
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5064d0
jmp 0x50656b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.SoftwareVAIO_CorporationShared_InfoVersionPathVAIO_Shared_Library
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x5065b7
test edi, edi
je 0x50651b
push edi
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x100
test eax, eax
jne 0x5065b7
push 0x531e28
lea ecx, [ebp - 0x14]
call fcn.00504cf0
push str.Version.txt
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00504e60
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x506588
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x506560
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.version
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x506594
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x24], edi
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov dword [ebp - 0x20], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5065b7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x5065be
push edi
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret