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

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.00433e80
push 0xffffffffffffffff
push 0x44ee5d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x473018]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0x2218]
mov ebx, dword [ebp + 0x2214]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push ebx
call fcn.00405850
mov esi, eax
test esi, esi
js 0x406e59
cmp word [ebx], 0x7d
je 0x406e59
nop word [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x45e484
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40657d
test edi, edi
jne 0x406680
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00405850
mov esi, eax
test esi, esi
js 0x406e59
cmp dword [ebp + 0x221c], 0
je 0x406680
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov edx, ebx
movzx eax, word [ebx]
test ax, ax
je 0x4065e5
mov ecx, eax
cmp cx, 0x5c
je 0x4065dd
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x4065c2
jmp 0x4065e5
test edx, edx
jne 0x406df7
mov esi, 0x45f558
nop word [eax + eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40663a
add esi, 4
cmp esi, 0x45f588
jl 0x4065f0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.00404d80
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
test edi, edi
jne 0x406675
mov edi, dword [ebp - 0x18]
mov ecx, edi
push ebx
call fcn.00405850
mov esi, eax
test esi, esi
js 0x406e09
push ebx
mov ecx, edi
call fcn.00405f00
mov esi, eax
test esi, esi
js 0x406e09
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x406a73
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4066aa
mov ecx, dword [ebp - 0x18]
xor edi, edi
push ebx
mov dword [ebp - 0x28], edi
call fcn.00405850
mov esi, eax
test esi, esi
js 0x406e59
jmp 0x4066ad
mov edi, dword [ebp - 0x28]
push 0x45e47c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40680b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push eax
call fcn.00405850
mov esi, eax
test esi, esi
js 0x406e59
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00405850
mov esi, eax
test esi, esi
js 0x406e59
cmp word [ebx], 0x3d
jne 0x406e02
cmp dword [ebp + 0x221c], 0
je 0x40676c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x40], eax
lea eax, [ebp]
push ebx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.004059e0
mov esi, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test esi, esi
js 0x406e16
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x406a73
cmp dword [ebp + 0x2220], 0
jne 0x4067f3
test edi, edi
je 0x4067f3
xor edi, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
push 0x20006
push edi
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4067af
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], eax
xor ecx, ecx
test eax, eax
cmovne ecx, eax
test ecx, ecx
jne 0x406e25
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4067d6
cmp eax, 2
jne 0x406e23
mov byte [ebp - 4], 0
test edi, edi
je 0x4067ec
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00405f00
mov esi, eax
test esi, esi
js 0x406e59
jmp 0x406deb
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x40683a
mov edx, eax
cmp dx, 0x5c
je 0x406832
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x406817
jmp 0x40683a
test ecx, ecx
jne 0x406e02
cmp dword [ebp + 0x221c], 0
je 0x406ace
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x4068a1
cmp dword [esi], 0
je 0x406894
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4068ed
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40689a
push 0
push dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x4068b6
cmp dword [esi + 4], 0
jne 0x4068a1
mov eax, 1
jmp 0x4068b6
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4068ed
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4068cf
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
test eax, eax
je 0x406a40
jmp 0x4068f0
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x406943
cmp dword [esi], 0
je 0x406936
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40698a
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40693c
push 0
push dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x406958
cmp dword [esi + 4], 0
jne 0x406943
mov eax, 1
jmp 0x406958
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40698a
test edi, edi
je 0x40696e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
test eax, eax
je 0x406a40
mov dword [ebp - 0x10], 0
test esi, esi
je 0x4069eb
cmp dword [esi], 0
je 0x4069de
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406e4b
push 0x45f598
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4069e4
push 0
push dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x406a0a
cmp dword [esi + 4], 0
jne 0x4069eb
mov eax, 1
jmp 0x406a0a
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406e50
test edi, edi
je 0x406a24
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
test eax, eax
jne 0x406e50
mov edi, dword [ebp - 0x18]
mov ecx, edi
push ebx
call fcn.00405850
mov esi, eax
test esi, esi
js 0x406e59
cmp word [ebx], 0x3d
jne 0x406a73
push ebx
push 0
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004059e0
mov esi, eax
test esi, esi
js 0x406e59
cmp word [ebx], 0x7b
jne 0x406deb
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406a82
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x406deb
push 0
push dword [ebp + 0x221c]
mov ecx, edi
push dword [ebp - 0x24]
push ebx
call fcn.004064c0
mov esi, eax
test esi, esi
js 0x406e59
push ebx
mov ecx, edi
call fcn.00405850
mov esi, eax
test esi, esi
js 0x406e59
jmp 0x406deb
cmp dword [ebp + 0x2220], 0
jne 0x406b81
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x406b39
cmp dword [esi], 0
je 0x406b2c
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x406b05
lea edi, [eax + 1]
jmp 0x406b86
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406b32
push 0
push dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x406b4e
cmp dword [esi + 4], 0
jne 0x406b39
mov edi, 1
jmp 0x406b50
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x406b86
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x406b6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
jmp 0x406b86
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x2220]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x2000]
push 0x104
push eax
call fcn.0043cc68
push eax
call fcn.00401fd0
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ebx
call fcn.00405850
mov esi, eax
test esi, esi
js 0x406e59
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00405f00
mov esi, eax
test esi, esi
js 0x406e59
cmp word [ebx], 0x7b
jne 0x406c2d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406be5
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x406c2d
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push 0
push dword [ebp - 0x24]
push ebx
call fcn.004064c0
mov esi, eax
test esi, esi
jns 0x406c1a
cmp dword [ebp - 0x10], 0
je 0x406e59
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00405850
mov esi, eax
test esi, esi
js 0x406e59
cmp edi, 2
je 0x406deb
test edi, edi
je 0x406c4e
cmp dword [ebp + 0x2220], 0
jne 0x406deb
mov ecx, edi
jmp 0x406e52
cmp dword [ebp + 0x2220], 0
je 0x406cd5
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x406cd5
cmp eax, dword [ebp - 0x10]
sbb eax, eax
neg eax
je 0x406cd5
mov edi, 0x45f558
push dword [edi]
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406deb
add edi, 4
cmp edi, 0x45f588
jl 0x406c95
cmp dword [ebp - 0x28], 0
je 0x406deb
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x24]
call fcn.00404d80
jmp 0x406deb
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x406d05
xor edi, edi
jmp 0x406d0e
xor eax, eax
cmp eax, dword [ebp - 0x10]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x24]
xor eax, eax
test ecx, ecx
je 0x406d23
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
test eax, eax
jne 0x406e50
cmp dword [ebp - 0x28], eax
je 0x406deb
test edi, edi
jne 0x406deb
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
cmp byte [0x475040], al
jne 0x406da1
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406d90
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x14]
mov dword [0x475044], eax
mov byte [0x475040], 1
jmp 0x406da6
mov eax, dword [0x475044]
mov ecx, dword [ebp - 0x14]
mov byte [0x475040], 1
jmp 0x406da6
mov eax, dword [0x475044]
test eax, eax
je 0x406dba
push 0
push 0
lea edx, [ebp + 0x2000]
push edx
push ecx
call eax
jmp 0x406dc8
lea eax, [ebp + 0x2000]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
test eax, eax
jne 0x406ea3
mov byte [ebp - 4], al
mov dword [ebp - 0x54], eax
cmp word [ebx], 0x7d
jne 0x406550
jmp 0x406e59
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov esi, 0x80020009
jmp 0x406e59
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x406e59
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x406e59
mov ecx, eax
call fcn.004048c0
mov esi, eax
mov byte [ebp - 4], 0
test edi, edi
je 0x406e42
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
jmp 0x406e59
mov eax, 1
mov ecx, eax
call fcn.004048c0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x406e75
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov eax, esi
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.00432e76
lea esp, [ebp + 0x220c]
pop ebp
ret 0x10
mov ecx, eax
call fcn.004048c0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x54], 0
jmp 0x406e59