Function at 0x4082f0
Capabilities:
Delete registry key
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4dea5e
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x526a28]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
xor ebp, ebp
push str.CLSID0B7EB1F2_CF2E_441b_9A5F_CCF1340A0AC2
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebp
call fcn.00408c90
push 4
mov dword [esp + 0x2a4], ebp
call fcn.0040b622
add esp, 4
cmp eax, ebp
je 0x40835c
lea ecx, [esp + 0x20]
mov dword [eax], ecx
jmp 0x40835e
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a0], 1
call fcn.0046f880
mov byte [esp + 0x2a0], 2
mov edx, dword [esp + 0x4c]
push str.CLSID0B7EB1F2_CF2E_441b_9A5F_CCF1340A0AC2
push edx
lea ecx, [esp + 0x4c]
call fcn.0046fb82
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push ebp
push ecx
push SysReAllocStringLen
call ebx
cmp eax, ebp
jne 0x40876a
push ebp
push ebp
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x30]
push ebp
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x7c]
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebp
jne 0x4087c3
mov edi, dword [esp + 0x60]
dec edi
cmp edi, ebp
jl 0x408654
push 0x1fe
lea eax, [esp + 0x9a]
xor edx, edx
push ebp
push eax
mov dword [esp + 0x4c], ebp
mov word [esp + 0xa0], dx
call fcn.004344a0
add esp, 0xc
call fcn.0041075a
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x40880b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x200
lea ecx, [esp + 0x98]
push ecx
mov byte [esp + 0x2a8], 3
mov edx, dword [esp + 0x24]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x94]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_s
push edx
call fcn.00404780
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x40]
push eax
push 0xf003f
push ebp
push ecx
push SysReAllocStringLen
call ebx
cmp eax, ebp
jne 0x408623
push ebp
push ebp
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x54]
push ebp
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x78]
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebp
jne 0x408618
cmp dword [esp + 0x5c], ebp
jne 0x4084f6
mov edx, dword [esp + 0x18]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x408618
xor eax, eax
mov word [esp + 0x74], ax
mov eax, dword [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebp
lea esi, [ecx + 2]
jmp 0x408520
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x408520
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x74]
call fcn.004095e0
mov byte [esp + 0x2a0], 4
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
inc ecx
cmp eax, ecx
ja 0x408561
lea ebx, [esp + 0x20]
call fcn.00409780
mov eax, dword [esp + 0x34]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea esi, [ecx + edx]
cmp eax, esi
ja 0x408572
sub esi, eax
mov edx, dword [esp + 0x30]
cmp dword [edx + esi*4], ebp
jne 0x40858c
push 0x1c
call fcn.0040b622
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + esi*4]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], ecx
mov byte [esp + 0x2a0], 5
cmp ecx, ebp
je 0x4085c9
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebp
lea eax, [esp + 0x78]
call fcn.004091e0
inc dword [esp + 0x3c]
mov byte [esp + 0x2a0], 3
cmp dword [esp + 0x88], 8
jb 0x4085ec
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0040b651
add esp, 4
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x18]
push eax
xor edx, edx
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], dx
call fcn.0046fb30
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x2a0], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40864b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub edi, 1
jns 0x408402
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x408815
mov esi, dword [esp + 0x38]
add eax, esi
cmp esi, eax
jbe 0x40866f
call fcn.0043a94b
mov eax, dword [esp + 0x20]
mov edi, eax
cmp eax, ebp
jne 0x408699
call fcn.0043a94b
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
cmp esi, ecx
jb 0x408691
call fcn.0043a94b
cmp edi, ebp
je 0x40869f
mov eax, dword [edi]
jmp 0x4086a1
mov eax, dword [eax]
mov ecx, eax
jmp 0x408682
xor eax, eax
cmp dword [eax + 0x14], esi
ja 0x4086b3
cmp edi, ebp
je 0x4086ae
mov eax, dword [edi]
jmp 0x4086b0
xor eax, eax
sub esi, dword [eax + 0x14]
cmp edi, ebp
je 0x4086bb
mov eax, dword [edi]
jmp 0x4086bd
xor eax, eax
mov edx, dword [eax + 0x10]
mov eax, dword [edx + esi*4]
cmp dword [eax + 0x18], 8
jb 0x4086ce
mov edx, dword [eax + 4]
jmp 0x4086d1
lea edx, [eax + 4]
cmp edx, ebp
jne 0x4086d9
xor eax, eax
jmp 0x4086ef
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4086e0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00404ce0
cmp dword [esp + 0x3c], ebp
je 0x40874b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + eax*4]
cmp dword [esi + 0x18], 8
jb 0x40871d
mov eax, dword [esi + 4]
push eax
call fcn.0040b651
add esp, 4
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
xor edx, edx
mov word [esi + 4], dx
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x34], eax
ja 0x408740
mov dword [esp + 0x38], ebp
sub dword [esp + 0x3c], 1
jne 0x40874b
mov dword [esp + 0x38], ebp
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push ebp
push ecx
push SysReAllocStringLen
call ebx
cmp eax, ebp
je 0x4083c3
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a0], 1
call fcn.0046fa37
lea esi, [esp + 0x20]
call fcn.00409290
mov edx, dword [esp + 0x20]
push edx
call fcn.0040b651
mov dword [esp + 0x2a4], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x408932
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a0], 1
call fcn.0046fa37
lea esi, [esp + 0x20]
call fcn.00409290
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040b651
mov dword [esp + 0x2a4], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4087b0
push 0x80004005
call fcn.00404ef0
mov ebx, dword [esp + 0x4c]
dec ebx
cmp ebx, ebp
jl 0x4088d0
cmp ebx, ebp
jl 0x40895f
cmp ebx, dword [esp + 0x4c]
jge 0x40895f
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx + ebx*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], ebp
lea ecx, [esi + 0xc]
jl 0x408861
cmp eax, dword [esi]
jne 0x408861
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40889c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebp
je 0x40895a
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00431edd
add esp, 0x10
lea esi, [edi + 0x10]
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub ebx, 1
jns 0x408822
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a0], 1
call fcn.0046fa37
lea esi, [esp + 0x20]
call fcn.00409290
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040b651
mov dword [esp + 0x2a4], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40892d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.00431c7a
add esp, 0x290
ret
call fcn.00404bc0
call fcn.004106aa
int3