Function at 0x487f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccc3d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x66e5c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x10]
push edx
or eax, 0x20019
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00487e80
test al, al
jne 0x487f6f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x14], 7
jbe 0x487f82
mov eax, dword [ebx]
xor edx, edx
mov dword [ebx + 0x10], 0
mov word [eax], dx
test ecx, ecx
jne 0x487f99
xor bl, bl
jmp 0x488289
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
lea eax, [ebp + 0xf]
push eax
push 0x200
lea ecx, [ebp - 0x24]
mov byte [ebp + 0xf], 0
call fcn.00468b20
mov esi, dword [ebp - 0x20]
mov eax, esi
mov edi, dword [ebp - 0x24]
sub eax, edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov dword [ebp + 0x14], 0
cmp dword [eax + 0x14], 7
jbe 0x487fdf
mov ecx, dword [eax]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp + 0x14]
push eax
push 0
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x488056
test ecx, ecx
jne 0x488056
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48804f
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x488030
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4882ad
push ecx
push edi
call fcn.004c427d
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov bl, 1
jmp 0x488289
cmp ecx, 1
je 0x48806e
cmp ecx, 2
je 0x48806e
test ecx, ecx
je 0x48806e
mov eax, 0x490
jmp 0x48823b
cmp eax, 0xea
jne 0x488106
mov ecx, dword [ebp + 8]
cmp ecx, 1
jbe 0x48823b
mov eax, esi
mov edx, edi
cmp edi, eax
cmove edx, eax
cmovne esi, edi
mov dword [ebp - 0x18], edx
add ecx, 8
sub edx, edi
mov dword [ebp - 0x20], esi
mov byte [ebp + 0xf], 0
cmp ecx, edx
jae 0x4880a9
lea esi, [ecx + edi]
jmp 0x4880e0
jbe 0x4880e3
mov eax, dword [ebp - 0x1c]
sub eax, edi
cmp ecx, eax
jbe 0x4880c9
lea eax, [ebp + 0xf]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.00468b20
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
jmp 0x4880e3
mov esi, dword [ebp - 0x18]
sub ecx, edx
push ecx
push 0
push esi
mov dword [ebp + 0xc], ecx
call fcn.004ce740
add esp, 0xc
add esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 7
jbe 0x4880ee
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push edi
lea ecx, [ebp + 0x14]
push ecx
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x48823d
mov byte [ebp + 0x13], al
cmp esi, dword [ebp - 0x1c]
je 0x48811e
mov byte [esi], al
inc esi
mov dword [ebp - 0x20], esi
jmp 0x488131
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00468cb0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov byte [ebp + 0x13], 0
cmp esi, dword [ebp - 0x1c]
je 0x488143
mov byte [esi], 0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x488153
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00468cb0
mov edi, dword [ebp - 0x24]
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x488160
mov edx, dword [ebx + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x18], edx
cmp esi, edx
ja 0x4881a6
mov dword [ebp + 0x10], ebx
mov eax, ebx
cmp edx, 7
jbe 0x488188
mov eax, dword [ebx]
mov dword [ebp + 0x10], eax
mov dword [ebx + 0x10], esi
add esi, esi
push esi
push edi
push eax
call fcn.004ce090
mov eax, dword [ebp + 0x10]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x488238
cmp esi, 0x7ffffffe
ja 0x4882a8
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4881c6
mov ecx, 0x7ffffffe
jmp 0x4881ea
mov eax, edx
shr eax, 1
mov dword [ebp + 0x10], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp + 0x10]
cmp edx, eax
jbe 0x4881e0
mov ecx, 0x7ffffffe
jmp 0x4881ea
mov eax, dword [ebp + 0x10]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ecx
push eax
push ebx
call fcn.0044f200
mov dword [ebx + 0x10], esi
mov ecx, eax
mov eax, dword [ebp + 0x10]
add esi, esi
push esi
push edi
push ecx
mov dword [ebp - 0x14], ecx
mov dword [ebx + 0x14], eax
call fcn.004ce090
mov ecx, dword [ebp - 0x14]
xor eax, eax
add esp, 0x14
mov word [esi + ecx], ax
mov eax, dword [ebp - 0x18]
cmp eax, 7
jbe 0x488236
push eax
push dword [ebx]
push ebx
call fcn.0044ece0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebx], eax
jmp 0x488238
mov dword [ebx], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x488289
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x48826a
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4882ad
push ecx
push edi
call fcn.004c427d
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0044cc40
call fcn.004d85ca
int3