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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x42b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x38], esi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
push 0x426714
push esi
push 0x80000002
mov dword [ebp - 0x14], 4
call edi
test eax, eax
jne 0x4067e8
cmp dword [ebp - 0x1c], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
setne byte [ebp - 0xe]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x426718
push esi
push 0x80000002
call edi
cmp dword [ebp - 0x1c], 0
push 0x426718
push esi
push 0x80000002
setne byte [ebp - 0xd]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
call fcn.004023e0
mov ecx, eax
test ecx, ecx
jne 0x4061aa
push 0x80004005
call fcn.00401fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
mov ecx, 1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x800
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x800
or eax, ecx
jge 0x4061ee
push 0x800
lea ecx, [ebp - 0x28]
call fcn.00404c40
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x42671c
push esi
push 0x80000002
call edi
push dword [ebx - 8]
push ebx
call fcn.0040ba31
add esp, 8
test eax, eax
js 0x4067fa
cmp eax, dword [ebx - 8]
jg 0x4067fa
push 0x42671c
mov dword [ebx - 0xc], eax
push esi
mov byte [eax + ebx], 0
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
push 0x80000002
call ebx
call fcn.004023e0
mov ecx, eax
test ecx, ecx
jne 0x406250
push 0x80004005
call fcn.00401fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 1
mov ecx, 1
mov dword [ebp - 0x14], 0x800
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x800
or eax, ecx
jge 0x40628a
push 0x800
lea ecx, [ebp - 0x2c]
call fcn.00404c40
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0x426720
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push dword [edi - 8]
push edi
call fcn.0040ba31
add esp, 8
test eax, eax
js 0x4067fa
cmp eax, dword [edi - 8]
jg 0x4067fa
push 0x426720
push esi
mov dword [edi - 0xc], eax
push 0x80000002
mov byte [eax + edi], 0
call ebx
call fcn.004023e0
mov ecx, eax
test ecx, ecx
jne 0x4062ea
push 0x80004005
call fcn.00401fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 2
mov ecx, 1
mov dword [ebp - 0x14], 0x800
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x800
or eax, ecx
jge 0x406324
push 0x800
lea ecx, [ebp - 0x24]
call fcn.00404c40
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x426724
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push dword [ebx - 8]
push ebx
call fcn.0040ba31
add esp, 8
test eax, eax
js 0x4067fa
cmp eax, dword [ebx - 8]
jg 0x4067fa
push 0x426724
push esi
mov dword [ebx - 0xc], eax
push 0x80000002
mov byte [eax + ebx], 0
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
call fcn.004023e0
mov ecx, eax
test ecx, ecx
jne 0x406388
push 0x80004005
call fcn.00401fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x14], 0x800
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x800
or eax, ecx
jge 0x4063c2
push 0x800
lea ecx, [ebp - 0x20]
call fcn.00404c40
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x426728
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push dword [ebx - 8]
push ebx
call fcn.0040ba31
add esp, 8
test eax, eax
js 0x4067fa
cmp eax, dword [ebx - 8]
jg 0x4067fa
push 0x426728
push esi
mov dword [ebx - 0xc], eax
push 0x80000002
mov byte [eax + ebx], 0
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
call fcn.004023e0
mov ecx, eax
test ecx, ecx
jne 0x406426
push 0x80004005
call fcn.00401fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 4
mov ecx, 1
mov dword [ebp - 0x14], 0x800
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x800
or eax, ecx
jge 0x406460
push 0x800
lea ecx, [ebp - 0x30]
call fcn.00404c40
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x42672c
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push dword [ebx - 8]
push ebx
call fcn.0040ba31
add esp, 8
test eax, eax
js 0x4067fa
cmp eax, dword [ebx - 8]
jg 0x4067fa
push 0x42672c
push esi
mov dword [ebx - 0xc], eax
push 0x80000002
mov byte [eax + ebx], 0
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
call fcn.004023e0
mov ecx, eax
test ecx, ecx
jne 0x4064c4
push 0x80004005
call fcn.00401fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 5
mov ecx, 1
mov dword [ebp - 0x14], 0x800
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x800
or eax, ecx
jge 0x4064fe
push 0x800
lea ecx, [ebp - 0x34]
call fcn.00404c40
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x426730
push dword [ebp - 0x38]
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push dword [esi - 8]
push esi
call fcn.0040ba31
add esp, 8
test eax, eax
js 0x4067fa
cmp eax, dword [esi - 8]
jg 0x4067fa
push 0x426730
push dword [ebp - 0x38]
mov dword [esi - 0xc], eax
push 0x80000002
mov byte [eax + esi], 0
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x40], esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x406571
mov eax, dword [edx]
jmp 0x406573
mov eax, edx
mov byte [eax], 0
cmp byte [esi], 0
jne 0x40657f
xor ecx, ecx
jmp 0x406591
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x38], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406587
sub ecx, dword [ebp - 0x38]
push ecx
push esi
mov ecx, edx
call fcn.004019e0
sub esp, 0x18
mov byte [ebp - 4], 6
mov edx, esp
mov dword [ebp - 0x44], esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x4065be
mov eax, dword [edx]
jmp 0x4065c0
mov eax, edx
mov byte [eax], 0
cmp byte [ebx], 0
jne 0x4065cc
xor ecx, ecx
jmp 0x4065de
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp - 0x38], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4065d4
sub ecx, dword [ebp - 0x38]
push ecx
push ebx
mov ecx, edx
call fcn.004019e0
sub esp, 0x18
mov byte [ebp - 4], 7
mov eax, esp
mov dword [ebp - 0x48], esp
mov dword [ebp - 0x3c], eax
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40660c
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0
jne 0x40661b
xor edx, edx
jmp 0x40662d
mov edx, eax
lea ecx, [edx + 1]
mov dword [ebp - 0x38], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x406623
sub edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
push edx
push eax
call fcn.004019e0
sub esp, 0x18
mov byte [ebp - 4], 8
mov eax, esp
mov dword [ebp - 0x4c], esp
mov dword [ebp - 0x38], eax
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40665c
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0
jne 0x40666b
xor edx, edx
jmp 0x40667d
mov edx, eax
lea ecx, [edx + 1]
mov dword [ebp - 0x3c], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x406673
sub edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push edx
push eax
call fcn.004019e0
sub esp, 0x18
mov byte [ebp - 4], 9
mov edx, esp
mov dword [ebp - 0x50], esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x4066ab
mov eax, dword [edx]
jmp 0x4066ad
mov eax, edx
mov byte [eax], 0
cmp byte [edi], 0
jne 0x4066b9
xor ecx, ecx
jmp 0x4066cb
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x3c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4066c1
sub ecx, dword [ebp - 0x3c]
push ecx
push edi
mov ecx, edx
call fcn.004019e0
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov eax, esp
mov dword [ebp - 0x38], eax
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4066f6
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [ebp - 0x28]
cmp byte [eax], 0
jne 0x406705
xor edx, edx
jmp 0x40671a
mov edx, eax
lea ecx, [edx + 1]
mov dword [ebp - 0x3c], ecx
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x406710
sub edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push edx
push eax
call fcn.004019e0
mov dl, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov byte [ebp - 4], 5
call fcn.00405600
lea edx, [esi - 0x10]
mov byte [ebp - 4], 4
or esi, 0xffffffff
add esp, 0x94
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406757
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x406772
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406790
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4067ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4067c9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4067e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00401fc0
int3