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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f564b
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.004f37c0
mov eax, dword [0x51e080]
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.0040b380
mov esi, eax
test esi, esi
js 0x40ca5e
cmp word [ebx], 0x7d
je 0x40ca4b
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 0x503e08
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c130
test edi, edi
jne 0x40c235
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40ca4b
cmp dword [ebp + 0x10], 0
je 0x40c235
movzx ecx, word [ebx]
mov eax, ebx
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test cx, cx
je 0x40c191
mov edx, ecx
cmp dx, 0x5c
je 0x40c189
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40c170
jmp 0x40c191
test eax, eax
jne 0x40ca3b
mov esi, 0x5049a0
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c1ee
add esi, 4
cmp esi, 0x5049d0
jl 0x40c196
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.0040aaa0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test edi, edi
jne 0x40c22b
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40ca4b
push ebx
mov ecx, edi
call fcn.0040ba60
mov esi, eax
test esi, esi
js 0x40ca4b
mov dword [ebp - 0x223c], 0
jmp 0x40c67c
mov dword [ebp - 0x223c], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c265
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40ca4b
jmp 0x40c26b
mov edi, dword [ebp - 0x2234]
push 0x503e00
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c3c5
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40ca4b
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40ca4b
cmp word [ebx], 0x3d
jne 0x40ca3b
cmp dword [ebp + 0x10], 0
je 0x40c33c
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2250]
mov dword [ebp - 0x224c], 0
push eax
mov dword [ebp - 0x2248], 0
call fcn.0040b540
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x40ca4b
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x40c67c
cmp dword [ebp + 0x14], 0
jne 0x40c3aa
test edi, edi
je 0x40c3aa
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
cmove edi, dword [ebp - 0x2234]
xor ecx, ecx
test eax, eax
mov byte [ebp - 4], 0
cmovne ecx, eax
test ecx, ecx
jne 0x40ca27
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40c39f
cmp eax, 2
jne 0x40ca25
test edi, edi
je 0x40c3aa
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0040ba60
mov esi, eax
test esi, esi
js 0x40ca4b
jmp 0x40ca19
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x40c3f2
mov edx, ecx
cmp dx, 0x5c
je 0x40c3ea
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40c3d1
jmp 0x40c3f2
test eax, eax
jne 0x40ca3b
cmp dword [ebp + 0x10], 0
je 0x40c6dc
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x40c469
cmp dword [esi], 0
je 0x40c45c
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40c42f
mov eax, 1
jmp 0x40c484
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c462
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x40c484
cmp dword [esi + 4], 0
jne 0x40c469
mov eax, 1
jmp 0x40c484
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 0x40c4b1
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x40c499
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 0x40c4b7
mov edi, dword [ebp - 0x2230]
mov byte [ebp - 4], 0
test eax, eax
je 0x40c643
mov byte [ebp - 4], 4
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x40c52a
cmp dword [esi], 0
je 0x40c51d
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40c4f0
mov eax, 1
jmp 0x40c545
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c523
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x40c545
cmp dword [esi + 4], 0
jne 0x40c52a
mov eax, 1
jmp 0x40c545
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 0x40c56a
test edi, edi
je 0x40c554
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 0x40c643
mov byte [ebp - 4], 5
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x40c5ea
cmp dword [esi], 0
je 0x40c5dd
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40c5a3
mov eax, 1
jmp 0x40c612
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c5e3
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 0x40c612
cmp dword [esi + 4], 0
jne 0x40c5ea
mov eax, 1
jmp 0x40c612
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 0x40c637
test edi, edi
je 0x40c621
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 0x40ca42
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40ca4b
cmp word [ebx], 0x3d
jne 0x40c67c
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.0040b540
mov esi, eax
test esi, esi
js 0x40ca4b
cmp word [ebx], 0x7b
jne 0x40ca19
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c690
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40ca19
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.0040c070
mov esi, eax
test esi, esi
js 0x40ca4b
push ebx
mov ecx, edi
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40ca4b
jmp 0x40ca19
cmp dword [ebp + 0x14], 0
jne 0x40c7a1
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x40c751
cmp dword [esi], 0
je 0x40c744
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40c717
lea edi, [eax + 1]
jmp 0x40c76e
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c74a
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x40c76c
cmp dword [esi + 4], 0
jne 0x40c751
mov edi, 1
jmp 0x40c76e
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 0x40c79b
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x40c785
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 0x40c7a6
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.004de9c6
push eax
call fcn.0040a510
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40ca4b
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0040ba60
mov esi, eax
test esi, esi
js 0x40ca4b
cmp word [ebx], 0x7b
jne 0x40c867
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c810
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40c867
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.0040c070
mov esi, eax
test esi, esi
jns 0x40c851
cmp dword [ebp - 0x221c], 0
je 0x40ca4b
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40ca4b
cmp edi, 2
je 0x40ca19
test edi, edi
je 0x40c885
cmp dword [ebp + 0x14], 0
jne 0x40ca19
mov ecx, edi
jmp 0x40ca44
cmp dword [ebp + 0x14], 0
je 0x40c91b
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 0x40c91b
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x40c91b
mov edi, 0x5049a0
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40ca19
add edi, 4
cmp edi, 0x5049d0
jl 0x40c8d5
cmp dword [ebp - 0x2234], 0
je 0x40ca19
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.0040aaa0
jmp 0x40ca19
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 0x40c954
xor edi, edi
jmp 0x40c960
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 0x40c97b
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 0x40ca42
cmp dword [ebp - 0x2234], eax
je 0x40ca19
test edi, edi
jne 0x40ca19
mov byte [ebp - 4], 7
cmp byte [0x5224b0], al
jne 0x40c9e0
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c9d2
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5224b4], eax
mov byte [0x5224b0], 1
jmp 0x40c9e5
mov eax, dword [0x5224b4]
mov byte [0x5224b0], 1
jmp 0x40c9e5
mov eax, dword [0x5224b4]
test eax, eax
je 0x40c9fe
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x40ca11
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 0x40ca42
cmp word [ebx], 0x7d
jne 0x40c100
jmp 0x40ca4b
mov ecx, eax
call fcn.0040a6a0
mov esi, eax
test edi, edi
je 0x40ca4b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ca4b
mov esi, 0x80020009
jmp 0x40ca4b
mov ecx, eax
call fcn.0040a6a0
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x40ca5c
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.004d3878
mov esp, ebp
pop ebp
ret 0x10