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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428c46
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x433060]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x433060]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], esi
mov edx, dword [ebp + 0x14]
mov eax, ebx
mov dword [esp + 0x458], esi
mov dword [esp + 0x30], edx
call fcn.0040c710
mov edi, eax
cmp edi, esi
jl 0x40ce9b
cmp word [ebx], 0x7d
je 0x40ce99
mov edi, dword [0x42b074]
push str.Delete
push ebx
mov dword [esp + 0x1c], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
add esi, 1
call edi
test eax, eax
je 0x40c914
test esi, esi
je 0x40ca24
mov ecx, dword [esp + 0x20]
mov eax, ebx
call fcn.0040c710
mov edi, eax
test edi, edi
jl 0x40ce8a
cmp dword [ebp + 0x10], 0
je 0x40ca24
movzx ecx, word [ebx]
test cx, cx
mov dword [esp + 0x1c], 0
mov eax, ebx
je 0x40c967
movzx ecx, cx
cmp cx, 0x5c
je 0x40c95f
push eax
call dword [0x42b27c]
movzx ecx, word [eax]
test cx, cx
jne 0x40c948
jmp 0x40c967
test eax, eax
jne 0x40ce21
mov edi, 0x42e484
lea esp, [esp]
mov eax, dword [edi]
push eax
push ebx
call dword [0x42b074]
test eax, eax
je 0x40c9a3
add edi, 4
cmp edi, 0x42e4b4
jl 0x40c970
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
push ebx
lea ecx, [esp + 0x20]
call fcn.0040d500
mov dword [esp + 0x1c], 0
test esi, esi
je 0x40ca24
mov esi, dword [esp + 0x20]
mov eax, ebx
mov ecx, esi
call fcn.0040c710
mov edi, eax
test edi, edi
jl 0x40ce3a
mov edi, ebx
mov ecx, esi
call fcn.0040d450
mov edi, eax
test edi, edi
jl 0x40ce3a
cmp word [ebx], 0x7b
jne 0x40cdb3
push ebx
call dword [0x42b04c]
cmp eax, 1
jne 0x40cdb3
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
push 0
push edx
push eax
push ebx
mov ecx, esi
call fcn.0040c860
mov edi, eax
test edi, edi
jl 0x40ce8a
mov eax, ebx
mov ecx, esi
call fcn.0040c710
mov edi, eax
test edi, edi
jl 0x40ce8a
jmp 0x40cdb3
push str.NoRemove
push ebx
call dword [0x42b074]
test eax, eax
jne 0x40ca4d
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, ebx
call fcn.0040c710
mov edi, eax
test edi, edi
jl 0x40ce8a
push 0x42da2c
push ebx
call dword [0x42b074]
test eax, eax
jne 0x40cb5f
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x23c]
call fcn.0040c710
mov edi, eax
test edi, edi
jl 0x40ce8a
mov ecx, dword [esp + 0x20]
mov eax, ebx
call fcn.0040c710
mov edi, eax
test edi, edi
jl 0x40ce8a
cmp word [ebx], 0x3d
jne 0x40ce2a
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40cae4
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x45c], 1
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.0040ced0
mov edi, eax
cmp edi, esi
mov dword [esp + 0x14], esi
jl 0x40ce40
mov byte [esp + 0x458], 0
jmp 0x40c9d1
cmp dword [ebp + 0x14], esi
jne 0x40cb45
cmp dword [esp + 0x14], esi
je 0x40cb45
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push 0x20006
push esi
push esi
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
call dword [0x42b020]
cmp eax, esi
jne 0x40ce7a
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x23c]
push ecx
push esi
mov dword [esp + 0x1c], esi
call dword [0x42b004]
test eax, eax
je 0x40cb3a
cmp eax, 2
jne 0x40ce7a
test esi, esi
je 0x40cb45
push esi
call dword [section..rdata]
mov ecx, dword [esp + 0x20]
mov edi, ebx
call fcn.0040d450
mov edi, eax
test edi, edi
jl 0x40ce8a
jmp 0x40cdb3
movzx ecx, word [ebx]
xor edi, edi
cmp cx, di
mov eax, ebx
je 0x40cb8f
movzx ecx, cx
mov edi, edi
cmp cx, 0x5c
je 0x40cb87
push eax
call dword [0x42b27c]
movzx ecx, word [eax]
cmp cx, di
jne 0x40cb70
jmp 0x40cb8f
cmp eax, edi
jne 0x40ce2a
cmp dword [ebp + 0x10], edi
je 0x40cc6a
mov eax, dword [esp + 0x24]
mov esi, dword [0x42b020]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push edi
push ebx
push eax
mov dword [esp + 0x28], edi
call esi
cmp eax, edi
jne 0x40cbd8
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, edi
je 0x40cbca
push ecx
call dword [section..rdata]
cmp eax, edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x40cc2a
xor edi, edi
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x20019
push edi
push ebx
push eax
mov dword [esp + 0x28], edi
call esi
cmp eax, edi
jne 0x40cc10
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, edi
je 0x40cc04
push ecx
call dword [section..rdata]
cmp eax, edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x40cc2a
mov edx, dword [esp + 0x24]
push edx
mov edx, ebx
lea esi, [esp + 0x1c]
call fcn.00408520
mov edi, eax
test edi, edi
jne 0x40ce54
mov esi, dword [esp + 0x20]
mov eax, ebx
mov ecx, esi
call fcn.0040c710
mov edi, eax
test edi, edi
jl 0x40ce8a
cmp word [ebx], 0x3d
jne 0x40c9d1
push 0
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
mov edx, esi
call fcn.0040ced0
mov edi, eax
test edi, edi
jl 0x40ce8a
jmp 0x40c9d1
cmp dword [ebp + 0x14], edi
jne 0x40cd6f
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push edi
push ebx
push edx
mov dword [esp + 0x30], edi
call dword [0x42b020]
cmp eax, edi
jne 0x40ccab
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, edi
je 0x40cca3
push ecx
call dword [section..rdata]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
cmp eax, edi
mov dword [esp + 0x1c], eax
je 0x40ccba
mov dword [ebp + 0x14], 1
push 0x103
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.004161fd
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov eax, ebx
mov ecx, esi
mov word [esp + 0x23a], 0
call fcn.0040c710
mov edi, eax
test edi, edi
jl 0x40ce8a
mov edi, ebx
mov ecx, esi
call fcn.0040d450
mov edi, eax
test edi, edi
jl 0x40ce8a
cmp word [ebx], 0x7b
jne 0x40cd49
push ebx
call dword [0x42b04c]
cmp eax, 1
jne 0x40cd49
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push 0
push ecx
push ebx
mov ecx, esi
call fcn.0040c860
mov edi, eax
test edi, edi
jge 0x40cd36
cmp dword [ebp + 0x14], 0
je 0x40ce8a
mov eax, ebx
mov ecx, esi
call fcn.0040c710
mov edi, eax
test edi, edi
jl 0x40ce8a
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x14], eax
je 0x40cdb3
test ecx, ecx
je 0x40cd7c
test eax, eax
jne 0x40cdb3
mov eax, ecx
call fcn.0040d690
mov edi, eax
jmp 0x40ce8a
mov dword [esp + 0x1c], 2
jmp 0x40ccb3
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40cdc2
mov ecx, esi
call fcn.0040d650
test eax, eax
je 0x40cdc2
lea ebx, [esp + 0x34]
call fcn.0040d4c0
test eax, eax
je 0x40cdaf
cmp dword [esp + 0x14], 0
je 0x40cdaf
mov edx, ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.0040d500
mov ebx, dword [esp + 0x28]
cmp word [ebx], 0x7d
jne 0x40c8e1
jmp 0x40ce8a
mov ecx, esi
call fcn.0040d650
test esi, esi
mov dword [esp + 0x1c], eax
je 0x40cdec
push esi
call dword [section..rdata]
test eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 0
jne 0x40ce66
cmp dword [esp + 0x14], 0
je 0x40cdb3
cmp dword [esp + 0x1c], 0
jne 0x40cdb3
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [0x42b00c]
test eax, eax
mov dword [esp + 0x14], 0
jne 0x40ce7a
lea esi, [esp + 0x14]
call fcn.00406420
jmp 0x40cdb3
lea esi, [esp + 0x1c]
call fcn.00406420
lea esi, [esp + 0x18]
call fcn.00406420
mov eax, 0x80020009
jmp 0x40ce9b
lea esi, [esp + 0x1c]
jmp 0x40ce85
lea esi, [esp + 0x14]
call fcn.00406420
lea esi, [esp + 0x18]
call fcn.00406420
jmp 0x40ce99
lea esi, [esp + 0x18]
call fcn.00406420
mov eax, edi
call fcn.0040d690
jmp 0x40ce9b
lea esi, [esp + 0x18]
call fcn.00406420
mov eax, dword [esp + 0x2c]
call fcn.0040d690
jmp 0x40ce9b
call fcn.0040d690
mov edi, eax
lea esi, [esp + 0x14]
call fcn.00406420
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ce99
push eax
call dword [section..rdata]
mov eax, edi
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00416130
mov esp, ebp
pop ebp
ret 0x10