Function at 0x487610
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccbbd
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x66e5c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x70], edi
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x5c]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [edi + 4]
push edx
or eax, 0x20019
mov dword [ebp - 0x58], ecx
push eax
push esi
push ecx
mov ecx, edi
mov dword [ebp - 0x5c], 0
call fcn.00487e80
test al, al
je 0x487bee
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
mov dword [ebp - 0x60], 0
je 0x4876af
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x60]
push ecx
or eax, 0x20019
mov ecx, edi
push eax
push esi
push dword [ebp - 0x58]
call fcn.00487e80
test al, al
jne 0x487753
xor al, al
jmp 0x487bf0
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x4876a8
mov eax, dword [edi + 4]
or eax, 0x2001f
cmp ecx, 0x80000001
jne 0x48772c
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x4876a8
mov ecx, dword [edi + 4]
mov eax, ecx
or eax, 0x2001f
or ecx, 0x20019
cmp byte [edi], 0
cmove ecx, eax
cmp dword [esi + 0x14], 7
jbe 0x4876fa
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x60]
push eax
push 0
push ecx
push 0
push 0
push 0
push esi
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [ebp - 0x54]
test eax, eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x487728
call eax
xor al, al
jmp 0x487bf0
call eax
jmp 0x487753
cmp dword [esi + 0x14], 7
jbe 0x487734
mov esi, dword [esi]
push 0
lea edx, [ebp - 0x60]
push edx
push 0
push eax
push 0
push 0
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4876a8
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x4876a8
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x6c]
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x48779a
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4877b1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0044eec0
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x41], al
lea eax, [ebp - 0x41]
push eax
push 0x200
call fcn.00468b20
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
mov edi, dword [ebp - 0x50]
mov eax, esi
push ecx
sub eax, edi
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x68]
push edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push ecx
push 0
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x487891
test ecx, ecx
jne 0x487891
mov byte [ebp - 4], 1
test edi, edi
je 0x487888
mov ecx, dword [ebp - 0x48]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x487869
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c12
push ecx
push edi
call fcn.004c427d
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x41], 1
jmp 0x487a75
cmp ecx, 1
je 0x4878a9
cmp ecx, 2
je 0x4878a9
test ecx, ecx
je 0x4878a9
mov eax, 0x490
jmp 0x487a25
cmp eax, 0xea
jne 0x487941
mov ecx, dword [ebp - 0x54]
cmp ecx, 1
jbe 0x487a25
mov eax, esi
mov edx, edi
cmp edi, eax
cmovne esi, edi
cmove edx, eax
mov dword [ebp - 0x4c], esi
add ecx, 8
mov dword [ebp - 0x64], edx
sub edx, edi
mov byte [ebp - 0x41], 0
cmp ecx, edx
jae 0x4878e4
lea esi, [ecx + edi]
jmp 0x48791b
jbe 0x48791e
mov eax, dword [ebp - 0x48]
sub eax, edi
cmp ecx, eax
jbe 0x487904
lea eax, [ebp - 0x41]
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00468b20
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
jmp 0x48791e
mov esi, dword [ebp - 0x64]
sub ecx, edx
push ecx
push 0
push esi
mov dword [ebp - 0x58], ecx
call fcn.004ce740
add esp, 0xc
add esi, dword [ebp - 0x58]
mov dword [ebp - 0x4c], esi
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x54]
push ecx
push edi
lea ecx, [ebp - 0x68]
push ecx
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push 0
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x487a27
mov byte [ebp - 0x41], al
cmp esi, dword [ebp - 0x48]
je 0x487959
mov byte [esi], al
inc esi
mov dword [ebp - 0x4c], esi
jmp 0x48796c
lea eax, [ebp - 0x41]
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.00468cb0
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
mov byte [ebp - 0x41], 0
cmp esi, dword [ebp - 0x48]
je 0x48797e
mov byte [esi], 0
inc esi
mov dword [ebp - 0x4c], esi
jmp 0x48798e
lea eax, [ebp - 0x41]
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.00468cb0
mov edi, dword [ebp - 0x50]
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x487993
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x4879c3
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
add esi, esi
push esi
push edi
push eax
call fcn.004ce090
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x487a22
cmp esi, 0x7ffffffe
ja 0x487c0d
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4879e2
mov eax, 0x7ffffffe
jmp 0x4879ec
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044f200
mov edi, eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x64]
add esi, esi
push esi
mov dword [ebp - 0x14], eax
push dword [ebp - 0x50]
push edi
call fcn.004ce090
add esp, 0x14
mov dword [ebp - 0x28], edi
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
test eax, eax
sete byte [ebp - 0x41]
mov byte [ebp - 4], 1
test edi, edi
je 0x487a75
mov ecx, dword [ebp - 0x48]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x487a56
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c12
push ecx
push edi
call fcn.004c427d
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x487ab3
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x487aa9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c17
push ecx
push edx
call fcn.004c427d
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp byte [ebp - 0x41], al
je 0x487bae
mov eax, dword [ebp - 0x70]
cmp byte [eax], 0
je 0x487b46
mov byte [eax + 1], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x487b1d
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x487b13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c1c
push ecx
push edx
call fcn.004c427d
add esp, 8
xor eax, eax
mov byte [ebp - 0x41], 1
push dword [ebp - 0x60]
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x41]
jmp 0x487bf0
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x14], 7
jbe 0x487b51
mov eax, dword [eax]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x487adc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x487ba4
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x487b9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c1c
push ecx
push edx
call fcn.004c427d
add esp, 8
xor eax, eax
mov byte [ebp - 0x41], al
jmp 0x487b23
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x487b1d
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x487b13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c1c
jmp 0x487b13
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c3ed9
mov esp, ebp
pop ebp
ret 0xc
call fcn.0044cc40
call fcn.004d85ca
call fcn.004d85ca
call fcn.004d85ca
int3