Function at 0x487420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df3ed
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x10]
lea esi, [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
push esi
push 0
lea esi, [ebp - 0x38]
mov dword [ebp - 0x34], eax
push esi
push edx
push ecx
push eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x48769c
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x48769c
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
cmp ecx, 0x7fffffff
ja 0x4876bf
lea edi, [ecx + ecx]
cmp edi, 0x1000
jb 0x4874e7
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x4876c4
push eax
call fcn.004a7d07
add esp, 4
test eax, eax
je 0x4876ba
mov ecx, dword [ebp - 0x30]
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4874fd
test edi, edi
je 0x4874fb
push edi
call fcn.004a7d07
mov ecx, dword [ebp - 0x30]
add esp, 4
mov ebx, eax
jmp 0x4874fd
xor ebx, ebx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x30], 0
mov ax, word [eax]
lea edx, [ebp - 0x30]
lea esi, [edi + ebx]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], esi
cmp ax, word [edx]
jne 0x487529
push edi
push 0
push ebx
call fcn.004ac800
add esp, 0xc
jmp 0x48753c
mov eax, ebx
test ecx, ecx
je 0x48753e
xor eax, eax
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, esi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x34]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x48766f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 7
cmp eax, 7
ja 0x48759e
lea esi, [eax + eax]
mov dword [ebp - 0x18], eax
push esi
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004ac280
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x4875f5
cmp eax, 0x7ffffffe
ja 0x4876c9
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4875bd
mov esi, SysReAllocString
jmp 0x4875c7
cmp esi, 0xa
jae 0x4875c7
mov esi, 0xa
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408900
mov edi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea esi, [eax + eax]
push esi
push ebx
push edi
call fcn.004ac280
add esp, 0xc
mov dword [ebp - 0x28], edi
xor eax, eax
mov word [esi + edi], ax
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x28]
push eax
call fcn.0040b1a0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x48763b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487631
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4876ba
push edx
push ecx
call fcn.004a7d37
add esp, 8
test ebx, ebx
je 0x48766b
mov ecx, dword [ebp - 0x3c]
sub ecx, ebx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x487661
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x4876ba
mov ebx, edx
push ecx
push ebx
call fcn.004a7d37
add esp, 8
mov al, 1
jmp 0x48769e
test ebx, ebx
je 0x48769c
sub esi, ebx
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x487692
mov ecx, dword [ebx - 4]
add esi, 0x23
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x4876ba
mov ebx, ecx
push esi
push ebx
call fcn.004a7d37
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
call fcn.004af45f
call fcn.0040b480
call fcn.004088e0
call fcn.004087a0
int3