Function at 0x10018336
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.1005e2a0
push 0xffffffffffffffff
push 0x100cc77e
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x2218]
mov edi, dword [ebp + 0x2214]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.10017a65
mov esi, eax
test esi, esi
js 0x100188b1
jmp 0x10018866
push 0x100e01ec
push edi
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x100e01c0
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100183e1
test ebx, ebx
je 0x10018475
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10017a65
mov esi, eax
test esi, esi
js 0x100188a3
xor esi, esi
cmp dword [ebp + 0x221c], esi
je 0x10018477
push 0x5c
push edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
call fcn.10018b3b
pop ecx
pop ecx
test eax, eax
jne 0x1001889e
mov ecx, dword [ebp - 0x10]
push edi
call fcn.1001754b
test eax, eax
je 0x1001843b
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
push edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
call fcn.10017e54
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
test ebx, ebx
je 0x10018470
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.10017a65
mov esi, eax
test esi, esi
js 0x100188a3
push edi
mov ecx, ebx
call fcn.10018aa6
mov esi, eax
test esi, esi
js 0x100188a3
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x1001867b
mov dword [ebp - 0x34], esi
jmp 0x10018477
xor esi, esi
push 0x100e01d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x10]
test eax, eax
jne 0x1001849f
push edi
mov ecx, ebx
mov dword [ebp - 0x14], esi
call fcn.10017a65
mov esi, eax
test esi, esi
js 0x100188a3
push 0x100e01b8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100185aa
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.10017a65
mov esi, eax
test esi, esi
js 0x100188a3
push edi
mov ecx, ebx
call fcn.10017a65
mov esi, eax
test esi, esi
js 0x100188a3
push 0x3d
pop eax
cmp word [edi], ax
jne 0x1001889e
cmp dword [ebp + 0x221c], 0
je 0x10018531
mov eax, dword [ebp - 0x18]
mov ecx, ebx
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp]
push edi
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
call fcn.10016f55
mov esi, eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
test esi, esi
js 0x100188a3
mov byte [ebp - 4], al
mov dword [ebp - 0x4c], eax
jmp 0x1001867b
cmp dword [ebp + 0x2220], 0
jne 0x10018593
cmp dword [ebp - 0x14], 0
je 0x10018593
xor esi, esi
lea ecx, [ebp - 0x44]
push 0x20006
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
call fcn.10017b89
test eax, eax
jne 0x10018884
mov ebx, dword [ebp - 0x44]
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1001857f
cmp eax, 2
jne 0x10018874
test ebx, ebx
je 0x1001858d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], esi
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x40], esi
push edi
mov ecx, ebx
call fcn.10018aa6
mov esi, eax
test esi, esi
js 0x100188a3
jmp 0x10018866
push 0x5c
push edi
call fcn.10018b3b
pop ecx
pop ecx
test eax, eax
jne 0x1001889e
cmp dword [ebp + 0x221c], eax
je 0x100186d0
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
push 0x2001f
push edi
push esi
call fcn.10017b89
test eax, eax
je 0x10018648
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x24]
call fcn.10017b89
test eax, eax
je 0x10018648
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x54]
push eax
xor edx, edx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edx
push eax
push edx
push 0x2001f
push edx
push edx
push edx
push edi
push esi
test ecx, ecx
je 0x10018617
call fcn.10017f60
jmp 0x1001861d
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100187bb
xor esi, esi
mov eax, esi
cmp dword [ebp - 0x24], eax
je 0x10018637
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
test eax, eax
jne 0x100187bb
push edi
mov ecx, ebx
call fcn.10017a65
mov esi, eax
test esi, esi
js 0x100188a3
push 0x3d
pop eax
cmp word [edi], ax
jne 0x1001867b
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10016f55
mov esi, eax
test esi, esi
js 0x100188a3
push 0x7b
pop eax
cmp word [edi], ax
jne 0x10018866
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x58]
jne 0x1001868c
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10018866
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x221c]
push dword [ebp - 0x24]
push edi
call fcn.10018336
mov esi, eax
test esi, esi
js 0x100188a3
push edi
mov ecx, ebx
call fcn.10017a65
jmp 0x1001859b
cmp dword [ebp + 0x2220], 0
jne 0x100186ec
push 0x20019
push edi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.10017b89
jmp 0x100186ef
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x28], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push edi
cmove ecx, dword [ebp + 0x2220]
lea eax, [ebp + 0x2000]
push 0x104
push eax
mov dword [ebp - 0x2c], ecx
call fcn.1008ab60
push eax
call fcn.10004b1b
add esp, 0x14
mov ecx, ebx
push edi
call fcn.10017a65
mov esi, eax
test esi, esi
js 0x100188a3
push edi
mov ecx, ebx
call fcn.10018aa6
mov esi, eax
test esi, esi
js 0x100188a3
push 0x7b
pop eax
cmp word [edi], ax
jne 0x1001879b
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10018751
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x1001879b
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x24]
push ebx
push edi
call fcn.10018336
mov esi, eax
test esi, esi
jns 0x10018786
cmp dword [ebp - 0x2c], 0
je 0x100188a3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10017a65
mov esi, eax
test esi, esi
js 0x100188a3
jmp 0x1001879e
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp eax, 2
je 0x10018866
test eax, eax
je 0x100187c9
cmp dword [ebp + 0x2220], 0
jne 0x10018866
push eax
call fcn.1001751f
pop ecx
mov esi, eax
jmp 0x100188a3
cmp dword [ebp + 0x2220], 0
je 0x10018809
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.10017922
test eax, eax
je 0x10018809
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x2000]
push eax
call fcn.1001754b
test eax, eax
je 0x10018866
cmp dword [ebp - 0x14], 0
je 0x10018866
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x24]
call fcn.10017e54
jmp 0x10018866
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.10017922
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x28], ecx
test ebx, ebx
je 0x1001882e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x28]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
jmp 0x10018830
xor ebx, ebx
mov dword [ebp - 0x20], ebx
test eax, eax
jne 0x100187bb
cmp dword [ebp - 0x14], eax
je 0x10018866
test ecx, ecx
jne 0x10018866
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x2000]
push eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.100176df
mov dword [ebp - 0x64], ebx
test eax, eax
jne 0x100187bb
push 0x7d
pop eax
cmp word [edi], ax
jne 0x100183b1
jmp 0x100188a3
push eax
call fcn.1001751f
mov esi, eax
pop ecx
test ebx, ebx
je 0x100188a3
push ebx
jmp 0x10018896
push eax
call fcn.1001751f
cmp dword [ebp - 0x44], 0
mov esi, eax
pop ecx
je 0x100188a3
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100188a3
mov esi, 0x80020009
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100188b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.1005e187
add ebp, 0x220c
leave
ret 0x10