Function at 0x10012762
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100733a6
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x10095428]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x10095428]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [esp + 0x14], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
and dword [esp + 0x450], 0
mov dword [esp + 0x28], eax
mov eax, edi
call fcn.10012651
mov esi, eax
test esi, esi
jl 0x10012bf6
cmp word [edi], 0x7d
je 0x10012bf4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1007bd30
push edi
mov dword [esp + 0x24], 1
call esi
mov ebx, eax
neg ebx
push 0x1007bd54
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x10012810
test ebx, ebx
je 0x100128dd
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.10012651
mov esi, eax
test esi, esi
jl 0x10012be3
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x100128df
push 0x5c
mov eax, edi
call fcn.1001252a
test eax, eax
pop ecx
jne 0x10012cb7
push edi
call fcn.10013208
test eax, eax
je 0x1001285e
mov eax, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
call fcn.10008cd9
cmp ebx, esi
je 0x100128df
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.10012651
mov esi, eax
test esi, esi
jl 0x10012be3
mov ecx, dword [esp + 0x18]
call fcn.100131a3
mov esi, eax
test esi, esi
jl 0x10012be3
cmp word [edi], 0x7b
jne 0x100128ce
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x100128ce
mov ecx, dword [esp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x1c]
push edi
call fcn.10012762
mov esi, eax
test esi, esi
jl 0x10012be3
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.10012651
mov esi, eax
test esi, esi
jl 0x10012be3
cmp word [edi], 0x7d
jne 0x100127df
jmp 0x10012be3
xor esi, esi
push 0x1007bd40
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001290a
and dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.10012651
mov esi, eax
test esi, esi
jl 0x10012be3
xor esi, esi
push 0x1007bd6c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10012a06
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x234]
call fcn.10012651
mov esi, eax
test esi, esi
jl 0x10012be3
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.10012651
mov esi, eax
test esi, esi
jl 0x10012be3
cmp word [edi], 0x3d
jne 0x10012cd1
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1001299a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x450], 1
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x238]
push eax
lea edx, [esp + 0x24]
call fcn.10012d24
mov esi, eax
cmp esi, ebx
jl 0x10012cd8
mov byte [esp + 0x450], bl
jmp 0x1001288a
cmp dword [ebp + 0x14], ebx
jne 0x100129f4
cmp dword [esp + 0x1c], ebx
je 0x100129f4
lea eax, [esp + 0x1c]
push eax
push 0x20006
push ebx
push ebx
push dword [esp + 0x34]
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10012bdc
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x234]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100129e7
cmp eax, 2
jne 0x10012ce1
test ebx, ebx
je 0x100129f2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [esp + 0x18]
call fcn.100131a3
mov esi, eax
cmp esi, ebx
jmp 0x100128c8
push 0x5c
mov eax, edi
call fcn.1001252a
test eax, eax
pop ecx
jne 0x10012cb7
cmp dword [ebp + 0x10], esi
je 0x10012ae1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0x2001f
push esi
push edi
push dword [esp + 0x34]
mov dword [esp + 0x30], esi
call ebx
cmp eax, esi
jne 0x10012a5f
xor eax, eax
cmp dword [esp + 0x14], esi
je 0x10012a53
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
je 0x10012aad
lea eax, [esp + 0x1c]
push eax
push 0x20019
push esi
push edi
push dword [esp + 0x34]
mov dword [esp + 0x30], esi
call ebx
cmp eax, esi
jne 0x10012a97
xor eax, eax
cmp dword [esp + 0x14], esi
je 0x10012a8b
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
je 0x10012aad
push edi
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
call fcn.10008c7d
cmp eax, esi
jne 0x10012cfc
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.10012651
mov esi, eax
test esi, esi
jl 0x10012be3
cmp word [edi], 0x3d
jne 0x1001288a
mov ecx, dword [esp + 0x18]
push edi
push 0
lea edx, [esp + 0x1c]
call fcn.10012d24
jmp 0x10012880
cmp dword [ebp + 0x14], esi
jne 0x10012b24
lea eax, [esp + 0x20]
push eax
push 0x20019
push esi
push edi
push dword [esp + 0x34]
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10012b1e
xor eax, eax
cmp dword [esp + 0x14], esi
je 0x10012b16
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
jmp 0x10012b2c
mov dword [esp + 0x20], 2
cmp dword [esp + 0x20], esi
je 0x10012b39
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.10054d6e
push eax
call fcn.10003209
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, edi
call fcn.10012651
mov esi, eax
test esi, esi
jl 0x10012be3
mov ecx, dword [esp + 0x18]
call fcn.100131a3
mov esi, eax
test esi, esi
jl 0x10012be3
cmp word [edi], 0x7b
jne 0x10012bb6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10012bb6
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0x1c]
push edi
call fcn.10012762
mov esi, eax
test esi, esi
jge 0x10012ba5
cmp dword [ebp + 0x14], 0
je 0x10012be3
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.10012651
mov esi, eax
test esi, esi
jl 0x10012be3
cmp dword [esp + 0x20], 2
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x14], eax
je 0x100128ce
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x10012c1c
cmp eax, ebx
jne 0x100128ce
mov eax, dword [esp + 0x20]
call fcn.1001461f
mov esi, eax
cmp dword [esp + 0x14], 0
je 0x10012bf4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.10051861
mov esp, ebp
pop ebp
ret 0x10
cmp eax, ebx
je 0x10012c5d
push dword [esp + 0x14]
call fcn.10013234
test eax, eax
je 0x10012c5d
lea eax, [esp + 0x2c]
push eax
call fcn.10013208
test eax, eax
je 0x100128ce
cmp dword [esp + 0x1c], 0
je 0x100128ce
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.10008cd9
jmp 0x100128ce
push dword [esp + 0x14]
call fcn.10013234
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
je 0x10012c86
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jne 0x10012d1a
cmp dword [esp + 0x1c], ebx
je 0x100128ce
cmp dword [esp + 0x20], 0
jne 0x100128ce
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10012bdc
jmp 0x100128ce
cmp dword [esp + 0x14], esi
je 0x10012cc7
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x10012bf6
cmp dword [esp + 0x14], 0
jmp 0x10012cbb
cmp dword [esp + 0x14], ebx
jmp 0x10012be8
call fcn.1001461f
test ebx, ebx
mov esi, eax
je 0x10012be3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10012be3
call fcn.1001461f
cmp dword [esp + 0x14], esi
mov edi, eax
je 0x10012d13
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10012bf6
call fcn.1001461f
jmp 0x10012bf6