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

Disassembly:
sub esp, 0x228
mov eax, dword [0x432fc8]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x230]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [esp + 0x240]
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x20], ecx
push edi
mov ecx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
call fcn.0040a170
mov esi, eax
test esi, esi
jl 0x40bc73
cmp byte [edi], 0x7d
push ebp
je 0x40bc70
jmp 0x40b6b4
mov ebx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [esp + 0x18], 1
call esi
mov ebp, eax
neg ebp
push str.ForceRemove
sbb ebp, ebp
push edi
add ebp, 1
call esi
test eax, eax
je 0x40b6e7
test ebp, ebp
je 0x40b7cc
push edi
mov ecx, ebx
call fcn.0040a170
mov esi, eax
test esi, esi
jl 0x40bc61
xor esi, esi
cmp dword [esp + 0x244], esi
je 0x40b7ce
mov cl, byte [edi]
test cl, cl
mov dword [esp + 0x18], esi
mov eax, edi
je 0x40b730
cmp cl, 0x5c
je 0x40b728
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x40b714
jmp 0x40b730
cmp eax, esi
jne 0x40bc06
push edi
mov ecx, ebx
call fcn.0040a2a0
test eax, eax
je 0x40b752
mov edx, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.0040a450
mov dword [esp + 0x18], esi
cmp ebp, esi
je 0x40b7ce
push edi
mov ecx, ebx
call fcn.0040a170
mov esi, eax
test esi, esi
jl 0x40bc1f
push edi
mov ecx, ebx
call fcn.0040a330
mov esi, eax
test esi, esi
jl 0x40bc1f
cmp byte [edi], 0x7b
jne 0x40b7be
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40b7be
mov edx, dword [esp + 0x244]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
push edi
mov ecx, ebx
call fcn.0040b650
mov esi, eax
test esi, esi
jl 0x40bc61
push edi
mov ecx, ebx
call fcn.0040a170
mov esi, eax
test esi, esi
jl 0x40bc61
cmp byte [edi], 0x7d
jne 0x40b6b0
jmp 0x40bc61
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40b7f6
push edi
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.0040a170
mov esi, eax
test esi, esi
jl 0x40bc61
xor esi, esi
push 0x428508
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40b8f6
lea eax, [esp + 0x130]
push eax
mov ecx, ebx
call fcn.0040a170
mov esi, eax
test esi, esi
jl 0x40bc61
push edi
mov ecx, ebx
call fcn.0040a170
mov esi, eax
test esi, esi
jl 0x40bc61
cmp byte [edi], 0x3d
jne 0x40bc0f
xor ebp, ebp
cmp dword [esp + 0x244], ebp
je 0x40b88b
mov ecx, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
mov ecx, ebx
call fcn.0040b2e0
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x10], ebp
jge 0x40b77a
lea ecx, [esp + 0x10]
call fcn.0040a430
lea ecx, [esp + 0x14]
call fcn.0040a430
jmp 0x40bc70
cmp dword [esp + 0x248], ebp
jne 0x40b8e5
cmp dword [esp + 0x10], ebp
je 0x40b8e5
mov ecx, dword [esp + 0x1c]
push 0x20006
push ebp
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.00409dc0
cmp eax, ebp
jne 0x40bc4d
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x130]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebp
je 0x40b8da
cmp eax, 2
jne 0x40bc4d
cmp esi, ebp
je 0x40b8e5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, ebx
call fcn.0040a330
mov esi, eax
cmp esi, ebp
jmp 0x40b7b8
mov cl, byte [edi]
test cl, cl
mov eax, edi
je 0x40b91c
mov edi, edi
cmp cl, 0x5c
je 0x40b914
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x40b900
jmp 0x40b91c
cmp eax, esi
jne 0x40bc0f
cmp dword [esp + 0x244], esi
je 0x40ba36
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push esi
push edi
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40b96b
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x40b959
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
je 0x40b9fd
xor esi, esi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push edi
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40b9a7
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x40b99b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
je 0x40b9fd
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push edx
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x40bc25
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40b9eb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x14], ecx
jne 0x40bc25
push edi
mov ecx, ebx
call fcn.0040a170
mov esi, eax
test esi, esi
jl 0x40bc61
cmp byte [edi], 0x3d
jne 0x40b77a
push edi
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.0040b2e0
mov esi, eax
test esi, esi
jl 0x40bc61
jmp 0x40b77a
cmp dword [esp + 0x248], esi
jne 0x40bb4b
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push edi
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40ba7b
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x40ba73
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp eax, esi
mov ebp, eax
mov dword [esp + 0x18], ebp
je 0x40ba90
mov dword [esp + 0x248], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.0041843c
push eax
call fcn.00408330
add esp, 0x14
push edi
mov ecx, ebx
call fcn.0040a170
mov esi, eax
test esi, esi
jl 0x40bc61
push edi
mov ecx, ebx
call fcn.0040a330
mov esi, eax
test esi, esi
jl 0x40bc61
cmp byte [edi], 0x7b
jne 0x40bb1b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40bb1b
mov ebp, dword [esp + 0x248]
mov ecx, dword [esp + 0x14]
push ebp
push 0
push ecx
push edi
mov ecx, ebx
call fcn.0040b650
mov esi, eax
test esi, esi
jge 0x40bb05
test ebp, ebp
je 0x40bc61
push edi
mov ecx, ebx
call fcn.0040a170
mov esi, eax
test esi, esi
jl 0x40bc61
mov ebp, dword [esp + 0x18]
cmp ebp, 2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x248], eax
je 0x40b7be
test ebp, ebp
je 0x40bb5c
test eax, eax
jne 0x40b7be
push ebp
call fcn.00409cb0
add esp, 4
mov esi, eax
jmp 0x40bc61
mov dword [esp + 0x18], 2
mov ebp, dword [esp + 0x18]
jmp 0x40ba85
test eax, eax
je 0x40bba2
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
call fcn.0040a2e0
test eax, eax
je 0x40bba2
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.0040a2a0
test eax, eax
je 0x40b7be
cmp dword [esp + 0x10], 0
je 0x40b7be
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040a450
jmp 0x40b7be
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push ebp
call fcn.0040a2e0
test ebp, ebp
mov ebx, eax
je 0x40bbcd
mov edx, ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], 0
jne 0x40bc39
cmp dword [esp + 0x10], 0
je 0x40b7be
test ebx, ebx
jne 0x40b7be
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
mov dword [esp + 0x10], ebx
jne 0x40bc4d
lea ecx, [esp + 0x10]
call fcn.0040a430
jmp 0x40b7be
lea ecx, [esp + 0x18]
call fcn.0040a430
lea ecx, [esp + 0x14]
call fcn.0040a430
mov eax, 0x80020009
jmp 0x40bc72
lea ecx, [esp + 0x18]
jmp 0x40bc5c
lea ecx, [esp + 0x14]
call fcn.0040a430
push esi
call fcn.00409cb0
add esp, 4
jmp 0x40bc72
lea ecx, [esp + 0x14]
call fcn.0040a430
push ebp
call fcn.00409cb0
add esp, 4
jmp 0x40bc72
push eax
call fcn.00409cb0
add esp, 4
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.0040a430
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40bc70
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00417168
add esp, 0x228
ret 0x10