Function at 0x485570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push dword [0x61b7e4]
mov dword [ebp - 0x10], 0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x10]
lea esi, [ebx + 0x18]
mov ecx, dword [str.LocationRoot]
mov ebx, 1
mov edx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
test eax, eax
je 0x485699
lea edi, [ebp - 0x14]
push edi
push 0
lea edi, [ebp - 0x1c]
push edi
push 0
push ecx
push eax
call edx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x485609
cmp eax, 2
jne 0x485690
mov ecx, esi
call fcn.00426010
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, ebx
js 0x485779
mov edi, dword [esi]
mov ecx, ebx
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x485637
push edx
mov ecx, esi
call fcn.00426250
mov edi, dword [esi]
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call eax
test eax, eax
jne 0x485690
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x48567a
push dword [eax - 8]
push eax
call fcn.0054b2c2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x485779
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x485779
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
mov edx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x18]
mov ecx, dword [str.StartMenuDir]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
test eax, eax
je 0x485767
lea edi, [ebp - 0x18]
push edi
push 0
lea edi, [ebp - 0x20]
push edi
push 0
push ecx
push eax
call edx
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x4856d5
cmp eax, 2
jne 0x485759
lea ecx, [esi + 0x1c]
call fcn.00426010
mov ecx, dword [ebp - 0x18]
shr ecx, 1
add ecx, ebx
js 0x485779
mov edi, dword [esi + 0x1c]
mov eax, dword [edi - 8]
sub ebx, dword [edi - 4]
sub eax, ecx
or ebx, eax
jge 0x485705
push ecx
lea ecx, [esi + 0x1c]
call fcn.00426250
mov edi, dword [esi + 0x1c]
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call eax
test eax, eax
jne 0x485759
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x485745
push dword [eax - 8]
push eax
call fcn.0054b2c2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x485779
mov eax, dword [esi + 0x1c]
cmp ecx, dword [eax - 8]
jg 0x485779
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi + 0x1c]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x485767
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00425f50
int3