Function at 0x4086dc
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40da76
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.0040d640
mov eax, dword [0x40f008]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x40f008]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2280], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, eax
push edi
call fcn.00408561
mov esi, eax
test esi, esi
js 0x408cb8
jmp 0x408c75
push 0x401370
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x401344
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4087a1
test esi, esi
je 0x408827
mov ecx, dword [esp + 0x18]
push edi
call fcn.00408561
mov esi, eax
test esi, esi
js 0x408cad
cmp dword [ebp + 0x10], 0
je 0x408827
xor eax, eax
mov ecx, edi
push 0x5c
pop edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00407c24
test eax, eax
jne 0x408ca8
push edi
call fcn.004082cf
test eax, eax
je 0x4087fd
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push edi
mov dword [esp + 0x40], eax
call fcn.00408305
xor eax, eax
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x1c], 0
je 0x408827
mov ecx, dword [esp + 0x18]
push edi
call fcn.00408561
mov esi, eax
test esi, esi
js 0x408cad
mov ecx, dword [esp + 0x18]
push edi
call fcn.00408261
jmp 0x408a67
push 0x40135c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40884f
mov ecx, dword [esp + 0x18]
push edi
mov dword [esp + 0x18], eax
call fcn.00408561
mov esi, eax
test esi, esi
js 0x408cad
push 0x40133c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40896a
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x26c]
push eax
call fcn.00408561
mov esi, eax
test esi, esi
js 0x408cad
mov ecx, dword [esp + 0x18]
push edi
call fcn.00408561
mov esi, eax
test esi, esi
js 0x408cad
push 0x3d
pop eax
cmp word [edi], ax
jne 0x408ca8
cmp dword [ebp + 0x10], 0
je 0x4088f1
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x2280], 1
mov dword [esp + 0x48], eax
lea eax, [esp + 0x26c]
push edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00407db7
mov esi, eax
xor eax, eax
mov dword [esp + 0x48], eax
test esi, esi
js 0x408cad
mov byte [esp + 0x2280], al
jmp 0x408a71
cmp dword [ebp + 0x14], 0
jne 0x408951
cmp dword [esp + 0x14], 0
je 0x408951
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
push 0x20006
push ecx
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408c9d
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x26c]
push eax
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x408946
cmp eax, 2
jne 0x408c83
test esi, esi
je 0x408951
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push edi
call fcn.00408261
mov esi, eax
test esi, esi
js 0x408cad
jmp 0x408c75
push 0x5c
pop edx
mov ecx, edi
call fcn.00407c24
test eax, eax
jne 0x408ca8
cmp dword [ebp + 0x10], eax
je 0x408ac6
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push 0x2001f
xor ecx, ecx
push ecx
push edi
push esi
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4089bd
test ebx, ebx
je 0x4089b1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x408a35
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
push 0x20019
push ecx
push edi
push esi
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4089f1
test ebx, ebx
je 0x4089e5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x408a35
lea eax, [esp + 0x60]
xor ecx, ecx
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408c9d
test ebx, ebx
je 0x408a25
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
test eax, eax
jne 0x408c9d
mov ecx, dword [esp + 0x18]
push edi
call fcn.00408561
mov esi, eax
test esi, esi
js 0x408cad
push 0x3d
pop eax
cmp word [edi], ax
jne 0x408a71
mov ecx, dword [esp + 0x18]
xor eax, eax
push edi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00407db7
mov ebx, dword [esp + 0x28]
mov esi, eax
test esi, esi
js 0x408cad
push 0x7b
pop eax
cmp word [edi], ax
jne 0x408c75
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x34]
jne 0x408a82
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x408c75
mov ecx, dword [esp + 0x18]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.004086dc
mov esi, eax
test esi, esi
js 0x408cad
mov ecx, dword [esp + 0x18]
push edi
call fcn.00408561
jmp 0x40895b
cmp dword [ebp + 0x14], 0
jne 0x408b0f
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push 0x20019
push esi
push edi
push dword [esp + 0x30]
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x408b1a
mov dword [esp + 0x24], esi
mov eax, esi
test ebx, ebx
je 0x408b05
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
jmp 0x408b16
push 2
pop eax
mov dword [esp + 0x24], eax
test eax, eax
je 0x408b21
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x6c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
push eax
call fcn.0040821d
mov ecx, dword [esp + 0x18]
push edi
call fcn.00408561
mov esi, eax
test esi, esi
js 0x408cad
mov ecx, dword [esp + 0x18]
push edi
call fcn.00408261
mov esi, eax
test esi, esi
js 0x408cad
push 0x7b
pop eax
cmp word [edi], ax
jne 0x408bbd
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x34]
jne 0x408b72
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x408bbd
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
xor eax, eax
push eax
push ebx
push edi
call fcn.004086dc
mov esi, eax
test esi, esi
jns 0x408ba9
cmp dword [ebp + 0x14], 0
je 0x408cad
mov ecx, dword [esp + 0x18]
push edi
call fcn.00408561
mov esi, eax
test esi, esi
js 0x408cad
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
cmp ecx, 2
je 0x408c75
test ecx, ecx
je 0x408be2
test eax, eax
je 0x408c9f
jmp 0x408c75
test eax, eax
je 0x408c19
push ebx
call fcn.00408441
test eax, eax
je 0x408c19
lea eax, [esp + 0x64]
push eax
call fcn.004082cf
test eax, eax
je 0x408c75
cmp dword [esp + 0x14], 0
je 0x408c75
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2c]
call fcn.00408305
mov ebx, dword [esp + 0x28]
jmp 0x408c75
push ebx
call fcn.00408441
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x408c40
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x28], ebx
test eax, eax
jne 0x408c9d
mov eax, dword [esp + 0x1c]
jmp 0x408c42
xor ecx, ecx
cmp dword [esp + 0x14], 0
je 0x408c75
test eax, eax
jne 0x408c75
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x54]
push eax
call fcn.0040849b
xor ecx, ecx
mov dword [esp + 0x54], ecx
test eax, eax
jne 0x408c9d
push 0x7d
pop eax
cmp word [edi], ax
jne 0x40876c
jmp 0x408cad
mov ecx, eax
call fcn.0040854c
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408cad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408cad
mov ecx, eax
call fcn.0040854c
mov esi, eax
jmp 0x408cad
mov esi, 0x80020009
test ebx, ebx
je 0x408cb8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.0040cb50
mov esp, ebp
pop ebp
ret 0x10