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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4531db
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.004312e0
mov eax, dword [0x46a180]
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 - 0x2224], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
push ebx
mov dword [ebp - 4], 0
call fcn.00406ec0
mov esi, eax
test esi, esi
js 0x4083e5
cmp word [ebx], 0x7d
je 0x4083d2
nop dword [eax]
nop word [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x457694
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x407a90
test edi, edi
jne 0x407b95
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00406ec0
mov esi, eax
test esi, esi
js 0x4083d2
cmp dword [ebp + 0x10], 0
je 0x407b95
movzx ecx, word [ebx]
mov eax, ebx
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test cx, cx
je 0x407af1
mov edx, ecx
cmp dx, 0x5c
je 0x407ae9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x407ad0
jmp 0x407af1
test eax, eax
jne 0x4083c0
mov esi, 0x457734
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x407b4e
add esi, 4
cmp esi, 0x457764
jl 0x407af6
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2240]
push ebx
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
call fcn.00407490
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test edi, edi
jne 0x407b8b
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00406ec0
mov esi, eax
test esi, esi
js 0x4083d2
push ebx
mov ecx, edi
call fcn.00408410
mov esi, eax
test esi, esi
js 0x4083d2
mov dword [ebp - 0x223c], 0
jmp 0x407ffb
mov dword [ebp - 0x223c], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x407bc5
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.00406ec0
mov esi, eax
test esi, esi
js 0x4083d2
jmp 0x407bcb
mov edi, dword [ebp - 0x2234]
push 0x45768c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x407d25
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.00406ec0
mov esi, eax
test esi, esi
js 0x4083d2
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00406ec0
mov esi, eax
test esi, esi
js 0x4083d2
cmp word [ebx], 0x3d
jne 0x4083c0
cmp dword [ebp + 0x10], 0
je 0x407c9c
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2250]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
call fcn.00405b80
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x4083d2
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x407ffb
cmp dword [ebp + 0x14], 0
jne 0x407d0a
test edi, edi
je 0x407d0a
xor edi, edi
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], edi
push eax
push 0x20006
push edi
push edi
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov byte [ebp - 4], 0
cmove edi, dword [ebp - 0x2234]
xor ecx, ecx
test eax, eax
cmovne ecx, eax
test ecx, ecx
jne 0x4083a8
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x407cff
cmp eax, 2
jne 0x4083a5
test edi, edi
je 0x407d0a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00408410
mov esi, eax
test esi, esi
js 0x4083d2
jmp 0x408399
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x407d52
mov edx, ecx
cmp dx, 0x5c
je 0x407d4a
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x407d31
jmp 0x407d52
test eax, eax
jne 0x4083c0
cmp dword [ebp + 0x10], 0
je 0x40805c
mov esi, dword [ebp - 0x2228]
mov byte [ebp - 4], 3
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x407e1d
cmp dword [esi], 0
je 0x407e10
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x407de3
mov eax, 1
mov edi, dword [ebp - 0x2230]
mov byte [ebp - 4], 0
test eax, eax
je 0x407fc2
mov byte [ebp - 4], 4
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x407ea6
cmp dword [esi], 0
je 0x407e99
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x407e6c
mov eax, 1
jmp 0x407ee6
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407e16
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x407e38
cmp dword [esi + 4], 0
jne 0x407e1d
mov eax, 1
jmp 0x407e38
lea eax, [ebp - 0x221c]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407d95
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x407e51
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
jmp 0x407d9b
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407e9f
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x407ec1
cmp dword [esi + 4], 0
jne 0x407ea6
mov eax, 1
jmp 0x407ec1
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407ee6
test edi, edi
je 0x407ed0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
test eax, eax
je 0x407fc2
mov byte [ebp - 4], 5
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x407f69
cmp dword [esi], 0
je 0x407f5c
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x407f22
mov eax, 1
jmp 0x407fb6
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407f62
push 0
push dword [esi]
lea ecx, [ebp - 0x2244]
push ecx
lea ecx, [ebp - 0x221c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x407f91
cmp dword [esi + 4], 0
jne 0x407f69
mov eax, 1
jmp 0x407f91
lea eax, [ebp - 0x2244]
push eax
lea eax, [ebp - 0x221c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407fb6
test edi, edi
je 0x407fa0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
test eax, eax
jne 0x4083c7
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00406ec0
mov esi, eax
test esi, esi
js 0x4083d2
cmp word [ebx], 0x3d
jne 0x407ffb
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.00405b80
mov esi, eax
test esi, esi
js 0x4083d2
cmp word [ebx], 0x7b
jne 0x408399
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408010
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x408399
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.004079d0
mov esi, eax
test esi, esi
js 0x4083d2
push ebx
mov ecx, edi
call fcn.00406ec0
mov esi, eax
test esi, esi
js 0x4083d2
jmp 0x408399
cmp dword [ebp + 0x14], 0
jne 0x408127
mov esi, dword [ebp - 0x2228]
mov byte [ebp - 4], 6
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4080d7
cmp dword [esi], 0
je 0x4080ca
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40809d
lea edi, [eax + 1]
mov byte [ebp - 4], al
jmp 0x40812c
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4080d0
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4080f2
cmp dword [esi + 4], 0
jne 0x4080d7
mov edi, 1
jmp 0x4080f4
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x408121
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x40810b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
jmp 0x40812c
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00436167
push eax
call fcn.004061d0
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.00406ec0
mov esi, eax
test esi, esi
js 0x4083d2
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00408410
mov esi, eax
test esi, esi
js 0x4083d2
cmp word [ebx], 0x7b
jne 0x4081e8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408191
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4081e8
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.004079d0
mov esi, eax
test esi, esi
jns 0x4081d2
cmp dword [ebp - 0x221c], 0
je 0x4083d2
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00406ec0
mov esi, eax
test esi, esi
js 0x4083d2
cmp edi, 2
je 0x408399
test edi, edi
je 0x408205
cmp dword [ebp + 0x14], 0
jne 0x408399
push edi
jmp 0x4083c8
cmp dword [ebp + 0x14], 0
je 0x40829b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40829b
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x40829b
mov edi, 0x457734
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408399
add edi, 4
cmp edi, 0x457764
jl 0x408255
cmp dword [ebp - 0x2234], 0
je 0x408399
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00407490
jmp 0x408399
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4082d4
xor edi, edi
jmp 0x4082e0
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2230]
xor eax, eax
test ecx, ecx
je 0x4082fb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x4083c7
cmp dword [ebp - 0x2234], eax
je 0x408399
test edi, edi
jne 0x408399
mov byte [ebp - 4], 7
cmp byte [0x46c3e0], al
jne 0x408360
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408352
push 0x4575f4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46c3dc], eax
mov byte [0x46c3e0], 1
jmp 0x408365
mov eax, dword [0x46c3dc]
mov byte [0x46c3e0], 1
jmp 0x408365
mov eax, dword [0x46c3dc]
test eax, eax
je 0x40837e
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x408391
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0
test eax, eax
jne 0x4083c7
cmp word [ebx], 0x7d
jne 0x407a60
jmp 0x4083d2
push eax
jmp 0x4083a9
push ecx
call fcn.00406290
add esp, 4
mov esi, eax
test edi, edi
je 0x4083d2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4083d2
mov esi, 0x80020009
jmp 0x4083d2
push eax
call fcn.00406290
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4083e3
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.004312d2
mov esp, ebp
pop ebp
ret 0x10