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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1670
call fcn.004a7f60
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4a9727
cmp ebx, 0x20
jb 0x4a9727
push edi
push 0x400
lea eax, [ebp - 0x568]
mov dword [ebp - 0x1570], 1
push 0
push eax
mov dword [ebp - 0x156c], 0x400
call fcn.004ac800
add esp, 0xc
lea eax, [ebp - 0x156c]
push eax
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x1570]
push eax
push 0x4e5af8
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4a92ab
lea ecx, [ebp - 0x568]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a91c6
sub ecx, edx
cmp ecx, 0x40
jne 0x4a92ab
lea edx, [ecx + 0x40]
lea ecx, [ebp - 0xe8]
lea edi, [ebp - 0x568]
mov eax, ecx
sub edi, eax
nop dword [eax + eax]
lea eax, [edx - 0x60]
test eax, eax
je 0x4a9206
mov al, byte [edi + ecx]
test al, al
je 0x4a9206
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a91f0
test edx, edx
lea eax, [ecx - 1]
lea edi, [ebp - 0x548]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x15f0]
mov byte [eax], 0
mov eax, ecx
sub edi, eax
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x4a923f
mov al, byte [edi + ecx]
test al, al
je 0x4a923f
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a9226
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x568]
push eax
call fcn.004ac800
push 0x400
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.004a9a80
add esp, 0x18
lea eax, [ebp - 0x15f0]
push eax
lea eax, [ebp - 0x568]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4a92ab
lea eax, [ebp - 0xe8]
push eax
push ebx
push esi
call fcn.0048fe40
neg eax
sbb eax, eax
add eax, 1
jne 0x4a9726
push 0x1000
lea eax, [ebp - 0x1568]
push 0
push eax
call fcn.004ac800
add esp, 0xc
push 0x529098
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x5292c0], 0
lea eax, [ebp - 0x1568]
je 0x4a930b
mov edi, 0x5292c0
mov edx, 0x1000
mov ecx, eax
sub edi, eax
nop dword [eax]
lea eax, [edx + 0x7fffeffe]
test eax, eax
je 0x4a9349
mov al, byte [edi + ecx]
test al, al
je 0x4a9349
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a92f0
jmp 0x4a9349
push 0x1000
push eax
call fcn.004aa560
add esp, 8
test eax, eax
je 0x4a9354
mov ecx, 0x5292c0
lea edi, [ebp - 0x1568]
mov edx, 0x80
sub edi, ecx
nop
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x4a9349
mov al, byte [edi + ecx]
test al, al
je 0x4a9349
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a9330
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x529098
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.004a9ce0
add esp, 8
test eax, eax
jne 0x4a93a7
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.004a9ee0
add esp, 8
test eax, eax
jne 0x4a93a7
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.004aa3e0
add esp, 8
test eax, eax
jne 0x4a93a7
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.004aa180
add esp, 8
test eax, eax
je 0x4a93e6
lea ecx, [ebp - 0x68]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a93b0
sub ecx, edx
je 0x4a93d1
nop dword [eax + eax]
dec ecx
cmp byte [ebp + ecx - 0x68], 0x20
jne 0x4a93d1
mov byte [ebp + ecx - 0x68], 0
test ecx, ecx
jne 0x4a93c0
lea eax, [ebp - 0x68]
push eax
push 0x1000
lea eax, [ebp - 0x1568]
push eax
call fcn.0048fd90
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.004a9740
add esp, 8
test eax, eax
jne 0x4a953b
push 0x40
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004ac800
lea eax, [ebp - 0x1670]
mov byte [ebp - 0xa8], 0x37
mov dword [ebp - 0xa4], eax
mov eax, 0x100
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0xa8]
push eax
call fcn.004a9be0
add esp, 0x10
test al, al
jne 0x4a9550
push 0x40
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004ac800
mov bl, byte [ebp - 0x166f]
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 0xa8], 0x32
mov byte [ebp - 0x78], bl
call fcn.004a9be0
push 0x40
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004ac800
lea ecx, [ebp - 0x9e]
mov byte [ebp - 0xa8], 0x33
mov edi, 0x4eac80
mov byte [ebp - 0x78], bl
mov eax, ecx
add esp, 0x1c
mov edx, 0x10
sub edi, eax
nop
lea eax, [edx + 0x7fffffee]
test eax, eax
je 0x4a94b9
mov al, byte [edi + ecx]
test al, al
je 0x4a94b9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a94a0
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
mov eax, 0x258
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa4], 0x528e40
call fcn.004a9be0
add esp, 4
test al, al
jne 0x4a9550
movzx eax, byte [0x528e45]
push eax
movzx eax, byte [0x528e44]
push eax
movzx eax, byte [0x528e43]
push eax
movzx eax, byte [0x528e42]
push eax
movzx eax, byte [0x528e41]
push eax
movzx eax, byte [0x528e40]
push eax
push str._02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.00488550
xor ecx, ecx
add esp, 0x24
test eax, eax
setns cl
test ecx, ecx
je 0x4a9550
lea eax, [ebp - 0x68]
push eax
push 0x1000
lea eax, [ebp - 0x1568]
push eax
call fcn.0048fd90
cmp byte [ebp - 0x1568], 0
jne 0x4a95b9
lea ecx, [ebp - 0x1568]
mov edi, str.Mid2Failed
mov eax, ecx
mov edx, 0x1000
sub edi, eax
nop dword [eax]
lea eax, [edx + 0x7fffeffe]
test eax, eax
je 0x4a9589
mov al, byte [edi + ecx]
test al, al
je 0x4a9589
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a9570
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1568]
push esi
push eax
call fcn.004a9a80
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1568]
push esi
push eax
call fcn.004a9a80
push 0x80
lea eax, [ebp - 0x15f0]
push 0
push eax
call fcn.004ac800
push 0x80
lea eax, [ebp - 0x15f0]
push eax
push esi
call fcn.004a9a80
lea ecx, [ebp - 0x26c]
mov edi, esi
mov eax, ecx
add esp, 0x24
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4a961c
mov al, byte [edi + ecx]
test al, al
je 0x4a961c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a9603
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
lea eax, [ebp - 0x15f0]
push eax
push 0x104
lea eax, [ebp - 0x26c]
push eax
call fcn.0048fd90
push 0x100
lea eax, [ebp - 0x168]
mov dword [ebp - 0x156c], 1
push 0
push eax
call fcn.004ac800
add esp, 0xc
mov dword [ebp - 0x1570], 0x100
lea eax, [ebp - 0x1570]
push eax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x156c]
push eax
push 0x4e5af8
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x4a96f9
lea eax, [ebp - 0x168]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4a96c3
test cl, cl
je 0x4a96bf
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4a96c3
add eax, 2
add esi, 2
test cl, cl
jne 0x4a96a3
xor eax, eax
jmp 0x4a96c8
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a96f9
lea ecx, [ebp - 0x168]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a96d5
sub ecx, edx
lea eax, [ebp - 0x168]
push ecx
push eax
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x26c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a9702
sub ecx, edx
lea eax, [ebp - 0x26c]
push ecx
push eax
push 1
push 0x4e5af8
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret