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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4241bb
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.0041f450
mov eax, dword [0x43000c]
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.00404040
mov esi, eax
test esi, esi
js 0x404ba2
cmp word [ebx], 0x7d
je 0x404b8f
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 0x42bd9c
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4042a0
test edi, edi
jne 0x4043af
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00404040
mov esi, eax
test esi, esi
js 0x404b8f
cmp dword [ebp + 0x10], 0
je 0x4043af
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test ax, ax
je 0x404303
nop
cmp ax, 0x5c
je 0x4042fb
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x4042e0
jmp 0x404303
test edx, edx
jne 0x404b7a
mov esi, 0x42c204
nop dword [eax + eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404368
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x404310
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.00403de0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test edi, edi
jne 0x4043a5
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00404040
mov esi, eax
test esi, esi
js 0x404b8f
push ebx
mov ecx, edi
call fcn.00403d60
mov esi, eax
test esi, esi
js 0x404b8f
mov dword [ebp - 0x223c], 0
jmp 0x4047cf
mov dword [ebp - 0x223c], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4043df
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.00404040
mov esi, eax
test esi, esi
js 0x404b8f
jmp 0x4043e5
mov edi, dword [ebp - 0x2234]
push 0x42bd94
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404535
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.00404040
mov esi, eax
test esi, esi
js 0x404b8f
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00404040
mov esi, eax
test esi, esi
js 0x404b8f
cmp word [ebx], 0x3d
jne 0x404b7a
cmp dword [ebp + 0x10], 0
je 0x4044b6
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.004037b0
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x404b8f
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x4047cf
cmp dword [ebp + 0x14], 0
jne 0x40451a
test edi, edi
je 0x40451a
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], 0
push eax
push 0x20006
push 0
push 0
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404b86
mov edi, dword [ebp - 0x2234]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40450f
cmp eax, 2
jne 0x404b64
test edi, edi
je 0x40451a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00403d60
mov esi, eax
test esi, esi
js 0x404b8f
jmp 0x404b58
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x404562
mov edx, ecx
cmp dx, 0x5c
je 0x40455a
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x404541
jmp 0x404562
test eax, eax
jne 0x404b7a
cmp dword [ebp + 0x10], 0
je 0x40482c
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4045d2
cmp dword [esi], 0
je 0x4045c5
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404622
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4045cb
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4045ed
cmp dword [esi + 4], 0
jne 0x4045d2
mov eax, 1
jmp 0x4045ed
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 0x404622
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x404602
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x404796
jmp 0x404628
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x404688
cmp dword [esi], 0
je 0x40467b
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4046d0
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404681
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4046a3
cmp dword [esi + 4], 0
jne 0x404688
mov eax, 1
jmp 0x4046a3
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 0x4046d0
test edi, edi
je 0x4046b2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x404796
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x40473d
cmp dword [esi], 0
je 0x404730
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404b81
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404736
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 0x404765
cmp dword [esi + 4], 0
jne 0x40473d
mov eax, 1
jmp 0x404765
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 0x404b86
test edi, edi
je 0x404778
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x404b86
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00404040
mov esi, eax
test esi, esi
js 0x404b8f
cmp word [ebx], 0x3d
jne 0x4047cf
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.004037b0
mov esi, eax
test esi, esi
js 0x404b8f
cmp word [ebx], 0x7b
jne 0x404b58
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4047e0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x404b58
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.004041e0
mov esi, eax
test esi, esi
js 0x404b8f
push ebx
mov ecx, edi
call fcn.00404040
mov esi, eax
test esi, esi
js 0x404b8f
jmp 0x404b58
cmp dword [ebp + 0x14], 0
jne 0x4048ec
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4048a0
cmp dword [esi], 0
je 0x404893
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x404866
lea edi, [eax + 1]
jmp 0x4048f1
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404899
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4048bb
cmp dword [esi + 4], 0
jne 0x4048a0
mov edi, 1
jmp 0x4048bd
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 0x4048f1
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4048d4
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
jmp 0x4048f1
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.004130fa
push eax
call fcn.00403cc0
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.00404040
mov esi, eax
test esi, esi
js 0x404b8f
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00403d60
mov esi, eax
test esi, esi
js 0x404b8f
cmp word [ebx], 0x7b
jne 0x4049ad
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404956
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4049ad
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.004041e0
mov esi, eax
test esi, esi
jns 0x404997
cmp dword [ebp - 0x221c], 0
je 0x404b8f
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00404040
mov esi, eax
test esi, esi
js 0x404b8f
cmp edi, 2
je 0x404b58
test edi, edi
je 0x4049cb
cmp dword [ebp + 0x14], 0
jne 0x404b58
mov ecx, edi
jmp 0x404b88
cmp dword [ebp + 0x14], 0
je 0x404a66
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 0x404a66
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x404a66
mov edi, 0x42c204
nop dword [eax + eax]
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404b58
add edi, 4
cmp edi, str.RegOpenKeyTransactedW
jl 0x404a20
cmp dword [ebp - 0x2234], 0
je 0x404b58
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00403de0
jmp 0x404b58
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 0x404a9f
xor edi, edi
jmp 0x404aab
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 0x404ac6
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 0x404b86
cmp dword [ebp - 0x2234], eax
je 0x404b58
test edi, edi
jne 0x404b58
cmp byte [0x431cac], al
jne 0x404b23
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404b15
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x431ca8], eax
mov byte [0x431cac], 1
jmp 0x404b28
mov eax, dword [0x431ca8]
mov byte [0x431cac], 1
jmp 0x404b28
mov eax, dword [0x431ca8]
test eax, eax
je 0x404b41
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x404b54
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x404b86
cmp word [ebx], 0x7d
jne 0x404270
jmp 0x404b8f
mov ecx, eax
call fcn.00404030
mov esi, eax
test edi, edi
je 0x404b8f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404b8f
mov esi, 0x80020009
jmp 0x404b8f
mov eax, 1
mov ecx, eax
call fcn.00404030
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x404ba0
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.0040ce5c
mov esp, ebp
pop ebp
ret 0x10