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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x419486
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x421080]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x421080]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov edx, dword [ebp + 0x14]
mov eax, edi
mov dword [esp + 0x450], ebx
mov dword [esp + 0x28], edx
call fcn.00409ff0
mov esi, eax
cmp esi, ebx
jl 0x40ada4
cmp word [edi], 0x7d
je 0x40ada2
lea ecx, [ecx]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x2c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
add ebx, 1
call esi
test eax, eax
je 0x40a983
test ebx, ebx
je 0x40aa7f
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.00409ff0
mov esi, eax
test esi, esi
jl 0x40ad93
cmp dword [ebp + 0x10], 0
je 0x40aa7f
movzx ecx, word [edi]
test cx, cx
mov eax, edi
je 0x40a9ce
movzx ecx, cx
cmp cx, 0x5c
je 0x40a9c6
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x40a9af
jmp 0x40a9ce
test eax, eax
jne 0x40ae6c
mov esi, 0x41cac8
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a9fe
add esi, 4
cmp esi, 0x41caf8
jl 0x40a9d3
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
push edi
lea ecx, [esp + 0x18]
call fcn.004093c0
test ebx, ebx
je 0x40aa7f
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.00409ff0
mov esi, eax
test esi, esi
jl 0x40ad93
mov ecx, dword [esp + 0x1c]
call fcn.0040a510
mov esi, eax
test esi, esi
jl 0x40ad93
cmp word [edi], 0x7b
jne 0x40aa70
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40aa70
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push 0
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0040a8d0
mov esi, eax
test esi, esi
jl 0x40ad93
mov eax, edi
mov ecx, ebx
call fcn.00409ff0
mov esi, eax
test esi, esi
jl 0x40ad93
cmp word [edi], 0x7d
jne 0x40a950
jmp 0x40ad93
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40aaa8
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, edi
call fcn.00409ff0
mov esi, eax
test esi, esi
jl 0x40ad93
mov ebx, dword [esp + 0x1c]
push 0x41ca98
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40aba7
lea eax, [esp + 0x234]
mov ecx, ebx
call fcn.00409ff0
mov esi, eax
test esi, esi
jl 0x40ad93
mov eax, edi
mov ecx, ebx
call fcn.00409ff0
mov esi, eax
test esi, esi
jl 0x40ad93
cmp word [edi], 0x3d
jne 0x40ae6c
cmp dword [ebp + 0x10], 0
je 0x40ab38
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x454], 1
mov dword [esp + 0x18], edx
push ecx
mov ecx, edi
mov edx, ebx
call fcn.0040a140
mov esi, eax
test esi, esi
jl 0x40ad93
mov byte [esp + 0x450], 0
jmp 0x40aa2a
cmp dword [ebp + 0x14], 0
jne 0x40ab99
cmp dword [esp + 0x24], 0
je 0x40ab99
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push 0x20006
push 0
push 0
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ad8c
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x234]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40ab8e
cmp eax, 2
jne 0x40ae85
test ebx, ebx
je 0x40ab99
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
call fcn.0040a510
jmp 0x40aa66
movzx ecx, word [edi]
test cx, cx
mov eax, edi
je 0x40abd3
movzx ecx, cx
cmp cx, 0x5c
je 0x40abcb
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x40abb4
jmp 0x40abd3
test eax, eax
jne 0x40ae6c
cmp dword [ebp + 0x10], 0
je 0x40ac9f
mov ebx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push edi
push ebx
mov dword [esp + 0x28], 0
call esi
test eax, eax
jne 0x40ac1e
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40ac12
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x40ac69
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push edi
push ebx
mov dword [esp + 0x28], 0
call esi
test eax, eax
jne 0x40ac55
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40ac49
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x40ac69
push ebx
mov edx, edi
lea esi, [esp + 0x1c]
call fcn.004092d0
test eax, eax
jne 0x40ad8c
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.00409ff0
mov esi, eax
test esi, esi
jl 0x40ad93
cmp word [edi], 0x3d
jne 0x40aa2a
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
mov edx, ebx
call fcn.0040a140
jmp 0x40aa20
cmp dword [ebp + 0x14], 0
jne 0x40adca
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ace4
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40acdc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
test eax, eax
mov dword [esp + 0x14], eax
je 0x40acf3
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.0040c42a
push eax
call fcn.004051e0
add esp, 0x14
mov eax, edi
mov ecx, ebx
call fcn.00409ff0
mov esi, eax
test esi, esi
jl 0x40ad93
mov ecx, ebx
call fcn.0040a510
mov esi, eax
test esi, esi
jl 0x40ad93
cmp word [edi], 0x7b
jne 0x40ad6a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40ad6a
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push 0
push edx
push edi
mov ecx, ebx
call fcn.0040a8d0
mov esi, eax
test esi, esi
jge 0x40ad5b
cmp dword [ebp + 0x14], 0
je 0x40ad93
mov eax, edi
mov ecx, ebx
call fcn.00409ff0
mov esi, eax
test esi, esi
jl 0x40ad93
mov ecx, dword [esp + 0x14]
cmp ecx, 2
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x14], eax
je 0x40aa70
test ecx, ecx
je 0x40add7
test eax, eax
jne 0x40aa70
mov eax, ecx
call fcn.004090b0
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ada2
push eax
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.0040bbf1
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x14], 2
jmp 0x40acec
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x40ae17
mov ecx, ebx
call fcn.0040a4d0
test eax, eax
je 0x40ae17
lea ebx, [esp + 0x2c]
call fcn.0040a490
test eax, eax
je 0x40aa70
cmp dword [esp + 0x24], 0
je 0x40aa70
mov eax, ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.004093c0
jmp 0x40aa70
mov ecx, ebx
call fcn.0040a4d0
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x40ae39
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov dword [esp + 0x18], 0
jne 0x40aea0
cmp dword [esp + 0x24], 0
je 0x40aa70
cmp dword [esp + 0x14], 0
jne 0x40aa70
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40ad8c
jmp 0x40aa70
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ae7b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40ada4
call fcn.004090b0
test ebx, ebx
mov esi, eax
je 0x40ad93
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ad93
call fcn.004090b0
jmp 0x40ada4