Function at 0x4815b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xc3c], ecx
xor eax, eax
mov word [ebp - 0xc10], ax
push 0x7fe
push 0
lea ecx, [ebp - 0xc0e]
push ecx
call fcn.004f8090
add esp, 0xc
mov dword [ebp - 0xc20], 0x800
mov dword [ebp - 8], 1
lea edx, [ebp - 0xc20]
push edx
lea eax, [ebp - 0xc10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x5498a0
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x481628
xor eax, eax
jmp 0x4818a7
push str.ShellOpencommand
lea edx, [ebp - 0xc10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0xc18], 3
lea eax, [ebp - 0xc10]
mov dword [ebp - 0xc14], eax
cmp dword [ebp - 0xc14], 0
jne 0x481668
mov dword [ebp - 0xc40], 0
jmp 0x481732
mov ecx, dword [ebp - 0xc14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x481693
mov dword [ebp - 0xc44], 0
jmp 0x481726
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0xc28], esp
mov edx, dword [ebp - 0xc2c]
mov dword [ebp - 0xc44], edx
cmp dword [ebp - 0xc28], 0
je 0x4816c1
cmp dword [ebp - 0xc14], 0
jne 0x4816cd
mov dword [ebp - 0xc44], 0
jmp 0x481726
mov eax, dword [ebp - 0xc28]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0xc28]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc14]
push eax
push 0
mov ecx, dword [ebp - 0xc18]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc24], eax
cmp dword [ebp - 0xc24], 0
jne 0x48171a
mov dword [ebp - 0xc44], 0
jmp 0x481726
mov edx, dword [ebp - 0xc28]
mov dword [ebp - 0xc44], edx
mov eax, dword [ebp - 0xc44]
mov dword [ebp - 0xc40], eax
mov ecx, dword [ebp - 0xc40]
push ecx
push 0x56ff10
call fcn.0047c040
add esp, 8
xor edx, edx
mov word [ebp - 0x410], dx
push 0x3fe
push 0
lea eax, [ebp - 0x40e]
push eax
call fcn.004f8090
add esp, 0xc
mov dword [ebp - 0xc20], 0x400
lea ecx, [ebp - 0xc20]
push ecx
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0xc10]
push ecx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4817a0
xor eax, eax
jmp 0x4818a7
lea edx, [ebp - 0x410]
mov dword [ebp - 0xc14], edx
cmp dword [ebp - 0xc14], 0
jne 0x4817c4
mov dword [ebp - 0xc48], 0
jmp 0x48188e
mov eax, dword [ebp - 0xc14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x4817ef
mov dword [ebp - 0xc4c], 0
jmp 0x481882
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0xc34], esp
mov ecx, dword [ebp - 0xc38]
mov dword [ebp - 0xc4c], ecx
cmp dword [ebp - 0xc34], 0
je 0x48181d
cmp dword [ebp - 0xc14], 0
jne 0x481829
mov dword [ebp - 0xc4c], 0
jmp 0x481882
mov edx, dword [ebp - 0xc34]
mov byte [edx], 0
push 0
push 0
mov eax, dword [ebp - 4]
shl eax, 1
push eax
mov ecx, dword [ebp - 0xc34]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc14]
push edx
push 0
mov eax, dword [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc30], eax
cmp dword [ebp - 0xc30], 0
jne 0x481876
mov dword [ebp - 0xc4c], 0
jmp 0x481882
mov ecx, dword [ebp - 0xc34]
mov dword [ebp - 0xc4c], ecx
mov edx, dword [ebp - 0xc4c]
mov dword [ebp - 0xc48], edx
mov eax, dword [ebp - 0xc48]
push eax
push 0x56ff10
call fcn.0047c040
add esp, 8
mov eax, 1
lea esp, [ebp - 0xc4c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret