Function at 0x4aa160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15f0
call fcn.004d5750
mov eax, dword [0x51cbc0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4aa5eb
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x20
jb 0x4aa5ea
push esi
push 0x400
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0x14f0], 1
push 0
push eax
mov dword [ebp - 0x14ec], 0x400
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14ec]
push eax
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x14f0]
push eax
push 0x4f76a8
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4aa2db
lea ecx, [ebp - 0x4e8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aa1f6
sub ecx, edx
cmp ecx, 0x40
jne 0x4aa2db
lea edx, [ecx + 0x40]
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x4e8]
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
lea eax, [edx - 0x60]
test eax, eax
je 0x4aa236
mov al, byte [ecx + esi]
test al, al
je 0x4aa236
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4aa220
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4c8]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x1570]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x4aa26f
mov al, byte [ecx + esi]
test al, al
je 0x4aa26f
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4aa256
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x4e8]
push eax
call sub.msvcrt.dll_memset
push 0x400
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004aa940
add esp, 0x18
lea eax, [ebp - 0x1570]
push eax
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4aa2db
lea eax, [ebp - 0x84]
push eax
push ebx
push edi
call fcn.004ab700
neg eax
sbb eax, eax
add eax, 1
jne 0x4aa5e9
push 0x1000
lea eax, [ebp - 0x14e8]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x522520
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x522748], 0
lea eax, [ebp - 0x14e8]
je 0x4aa33b
mov esi, 0x522748
mov edx, 0x1000
mov ecx, eax
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffeffe]
test eax, eax
je 0x4aa379
mov al, byte [ecx + esi]
test al, al
je 0x4aa379
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4aa320
jmp 0x4aa379
push 0x1000
push eax
call fcn.004ab7f0
add esp, 8
test eax, eax
je 0x4aa384
mov ecx, 0x522748
lea esi, [ebp - 0x14e8]
mov edx, 0x80
sub esi, ecx
nop
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x4aa379
mov al, byte [ecx + esi]
test al, al
je 0x4aa379
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4aa360
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x522520
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0xe8]
push 0x64
push eax
call fcn.004aaba0
add esp, 8
test eax, eax
jne 0x4aa3e3
lea eax, [ebp - 0xe8]
push 0x64
push eax
call fcn.004aadb0
add esp, 8
test eax, eax
jne 0x4aa3e3
lea eax, [ebp - 0xe8]
push 0x64
push eax
call fcn.004ab2f0
add esp, 8
test eax, eax
jne 0x4aa3e3
lea eax, [ebp - 0xe8]
push 0x64
push eax
call fcn.004ab060
add esp, 8
test eax, eax
je 0x4aa42f
lea ecx, [ebp - 0xe8]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aa3f0
sub ecx, edx
je 0x4aa417
nop dword [eax + eax]
dec ecx
cmp byte [ebp + ecx - 0xe8], 0x20
jne 0x4aa417
mov byte [ebp + ecx - 0xe8], 0
test ecx, ecx
jne 0x4aa400
lea eax, [ebp - 0xe8]
push eax
push 0x1000
lea eax, [ebp - 0x14e8]
push eax
call fcn.004ab650
lea eax, [ebp - 0xe8]
push 0x64
push eax
call fcn.004aa600
add esp, 8
test eax, eax
jne 0x4aa565
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x15f0]
mov byte [ebp - 0x44], 0x37
mov dword [ebp - 0x40], eax
mov eax, 0x100
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x44]
push eax
call fcn.004aaaa0
add esp, 0x10
test al, al
jne 0x4aa57d
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.msvcrt.dll_memset
mov bl, byte [ebp - 0x15ef]
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 0x44], 0x32
mov byte [ebp - 0x14], bl
call fcn.004aaaa0
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.msvcrt.dll_memset
lea ecx, [ebp - 0x3a]
mov byte [ebp - 0x44], 0x33
mov esi, 0x502638
mov byte [ebp - 0x14], bl
mov eax, ecx
add esp, 0x1c
mov edx, 0x10
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffffee]
test eax, eax
je 0x4aa4e9
mov al, byte [esi + ecx]
test al, al
je 0x4aa4e9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4aa4d0
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
mov eax, 0x258
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x40], 0x5222c8
call fcn.004aaaa0
add esp, 4
test al, al
jne 0x4aa57d
movzx eax, byte [0x5222cd]
push eax
movzx eax, byte [0x5222cc]
push eax
movzx eax, byte [0x5222cb]
push eax
movzx eax, byte [0x5222ca]
push eax
movzx eax, byte [0x5222c9]
push eax
movzx eax, byte [0x5222c8]
push eax
push str._02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0xe8]
push 0x64
push eax
call fcn.004129d0
xor ecx, ecx
add esp, 0x24
test eax, eax
setns cl
test ecx, ecx
je 0x4aa57d
lea eax, [ebp - 0xe8]
push eax
push 0x1000
lea eax, [ebp - 0x14e8]
push eax
call fcn.004ab650
xor esi, esi
cmp byte [ebp - 0x14e8], 0
jne 0x4aa5c9
lea ecx, [ebp - 0x14e8]
mov esi, str.Mid2Failed
mov eax, ecx
mov edx, 0x1000
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffeffe]
test eax, eax
je 0x4aa5b9
mov al, byte [esi + ecx]
test al, al
je 0x4aa5b9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4aa5a0
test edx, edx
lea eax, [ecx - 1]
mov esi, 1
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x14e8]
push edi
push eax
call fcn.004aa940
add esp, 0xc
test esi, esi
jne 0x4aa5e9
push edi
call fcn.004ab470
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004d55dc
mov esp, ebp
pop ebp
ret