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

Disassembly:
push 0xffffffffffffffff
push 0x4a46c6
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4c26a0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c26a0]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x250]
mov edi, dword [esp + 0x24c]
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x258]
mov dword [esp + 0x28], ecx
push edi
mov ecx, ebx
mov dword [esp + 0x248], ebp
call fcn.0045b9c0
mov esi, eax
cmp esi, ebp
jl 0x45deba
cmp byte [edi], 0x7d
je 0x45deb8
jmp 0x45d8e4
mov ebx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [esp + 0x1c], 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 0x45d917
test ebp, ebp
je 0x45d9fc
push edi
mov ecx, ebx
call fcn.0045b9c0
mov esi, eax
test esi, esi
jl 0x45dea9
xor esi, esi
cmp dword [esp + 0x254], esi
je 0x45d9fe
mov cl, byte [edi]
test cl, cl
mov dword [esp + 0x1c], esi
mov eax, edi
je 0x45d960
cmp cl, 0x5c
je 0x45d958
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x45d944
jmp 0x45d960
cmp eax, esi
jne 0x45de3a
push edi
mov ecx, ebx
call fcn.0045baf0
test eax, eax
je 0x45d982
mov edx, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edx
call fcn.0045bf30
mov dword [esp + 0x1c], esi
cmp ebp, esi
je 0x45d9fe
push edi
mov ecx, ebx
call fcn.0045b9c0
mov esi, eax
test esi, esi
jl 0x45de53
push edi
mov ecx, ebx
call fcn.0045bb80
mov esi, eax
test esi, esi
jl 0x45de53
cmp byte [edi], 0x7b
jne 0x45d9ee
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x45d9ee
mov edx, dword [esp + 0x254]
mov eax, dword [esp + 0x18]
push 0
push edx
push eax
push edi
mov ecx, ebx
call fcn.0045d850
mov esi, eax
test esi, esi
jl 0x45dea9
push edi
mov ecx, ebx
call fcn.0045b9c0
mov esi, eax
test esi, esi
jl 0x45dea9
cmp byte [edi], 0x7d
jne 0x45d8e0
jmp 0x45dea9
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x45da26
push edi
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.0045b9c0
mov esi, eax
test esi, esi
jl 0x45dea9
xor esi, esi
push 0x4a77bc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x45db24
lea eax, [esp + 0x134]
push eax
mov ecx, ebx
call fcn.0045b9c0
mov esi, eax
test esi, esi
jl 0x45dea9
push edi
mov ecx, ebx
call fcn.0045b9c0
mov esi, eax
test esi, esi
jl 0x45dea9
cmp byte [edi], 0x3d
jne 0x45de43
xor ebp, ebp
cmp dword [esp + 0x254], ebp
je 0x45dab9
mov ecx, dword [esp + 0x20]
push edi
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, ebx
mov byte [esp + 0x250], 1
call fcn.0045d480
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x14], ebp
jl 0x45de59
mov byte [esp + 0x244], 0
jmp 0x45d9aa
cmp dword [esp + 0x258], ebp
jne 0x45db13
cmp dword [esp + 0x14], ebp
je 0x45db13
mov ecx, dword [esp + 0x20]
push 0x20006
push ebp
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebp
call fcn.0044d6e0
cmp eax, ebp
jne 0x45de95
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x134]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebp
je 0x45db08
cmp eax, 2
jne 0x45de95
cmp esi, ebp
je 0x45db13
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, ebx
call fcn.0045bb80
mov esi, eax
cmp esi, ebp
jmp 0x45d9e8
mov cl, byte [edi]
test cl, cl
mov eax, edi
je 0x45db4c
lea esp, [esp]
cmp cl, 0x5c
je 0x45db44
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x45db30
jmp 0x45db4c
cmp eax, esi
jne 0x45de43
cmp dword [esp + 0x254], esi
je 0x45dc66
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push esi
push edi
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x45db9b
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, esi
je 0x45db89
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
je 0x45dc2d
xor esi, esi
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push edi
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x45dbd7
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, esi
je 0x45dbcb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
je 0x45dc2d
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push edx
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x45de6d
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x45dc1b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x18], ecx
jne 0x45de6d
push edi
mov ecx, ebx
call fcn.0045b9c0
mov esi, eax
test esi, esi
jl 0x45dea9
cmp byte [edi], 0x3d
jne 0x45d9aa
push edi
push 0
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.0045d480
mov esi, eax
test esi, esi
jl 0x45dea9
jmp 0x45d9aa
cmp dword [esp + 0x258], esi
jne 0x45dd7b
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push esi
push edi
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x45dcab
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, esi
je 0x45dca3
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
cmp eax, esi
mov ebp, eax
mov dword [esp + 0x1c], ebp
je 0x45dcc0
mov dword [esp + 0x258], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x38]
push 0x104
push eax
call fcn.00478931
push eax
call fcn.004011a0
add esp, 0x14
push edi
mov ecx, ebx
call fcn.0045b9c0
mov esi, eax
test esi, esi
jl 0x45dea9
push edi
mov ecx, ebx
call fcn.0045bb80
mov esi, eax
test esi, esi
jl 0x45dea9
cmp byte [edi], 0x7b
jne 0x45dd4b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x45dd4b
mov ebp, dword [esp + 0x258]
mov ecx, dword [esp + 0x18]
push ebp
push 0
push ecx
push edi
mov ecx, ebx
call fcn.0045d850
mov esi, eax
test esi, esi
jge 0x45dd35
test ebp, ebp
je 0x45dea9
push edi
mov ecx, ebx
call fcn.0045b9c0
mov esi, eax
test esi, esi
jl 0x45dea9
mov ebp, dword [esp + 0x1c]
cmp ebp, 2
mov eax, dword [esp + 0x28]
mov dword [esp + 0x258], eax
je 0x45d9ee
test ebp, ebp
je 0x45dd8c
test eax, eax
jne 0x45d9ee
push ebp
call fcn.0045b360
add esp, 4
mov esi, eax
jmp 0x45dea9
mov dword [esp + 0x1c], 2
mov ebp, dword [esp + 0x1c]
jmp 0x45dcb5
test eax, eax
je 0x45ddd2
mov edx, dword [esp + 0x18]
push edx
mov ecx, ebx
call fcn.0045bb30
test eax, eax
je 0x45ddd2
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.0045baf0
test eax, eax
je 0x45d9ee
cmp dword [esp + 0x14], 0
je 0x45d9ee
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0045bf30
jmp 0x45d9ee
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push ebp
call fcn.0045bb30
test ebp, ebp
mov ebx, eax
je 0x45de01
mov edx, ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], 0
jne 0x45de81
cmp dword [esp + 0x14], 0
je 0x45d9ee
test ebx, ebx
jne 0x45d9ee
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
mov dword [esp + 0x14], ebx
jne 0x45de95
lea ecx, [esp + 0x14]
call fcn.0044d8b0
jmp 0x45d9ee
lea ecx, [esp + 0x1c]
call fcn.0044d8b0
lea ecx, [esp + 0x18]
call fcn.0044d8b0
mov eax, 0x80020009
jmp 0x45deba
lea ecx, [esp + 0x1c]
jmp 0x45dea4
lea ecx, [esp + 0x14]
call fcn.0044d8b0
lea ecx, [esp + 0x18]
call fcn.0044d8b0
jmp 0x45deb8
lea ecx, [esp + 0x18]
call fcn.0044d8b0
push esi
call fcn.0045b360
add esp, 4
jmp 0x45deba
lea ecx, [esp + 0x18]
call fcn.0044d8b0
push ebp
call fcn.0045b360
add esp, 4
jmp 0x45deba
push eax
call fcn.0045b360
add esp, 4
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.0044d8b0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45deb8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00475ec4
add esp, 0x234
ret 0x10