Function at 0x1000315b
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000c52c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.1000a5a0
mov eax, dword [0x10012020]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x10012020]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, esi
mov dword [esp + 0x2280], edi
call fcn.10003035
mov ebx, eax
cmp ebx, edi
jl 0x100035a4
cmp word [esi], 0x7d
je 0x100035a2
jmp 0x100031e9
xor edi, edi
push str.Delete
push esi
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb ebx, ebx
push str.ForceRemove
inc ebx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000321e
cmp ebx, edi
je 0x100032c8
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.10003035
mov ebx, eax
cmp ebx, edi
jl 0x10003591
cmp dword [ebp + 0x10], edi
je 0x100032c8
push 0x5c
mov eax, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.1000268a
pop ecx
test eax, eax
jne 0x100036e0
push esi
call fcn.10002d06
test eax, eax
je 0x1000328a
mov eax, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.10002de6
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
cmp dword [esp + 0x28], edi
je 0x100032c4
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.10003035
mov ebx, eax
cmp ebx, edi
jl 0x10003591
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.10002ca9
mov ebx, eax
test ebx, ebx
js 0x10003591
and dword [esp + 0x34], 0
jmp 0x10003687
mov dword [esp + 0x34], edi
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100032f1
mov ecx, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x2c], edi
call fcn.10003035
mov ebx, eax
cmp ebx, edi
jl 0x10003591
push 0x1000f204
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10003419
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x26c]
call fcn.10003035
mov ebx, eax
cmp ebx, edi
jl 0x10003591
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.10003035
mov ebx, eax
cmp ebx, edi
jl 0x10003591
cmp word [esi], 0x3d
jne 0x100036e0
cmp dword [ebp + 0x10], edi
je 0x10003398
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x2280], 1
mov dword [esp + 0x4c], eax
push esi
lea eax, [esp + 0x270]
push eax
lea edx, [esp + 0x54]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.1000285e
mov ebx, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
cmp ebx, edi
jl 0x100036fa
mov byte [esp + 0x2280], 0
mov dword [esp + 0x50], edi
jmp 0x10003689
cmp dword [ebp + 0x14], edi
jne 0x100033ff
cmp dword [esp + 0x2c], edi
je 0x100033ff
push edi
push dword [esp + 0x28]
mov eax, 0x20006
lea ebx, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call fcn.10002d94
test eax, eax
jne 0x10003715
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x26c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100033ea
cmp eax, 2
jne 0x10003703
test edi, edi
je 0x100033fa
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.10002ca9
mov ebx, eax
test ebx, ebx
js 0x10003591
jmp 0x100036d1
push 0x5c
mov eax, esi
call fcn.1000268a
pop ecx
test eax, eax
jne 0x100036e0
cmp dword [ebp + 0x10], edi
je 0x100034ac
push esi
push dword [esp + 0x28]
mov eax, 0x2001f
lea ebx, [esp + 0x20]
call fcn.10002d94
test eax, eax
je 0x1000346e
push esi
push dword [esp + 0x28]
mov eax, 0x20019
call fcn.10002d94
test eax, eax
je 0x1000346e
push esi
push dword [esp + 0x28]
mov eax, ebx
call fcn.10002723
test eax, eax
jne 0x10003736
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.10003035
mov ebx, eax
test ebx, ebx
js 0x10003591
cmp word [esi], 0x3d
jne 0x10003687
mov ecx, dword [esp + 0x14]
push esi
push 0
lea edx, [esp + 0x20]
call fcn.1000285e
mov ebx, eax
test ebx, ebx
js 0x10003591
jmp 0x10003687
cmp dword [ebp + 0x14], edi
jne 0x100034cc
push esi
push dword [esp + 0x28]
mov eax, 0x20019
lea ebx, [esp + 0x20]
call fcn.10002d94
mov dword [esp + 0x28], eax
xor edi, edi
jmp 0x100034d4
mov dword [esp + 0x28], 2
cmp dword [esp + 0x28], edi
je 0x100034e1
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x6c]
push 0x104
push eax
call fcn.100057b8
push eax
call fcn.10002c71
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov eax, esi
call fcn.10003035
mov ebx, eax
cmp ebx, edi
jl 0x10003591
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.10002ca9
mov ebx, eax
test ebx, ebx
js 0x10003591
cmp word [esi], 0x7b
jne 0x10003564
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10003564
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0x20]
push esi
call fcn.1000315b
mov ebx, eax
test ebx, ebx
jns 0x10003553
cmp dword [ebp + 0x14], 0
je 0x10003591
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.10003035
mov ebx, eax
test ebx, ebx
js 0x10003591
cmp dword [esp + 0x28], 2
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0x14], eax
je 0x100036d1
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
je 0x100035ca
cmp dword [esp + 0x3c], edi
jne 0x100036d1
call fcn.10003026
mov ebx, eax
cmp dword [esp + 0x18], 0
je 0x100035a2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x2278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.10003da8
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x3c], edi
je 0x1000360c
push dword [esp + 0x18]
call fcn.10002f17
test eax, eax
je 0x1000360c
lea eax, [esp + 0x64]
push eax
call fcn.10002d06
test eax, eax
je 0x100036d1
cmp dword [esp + 0x2c], edi
je 0x100036d1
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.10002de6
jmp 0x100036d1
push dword [esp + 0x18]
call fcn.10002f17
mov dword [esp + 0x28], eax
xor eax, eax
cmp dword [esp + 0x18], edi
je 0x1000362f
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp eax, edi
jne 0x10003742
cmp dword [esp + 0x2c], edi
je 0x100036d1
cmp dword [esp + 0x28], edi
jne 0x100036d1
mov eax, dword [esp + 0x24]
and dword [esp + 0x5c], edi
and dword [esp + 0x60], edi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x64]
push eax
lea edi, [esp + 0x5c]
call fcn.10002fb8
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
cmp eax, ecx
jne 0x1000358a
and dword [esp + 0x5c], ecx
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x100036d1
cmp word [esi], 0x7b
jne 0x100036d1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x100036d1
mov ecx, dword [esp + 0x14]
push edi
push dword [ebp + 0x10]
push dword [esp + 0x20]
push esi
call fcn.1000315b
mov ebx, eax
cmp ebx, edi
jl 0x10003591
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.10003035
mov ebx, eax
cmp ebx, edi
jl 0x10003591
cmp word [esi], 0x7d
jne 0x100031e7
jmp 0x10003591
cmp dword [esp + 0x18], edi
je 0x100036f0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x100035a4
cmp dword [esp + 0x18], edi
jmp 0x10003596
call fcn.10003026
mov ebx, eax
test edi, edi
je 0x10003591
push edi
jmp 0x1000372b
call fcn.10003026
cmp dword [esp + 0x40], 0
mov ebx, eax
je 0x10003591
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003591
call fcn.10003026
cmp dword [esp + 0x18], 0
jmp 0x1000374b
call fcn.10003026
cmp dword [esp + 0x18], edi
mov esi, eax
je 0x10003759
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100035a4