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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425836
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.00411fc0
mov eax, dword [0x443624]
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 0x40c814
cmp word [ebx], 0x7d
je 0x40c801
jmp 0x40bef0
push str.Delete
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x426f30
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40bf23
test edi, edi
je 0x40c025
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40c801
cmp dword [ebp + 0x10], 0
je 0x40c025
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test ax, ax
je 0x40bf84
cmp ax, 0x5c
je 0x40bf7c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x40bf61
jmp 0x40bf84
test edx, edx
jne 0x40c7ef
mov esi, 0x427018
lea esp, [esp]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40bfde
add esi, 4
cmp esi, 0x427048
jl 0x40bf90
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2244]
push ebx
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
call fcn.0040b930
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test edi, edi
je 0x40c01b
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40c801
push ebx
mov ecx, edi
call fcn.0040cf90
mov esi, eax
test esi, esi
js 0x40c801
mov dword [ebp - 0x2240], 0
jmp 0x40c44e
mov dword [ebp - 0x2240], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c055
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 0x40c801
jmp 0x40c05b
mov edi, dword [ebp - 0x2234]
push 0x426f28
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c1ab
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40c801
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40c801
cmp word [ebx], 0x3d
jne 0x40c7ef
cmp dword [ebp + 0x10], 0
je 0x40c12c
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.0040a310
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x40c801
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x40c44e
cmp dword [ebp + 0x14], 0
jne 0x40c190
test edi, edi
je 0x40c190
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 0x40c7f6
mov edi, dword [ebp - 0x2234]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40c185
cmp eax, 2
jne 0x40c7d7
test edi, edi
je 0x40c190
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0040cf90
mov esi, eax
test esi, esi
js 0x40c801
jmp 0x40c7cb
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x40c1d8
mov edx, ecx
cmp dx, 0x5c
je 0x40c1d0
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40c1b7
jmp 0x40c1d8
test eax, eax
jne 0x40c7ef
cmp dword [ebp + 0x10], 0
je 0x40c4ac
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x40c24b
cmp dword [esi], 0
je 0x40c23e
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40c211
mov eax, 1
jmp 0x40c266
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c244
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x40c266
cmp dword [esi + 4], 0
jne 0x40c24b
mov eax, 1
jmp 0x40c266
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 0x40c29b
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x40c27b
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 0x40c415
jmp 0x40c2a1
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x40c304
cmp dword [esi], 0
je 0x40c2f7
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40c2ca
mov eax, 1
jmp 0x40c31f
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c2fd
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x40c31f
cmp dword [esi + 4], 0
jne 0x40c304
mov eax, 1
jmp 0x40c31f
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 0x40c34c
test edi, edi
je 0x40c32e
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 0x40c415
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x40c3bc
cmp dword [esi], 0
je 0x40c3af
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40c375
mov eax, 1
jmp 0x40c3e4
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c3b5
push 0
push dword [esi]
lea ecx, [ebp - 0x2238]
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 0x40c3e4
cmp dword [esi + 4], 0
jne 0x40c3bc
mov eax, 1
jmp 0x40c3e4
lea eax, [ebp - 0x2238]
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 0x40c7f6
test edi, edi
je 0x40c3f7
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
jne 0x40c7f6
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40c801
cmp word [ebx], 0x3d
jne 0x40c44e
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.0040a310
mov esi, eax
test esi, esi
js 0x40c801
cmp word [ebx], 0x7b
jne 0x40c7cb
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c460
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40c7cb
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.0040be60
mov esi, eax
test esi, esi
js 0x40c801
push ebx
mov ecx, edi
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40c801
jmp 0x40c7cb
cmp dword [ebp + 0x14], 0
jne 0x40c569
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x40c51d
cmp dword [esi], 0
je 0x40c510
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40c4e3
lea edi, [eax + 1]
jmp 0x40c53a
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c516
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x40c538
cmp dword [esi + 4], 0
jne 0x40c51d
mov edi, 1
jmp 0x40c53a
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 0x40c56e
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x40c551
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 0x40c56e
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.00418ca8
push eax
call fcn.0040a900
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40c801
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0040cf90
mov esi, eax
test esi, esi
js 0x40c801
cmp word [ebx], 0x7b
jne 0x40c62a
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5d3
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40c62a
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.0040be60
mov esi, eax
test esi, esi
jns 0x40c614
cmp dword [ebp - 0x221c], 0
je 0x40c801
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0040b380
mov esi, eax
test esi, esi
js 0x40c801
cmp edi, 2
je 0x40c7cb
test edi, edi
je 0x40c647
cmp dword [ebp + 0x14], 0
jne 0x40c7cb
push edi
jmp 0x40c7f7
cmp dword [ebp + 0x14], 0
je 0x40c6d9
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 0x40c6d9
cmp dword [ebp - 0x221c], eax
jbe 0x40c6d9
mov edi, 0x427018
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c7cb
add edi, 4
cmp edi, 0x427048
jl 0x40c693
cmp dword [ebp - 0x2234], 0
je 0x40c7cb
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.0040b930
jmp 0x40c7cb
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 0x40c712
xor edi, edi
jmp 0x40c71e
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 0x40c739
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 0x40c7f6
cmp dword [ebp - 0x2234], eax
je 0x40c7cb
test edi, edi
jne 0x40c7cb
cmp byte [0x444f2c], al
jne 0x40c796
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c788
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x444f28], eax
mov byte [0x444f2c], 1
jmp 0x40c79b
mov eax, dword [0x444f28]
mov byte [0x444f2c], 1
jmp 0x40c79b
mov eax, dword [0x444f28]
test eax, eax
je 0x40c7b4
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x40c7c7
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40c7f6
cmp word [ebx], 0x7d
jne 0x40bef0
jmp 0x40c801
push eax
call fcn.0040a9c0
add esp, 4
mov esi, eax
test edi, edi
je 0x40c801
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c801
mov esi, 0x80020009
jmp 0x40c801
push eax
call fcn.0040a9c0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x40c812
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.00411faa
mov esp, ebp
pop ebp
ret 0x10