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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49f972
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.00482980
mov eax, dword [0x4d3a00]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x4d3a00]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2280], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x5c], ecx
mov ecx, eax
push edi
call fcn.00405623
mov esi, eax
test esi, esi
js 0x406635
push 0x7d
pop eax
cmp word [edi], ax
je 0x406635
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4b490c
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40611b
test ebx, ebx
je 0x4061e2
mov ecx, dword [esp + 0x10]
push edi
call fcn.00405623
mov esi, eax
test esi, esi
js 0x406635
cmp dword [ebp + 0x10], 0
je 0x4061e2
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x2280], 1
mov ecx, edi
push 0x5c
pop edx
call fcn.004055ce
test eax, eax
jne 0x406623
push edi
call fcn.00405b7a
test eax, eax
je 0x406197
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
xor eax, eax
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00404ddd
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jmp 0x406199
xor eax, eax
test ebx, ebx
je 0x4061d7
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.00405623
mov esi, eax
test esi, esi
js 0x406614
push edi
mov ecx, ebx
call fcn.00405bdd
mov esi, eax
xor eax, eax
test esi, esi
js 0x406616
mov byte [esp + 0x2280], al
mov dword [esp + 0x28], eax
jmp 0x4065b2
mov byte [esp + 0x2280], al
mov dword [esp + 0x28], eax
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x40620c
push edi
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.00405623
mov esi, eax
test esi, esi
js 0x406635
push 0x4b4904
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40634d
lea eax, [esp + 0x26c]
mov ecx, ebx
push eax
call fcn.00405623
mov esi, eax
test esi, esi
js 0x406635
push edi
mov ecx, ebx
call fcn.00405623
mov esi, eax
test esi, esi
js 0x406635
push 0x3d
pop eax
cmp word [edi], ax
jne 0x406630
cmp dword [ebp + 0x10], 0
je 0x4062c0
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x2280], 2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x26c]
push edi
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov ecx, ebx
push eax
call fcn.00405761
mov esi, eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
test esi, esi
js 0x406658
mov byte [esp + 0x2280], al
mov dword [esp + 0x48], eax
jmp 0x4065b2
cmp dword [ebp + 0x14], 0
jne 0x406340
cmp dword [esp + 0x34], 0
je 0x406340
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x2280], 3
lea ecx, [esp + 0x38]
push 0x20006
push ebx
push dword [esp + 0x1c]
call fcn.004020cc
test eax, eax
jne 0x40668a
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x26c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40631e
cmp eax, 2
jne 0x406665
xor eax, eax
mov byte [esp + 0x2280], al
test ebx, ebx
je 0x406338
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
push edi
mov ecx, ebx
call fcn.00405bdd
jmp 0x4065fd
push 0x5c
pop edx
mov ecx, edi
call fcn.004055ce
test eax, eax
jne 0x406630
cmp dword [ebp + 0x10], eax
je 0x4063e3
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0x2001f
push edi
push esi
call fcn.004020cc
test eax, eax
je 0x4063a6
push 0x20019
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.004020cc
test eax, eax
je 0x4063a6
sub esp, 0x14
lea ecx, [esp + 0x2c]
push edi
push esi
call fcn.00404d26
test eax, eax
jne 0x4064d2
push edi
mov ecx, ebx
call fcn.00405623
mov esi, eax
test esi, esi
js 0x406635
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4065b2
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00405761
mov esi, eax
test esi, esi
js 0x406635
jmp 0x4065b2
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4063ff
push 0x20019
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.004020cc
jmp 0x406402
push 2
pop eax
push 1
test eax, eax
mov dword [esp + 0x34], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [esp + 0x68]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.0047ba5a
push eax
call fcn.004046be
add esp, 0x14
mov ecx, ebx
push edi
call fcn.00405623
mov esi, eax
test esi, esi
js 0x406635
push edi
mov ecx, ebx
call fcn.00405bdd
mov esi, eax
test esi, esi
js 0x406635
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4064ae
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40645f
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x4064ae
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x20]
push ebx
push edi
call fcn.00406056
mov esi, eax
test esi, esi
jns 0x406498
cmp dword [ebp + 0x14], 0
je 0x406635
mov ecx, dword [esp + 0x10]
push edi
call fcn.00405623
mov esi, eax
test esi, esi
js 0x406635
jmp 0x4064b2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x406603
test eax, eax
je 0x4064e0
test ecx, ecx
jne 0x406603
mov ecx, eax
call fcn.0040473e
mov esi, eax
jmp 0x406635
test ecx, ecx
je 0x40651e
push ebx
call fcn.00405ba6
test eax, eax
je 0x40651e
lea eax, [esp + 0x64]
push eax
call fcn.00405b7a
test eax, eax
je 0x406603
cmp dword [esp + 0x34], 0
je 0x406603
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ddd
jmp 0x406603
push ebx
call fcn.00405ba6
mov ecx, eax
xor eax, eax
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x406543
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x406545
xor ebx, ebx
mov dword [esp + 0x1c], ebx
test eax, eax
jne 0x4064d2
cmp dword [esp + 0x34], eax
je 0x406603
test ecx, ecx
jne 0x406603
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x2280], 4
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
test eax, eax
jne 0x4066b5
mov byte [esp + 0x2280], bl
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x406603
push 0x7b
pop eax
cmp word [edi], ax
jne 0x406603
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x60]
jne 0x4065c5
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x406606
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [esp + 0x20]
push edi
call fcn.00406056
mov esi, eax
test esi, esi
js 0x406635
push edi
mov ecx, ebx
call fcn.00405623
mov esi, eax
test esi, esi
js 0x406635
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x4060ee
jmp 0x406635
xor eax, eax
mov byte [esp + 0x2280], al
mov dword [esp + 0x28], eax
jmp 0x406635
xor eax, eax
mov byte [esp + 0x2280], al
mov dword [esp + 0x28], eax
mov esi, 0x80020009
or dword [esp + 0x2280], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4066ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x4066d0
mov byte [esp + 0x2280], al
mov dword [esp + 0x48], eax
jmp 0x406635
mov ecx, eax
call fcn.0040473e
mov esi, eax
xor eax, eax
mov byte [esp + 0x2280], al
test ebx, ebx
je 0x406686
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x4066ab
xor ebx, ebx
jmp 0x4066af
mov ecx, eax
call fcn.0040473e
mov esi, eax
mov byte [esp + 0x2280], bl
cmp dword [esp + 0x38], 0
je 0x4066af
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
jmp 0x406635
mov ecx, eax
call fcn.0040473e
mov esi, eax
mov byte [esp + 0x2280], bl
mov dword [esp + 0x54], ebx
jmp 0x406635
xor eax, eax
mov dword [esp + 0x1c], eax
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.0047aabf
mov esp, ebp
pop ebp
ret 0x10