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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46d14a
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x48f5fc]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x48f5fc]
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.0040d358
mov esi, eax
test esi, esi
jl 0x40d8fd
cmp word [edi], 0x7d
je 0x40d8fb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x47b938
push edi
mov dword [esp + 0x24], 1
call esi
mov ebx, eax
neg ebx
push 0x47b95c
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40d517
test ebx, ebx
je 0x40d5e4
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040d358
mov esi, eax
test esi, esi
jl 0x40d8ea
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40d5e6
push 0x5c
mov eax, edi
call fcn.0040d231
test eax, eax
pop ecx
jne 0x40d9be
push edi
call fcn.0040def1
test eax, eax
je 0x40d565
mov eax, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
call fcn.00409dc6
cmp ebx, esi
je 0x40d5e6
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040d358
mov esi, eax
test esi, esi
jl 0x40d8ea
mov ecx, dword [esp + 0x18]
call fcn.0040de8c
mov esi, eax
test esi, esi
jl 0x40d8ea
cmp word [edi], 0x7b
jne 0x40d5d5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40d5d5
mov ecx, dword [esp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x1c]
push edi
call fcn.0040d469
mov esi, eax
test esi, esi
jl 0x40d8ea
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040d358
mov esi, eax
test esi, esi
jl 0x40d8ea
cmp word [edi], 0x7d
jne 0x40d4e6
jmp 0x40d8ea
xor esi, esi
push 0x47b948
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40d611
and dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040d358
mov esi, eax
test esi, esi
jl 0x40d8ea
xor esi, esi
push 0x47b974
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40d70d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x234]
call fcn.0040d358
mov esi, eax
test esi, esi
jl 0x40d8ea
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040d358
mov esi, eax
test esi, esi
jl 0x40d8ea
cmp word [edi], 0x3d
jne 0x40d9d8
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40d6a1
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.0040da2b
mov esi, eax
cmp esi, ebx
jl 0x40d9df
mov byte [esp + 0x450], bl
jmp 0x40d591
cmp dword [ebp + 0x14], ebx
jne 0x40d6fb
cmp dword [esp + 0x1c], ebx
je 0x40d6fb
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 0x40d8e3
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x234]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40d6ee
cmp eax, 2
jne 0x40d9e8
test ebx, ebx
je 0x40d6f9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [esp + 0x18]
call fcn.0040de8c
mov esi, eax
cmp esi, ebx
jmp 0x40d5cf
push 0x5c
mov eax, edi
call fcn.0040d231
test eax, eax
pop ecx
jne 0x40d9be
cmp dword [ebp + 0x10], esi
je 0x40d7e8
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 0x40d766
xor eax, eax
cmp dword [esp + 0x14], esi
je 0x40d75a
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 0x40d7b4
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 0x40d79e
xor eax, eax
cmp dword [esp + 0x14], esi
je 0x40d792
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 0x40d7b4
push edi
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
call fcn.00409d88
cmp eax, esi
jne 0x40da03
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040d358
mov esi, eax
test esi, esi
jl 0x40d8ea
cmp word [edi], 0x3d
jne 0x40d591
mov ecx, dword [esp + 0x18]
push edi
push 0
lea edx, [esp + 0x1c]
call fcn.0040da2b
jmp 0x40d587
cmp dword [ebp + 0x14], esi
jne 0x40d82b
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 0x40d825
xor eax, eax
cmp dword [esp + 0x14], esi
je 0x40d81d
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 0x40d833
mov dword [esp + 0x20], 2
cmp dword [esp + 0x20], esi
je 0x40d840
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.0044eba2
push eax
call fcn.004017e2
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, edi
call fcn.0040d358
mov esi, eax
test esi, esi
jl 0x40d8ea
mov ecx, dword [esp + 0x18]
call fcn.0040de8c
mov esi, eax
test esi, esi
jl 0x40d8ea
cmp word [edi], 0x7b
jne 0x40d8bd
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40d8bd
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0x1c]
push edi
call fcn.0040d469
mov esi, eax
test esi, esi
jge 0x40d8ac
cmp dword [ebp + 0x14], 0
je 0x40d8ea
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040d358
mov esi, eax
test esi, esi
jl 0x40d8ea
cmp dword [esp + 0x20], 2
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x14], eax
je 0x40d5d5
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x40d923
cmp eax, ebx
jne 0x40d5d5
mov eax, dword [esp + 0x20]
call fcn.0040df52
mov esi, eax
cmp dword [esp + 0x14], 0
je 0x40d8fb
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.0044a0e3
mov esp, ebp
pop ebp
ret 0x10
cmp eax, ebx
je 0x40d964
push dword [esp + 0x14]
call fcn.0040df1d
test eax, eax
je 0x40d964
lea eax, [esp + 0x2c]
push eax
call fcn.0040def1
test eax, eax
je 0x40d5d5
cmp dword [esp + 0x1c], 0
je 0x40d5d5
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00409dc6
jmp 0x40d5d5
push dword [esp + 0x14]
call fcn.0040df1d
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
je 0x40d98d
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jne 0x40da21
cmp dword [esp + 0x1c], ebx
je 0x40d5d5
cmp dword [esp + 0x20], 0
jne 0x40d5d5
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40d8e3
jmp 0x40d5d5
cmp dword [esp + 0x14], esi
je 0x40d9ce
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40d8fd
cmp dword [esp + 0x14], 0
jmp 0x40d9c2
cmp dword [esp + 0x14], ebx
jmp 0x40d8ef
call fcn.0040df52
test ebx, ebx
mov esi, eax
je 0x40d8ea
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d8ea
call fcn.0040df52
cmp dword [esp + 0x14], esi
mov edi, eax
je 0x40da1a
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40d8fd
call fcn.0040df52
jmp 0x40d8fd