Function at 0x4066a0
Capabilities:
Delete registry key
Delete registry value
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44eceb
mov eax, dword fs:[0]
push eax
mov eax, 0x1140
call fcn.0040ad10
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1120], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x111c], eax
mov dword [ebp - 0x112c], 0
mov dword [ebp - 0x1128], 0
mov dword [ebp - 0x1124], 0
push ebx
mov dword [ebp - 4], 0
call fcn.004058c0
mov esi, eax
test esi, esi
js 0x407035
cmp byte [ebx], 0x7d
je 0x407022
nop dword [eax]
nop word [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x1130], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x406763
test edi, edi
je 0x406857
mov ecx, dword [ebp - 0x1120]
push ebx
call fcn.004058c0
mov esi, eax
test esi, esi
js 0x407022
cmp dword [ebp + 0x10], 0
je 0x406857
mov al, byte [ebx]
mov ecx, ebx
mov dword [ebp - 0x1140], 0
mov dword [ebp - 0x1138], 0
test al, al
je 0x4067bd
nop
cmp al, 0x5c
je 0x4067b5
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x4067a0
jmp 0x4067bd
test ecx, ecx
jne 0x40700b
mov esi, 0x45054c
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x406810
add esi, 4
cmp esi, 0x45057c
jl 0x4067c2
mov eax, dword [ebp - 0x111c]
lea ecx, [ebp - 0x1140]
push ebx
mov dword [ebp - 0x1140], eax
mov dword [ebp - 0x113c], 0
call fcn.00405e20
mov dword [ebp - 0x1140], 0
mov dword [ebp - 0x1138], 0
test edi, edi
je 0x40684d
mov edi, dword [ebp - 0x1120]
mov ecx, edi
push ebx
call fcn.004058c0
mov esi, eax
test esi, esi
js 0x407022
push ebx
mov ecx, edi
call fcn.00407060
mov esi, eax
test esi, esi
js 0x407022
mov dword [ebp - 0x113c], 0
jmp 0x406c6d
mov dword [ebp - 0x113c], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406887
mov ecx, dword [ebp - 0x1120]
xor edi, edi
push ebx
mov dword [ebp - 0x1130], edi
call fcn.004058c0
mov esi, eax
test esi, esi
js 0x407022
jmp 0x40688d
mov edi, dword [ebp - 0x1130]
push 0x4504c4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4069dc
mov ecx, dword [ebp - 0x1120]
lea eax, [ebp - 0x1114]
push eax
call fcn.004058c0
mov esi, eax
test esi, esi
js 0x407022
mov ecx, dword [ebp - 0x1120]
push ebx
call fcn.004058c0
mov esi, eax
test esi, esi
js 0x407022
cmp byte [ebx], 0x3d
jne 0x40700b
cmp dword [ebp + 0x10], 0
je 0x40695d
mov eax, dword [ebp - 0x111c]
mov edi, dword [ebp - 0x1120]
mov ecx, edi
mov dword [ebp - 0x114c], eax
lea eax, [ebp - 0x1114]
push ebx
push eax
lea eax, [ebp - 0x114c]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
call fcn.00402600
mov esi, eax
mov dword [ebp - 0x114c], 0
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
test esi, esi
js 0x407022
mov byte [ebp - 4], 0
mov dword [ebp - 0x1148], 0
jmp 0x406c6d
cmp dword [ebp + 0x14], 0
jne 0x4069c1
test edi, edi
je 0x4069c1
lea eax, [ebp - 0x1130]
mov dword [ebp - 0x1130], 0
push eax
push 0x20006
push 0
push 0
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407017
mov edi, dword [ebp - 0x1130]
lea eax, [ebp - 0x1114]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4069b6
cmp eax, 2
jne 0x406ff3
test edi, edi
je 0x4069c1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1120]
push ebx
call fcn.00407060
mov esi, eax
test esi, esi
js 0x407022
jmp 0x406fe8
mov al, byte [ebx]
mov ecx, ebx
test al, al
je 0x406a01
cmp al, 0x5c
je 0x4069f9
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x4069e4
jmp 0x406a01
test ecx, ecx
jne 0x40700b
cmp dword [ebp + 0x10], 0
je 0x406cc6
mov esi, dword [ebp - 0x1124]
mov dword [ebp - 0x1118], 0
test esi, esi
je 0x406a71
cmp dword [esi], 0
je 0x406a64
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x406ac1
push str.RegOpenKeyTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406a6a
push 0
push dword [esi]
lea ecx, [ebp - 0x1118]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x111c]
call eax
jmp 0x406a8c
cmp dword [esi + 4], 0
jne 0x406a71
mov eax, 1
jmp 0x406a8c
lea eax, [ebp - 0x1118]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406ac1
mov ecx, dword [ebp - 0x112c]
test ecx, ecx
je 0x406aa1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1118]
mov dword [ebp - 0x112c], edi
mov dword [ebp - 0x1128], 0
test eax, eax
je 0x406c35
jmp 0x406ac7
mov edi, dword [ebp - 0x112c]
mov dword [ebp - 0x1118], 0
test esi, esi
je 0x406b27
cmp dword [esi], 0
je 0x406b1a
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x406b6f
push str.RegOpenKeyTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406b20
push 0
push dword [esi]
lea ecx, [ebp - 0x1118]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x111c]
call eax
jmp 0x406b42
cmp dword [esi + 4], 0
jne 0x406b27
mov eax, 1
jmp 0x406b42
lea eax, [ebp - 0x1118]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406b6f
test edi, edi
je 0x406b51
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1118]
mov dword [ebp - 0x112c], edi
mov dword [ebp - 0x1128], 0
test eax, eax
je 0x406c35
mov dword [ebp - 0x1118], 0
test esi, esi
je 0x406bdc
cmp dword [esi], 0
je 0x406bcf
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x407012
push str.RegCreateKeyTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406bd5
push 0
push dword [esi]
lea ecx, [ebp - 0x1134]
push ecx
lea ecx, [ebp - 0x1118]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x111c]
call eax
jmp 0x406c04
cmp dword [esi + 4], 0
jne 0x406bdc
mov eax, 1
jmp 0x406c04
lea eax, [ebp - 0x1134]
push eax
lea eax, [ebp - 0x1118]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407017
test edi, edi
je 0x406c17
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1118]
mov dword [ebp - 0x112c], edi
mov dword [ebp - 0x1128], 0
test eax, eax
jne 0x407017
mov edi, dword [ebp - 0x1120]
mov ecx, edi
push ebx
call fcn.004058c0
mov esi, eax
test esi, esi
js 0x407022
cmp byte [ebx], 0x3d
jne 0x406c6d
push ebx
push 0
lea eax, [ebp - 0x112c]
mov ecx, edi
push eax
call fcn.00402600
mov esi, eax
test esi, esi
js 0x407022
cmp byte [ebx], 0x7b
jne 0x406fe8
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406c80
sub ecx, edx
cmp ecx, 1
jne 0x406fe8
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x112c]
push ebx
call fcn.004066a0
mov esi, eax
test esi, esi
js 0x407022
push ebx
mov ecx, edi
call fcn.004058c0
mov esi, eax
test esi, esi
js 0x407022
jmp 0x406fe8
cmp dword [ebp + 0x14], 0
jne 0x406d86
mov esi, dword [ebp - 0x1124]
mov dword [ebp - 0x1118], 0
test esi, esi
je 0x406d3a
cmp dword [esi], 0
je 0x406d2d
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x406d00
lea edi, [eax + 1]
jmp 0x406d8b
push str.RegOpenKeyTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406d33
push 0
push dword [esi]
lea ecx, [ebp - 0x1118]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x111c]
call eax
jmp 0x406d55
cmp dword [esi + 4], 0
jne 0x406d3a
mov edi, 1
jmp 0x406d57
lea eax, [ebp - 0x1118]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x406d8b
mov eax, dword [ebp - 0x112c]
test eax, eax
je 0x406d6e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x112c], eax
mov dword [ebp - 0x1128], 0
jmp 0x406d8b
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x1118], eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00417591
push eax
call fcn.00402d50
mov ecx, dword [ebp - 0x1120]
add esp, 0x14
push ebx
call fcn.004058c0
mov esi, eax
test esi, esi
js 0x407022
mov ecx, dword [ebp - 0x1120]
push ebx
call fcn.00407060
mov esi, eax
test esi, esi
js 0x407022
cmp byte [ebx], 0x7b
jne 0x406e41
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406df0
sub ecx, edx
cmp ecx, 1
jne 0x406e41
push dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1120]
push 0
push dword [ebp - 0x112c]
push ebx
call fcn.004066a0
mov esi, eax
test esi, esi
jns 0x406e2b
cmp dword [ebp - 0x1118], 0
je 0x407022
mov ecx, dword [ebp - 0x1120]
push ebx
call fcn.004058c0
mov esi, eax
test esi, esi
js 0x407022
cmp edi, 2
je 0x406fe8
test edi, edi
je 0x406e5e
cmp dword [ebp + 0x14], 0
jne 0x406fe8
push edi
jmp 0x407018
cmp dword [ebp + 0x14], 0
je 0x406ef6
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1118]
mov dword [ebp - 0x1118], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x112c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x406ef6
cmp dword [ebp - 0x1118], eax
jbe 0x406ef6
mov edi, 0x45054c
nop word [eax + eax]
push dword [edi]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x406fe8
add edi, 4
cmp edi, 0x45057c
jl 0x406eb0
cmp dword [ebp - 0x1130], 0
je 0x406fe8
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x112c]
call fcn.00405e20
jmp 0x406fe8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1118]
mov dword [ebp - 0x1118], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x112c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x406f2f
xor edi, edi
jmp 0x406f3b
xor eax, eax
cmp eax, dword [ebp - 0x1118]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x112c]
xor eax, eax
test ecx, ecx
je 0x406f56
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x1128], 0
test eax, eax
jne 0x407017
cmp dword [ebp - 0x1130], eax
je 0x406fe8
test edi, edi
jne 0x406fe8
cmp byte [0x45dec8], al
jne 0x406fb3
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x406fa5
push str.RegDeleteKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45dec4], eax
mov byte [0x45dec8], 1
jmp 0x406fb8
mov eax, dword [0x45dec4]
mov byte [0x45dec8], 1
jmp 0x406fb8
mov eax, dword [0x45dec4]
test eax, eax
je 0x406fd1
push 0
push 0
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp - 0x111c]
call eax
jmp 0x406fe4
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x407017
cmp byte [ebx], 0x7d
jne 0x406730
jmp 0x407022
push eax
call fcn.00402e10
add esp, 4
mov esi, eax
test edi, edi
je 0x407022
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407022
mov esi, 0x80020009
jmp 0x407022
mov eax, 1
push eax
call fcn.00402e10
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x112c]
test eax, eax
je 0x407033
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret 0x10