Function at 0x4086d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572d38
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5d6ff4]
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
push 0x5e20f0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push 0x5e20ec
push eax
call fcn.004023b0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0x5b4a04
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push 0xf003f
push 0
push dword [ebp - 0x20]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x38]
xor edx, edx
test eax, eax
mov dword [ebp - 0x44], eax
cmovne ecx, edx
or ebx, 0xffffffff
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x40894c
xorps xmm0, xmm0
mov dword [ebp - 0x24], edx
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 2
xor edi, edi
call fcn.00411480
mov ecx, eax
test ecx, ecx
jne 0x408790
push 0x80004005
call fcn.00402df0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
nop
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x64
or eax, ecx
jge 0x4087bf
push 0x64
lea ecx, [ebp - 0x14]
call fcn.00402a50
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x64
test esi, esi
je 0x408824
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x40882b
push dword [esi - 8]
inc edi
push esi
call fcn.0055c249
add esp, 8
test eax, eax
js 0x40881a
cmp eax, dword [esi - 8]
jg 0x40881a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408990
mov esi, dword [ebp - 0x14]
jmp 0x4087a0
push 0x80070057
call fcn.00402df0
mov dword [ebp - 0x44], 0x57
push dword [esi - 8]
push esi
call fcn.0055c249
add esp, 8
test eax, eax
js 0x40881a
cmp eax, dword [esi - 8]
jg 0x40881a
mov edi, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, dword [ebp - 0x28]
je 0x408920
or esi, 0xffffffff
nop dword [eax + eax]
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.00402f30
push 0x5e20f0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push 0x5e20ec
push eax
mov dword [ebp - 0x18], 0
call fcn.004023b0
add esp, 0xc
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
push 0xf003f
push 0
push dword [ebp - 0x18]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov ebx, dword [ebp - 0x1c]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x4088d9
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4088f3
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 0x40890e
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0x28]
jne 0x408860
mov esi, dword [ebp - 0x14]
or ebx, 0xffffffff
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408944
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
call fcn.00408c30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40896b
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00554e91
mov esp, ebp
pop ebp
ret