Function at 0x40b540
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f2eb
mov eax, dword fs:[0]
push eax
mov eax, 0x2250
call fcn.0041d6e0
mov eax, dword [0x42e3e0]
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 eax, ecx
mov dword [ebp - 0x2228], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
movq qword [ebp - 0x2238], xmm0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
push edi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040a9e0
mov esi, eax
test esi, esi
js 0x40bda6
cmp word [edi], 0x7d
je 0x40bd93
nop dword [eax]
push str.Delete
push edi
mov dword [ebp - 0x2224], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4228d4
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40b613
test ebx, ebx
je 0x40b715
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.0040a9e0
mov esi, eax
test esi, esi
js 0x40bd93
cmp dword [ebp + 0x10], 0
je 0x40b715
movzx ecx, word [edi]
mov eax, edi
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x2248], 0
test cx, cx
je 0x40b674
mov edx, ecx
cmp dx, 0x5c
je 0x40b66c
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40b653
jmp 0x40b674
test eax, eax
jne 0x40bd7c
mov esi, 0x42230c
nop dword [eax]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40b6ce
add esi, 4
cmp esi, 0x42233c
jl 0x40b680
mov eax, dword [ebp - 0x222c]
lea ecx, [ebp - 0x2250]
push edi
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], 0
call fcn.0040b050
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x2248], 0
test ebx, ebx
je 0x40b70b
mov ebx, dword [ebp - 0x2228]
mov ecx, ebx
push edi
call fcn.0040a9e0
mov esi, eax
test esi, esi
js 0x40bd93
push edi
mov ecx, ebx
call fcn.0040bdd0
mov esi, eax
test esi, esi
js 0x40bd93
mov dword [ebp - 0x224c], 0
jmp 0x40ba5a
mov dword [ebp - 0x224c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2228]
test eax, eax
jne 0x40b743
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], eax
call fcn.0040a9e0
mov esi, eax
test esi, esi
js 0x40bd93
push 0x4228cc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b8d1
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.0040a9e0
mov esi, eax
test esi, esi
js 0x40bd93
push edi
mov ecx, ebx
call fcn.0040a9e0
mov esi, eax
test esi, esi
js 0x40bd93
cmp word [edi], 0x3d
jne 0x40bd7c
cmp dword [ebp + 0x10], 0
je 0x40b81f
xorps xmm0, xmm0
mov dword [ebp - 0x223c], 0
movq qword [ebp - 0x2244], xmm0
mov eax, dword [ebp - 0x222c]
mov ecx, ebx
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2244]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.00409580
mov esi, eax
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
test esi, esi
js 0x40bd93
mov byte [ebp - 4], 0
mov dword [ebp - 0x2240], 0
jmp 0x40ba5a
cmp dword [ebp + 0x14], 0
jne 0x40b8ba
cmp dword [ebp - 0x2224], 0
je 0x40b8ba
push 0x20006
push 0
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
call fcn.0040ab90
test eax, eax
jne 0x40bd5e
mov ebx, dword [ebp - 0x225c]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40b895
cmp eax, 2
jne 0x40bd46
test ebx, ebx
je 0x40b8aa
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x225c], 0
mov ebx, dword [ebp - 0x2228]
mov dword [ebp - 0x2258], 0
push edi
mov ecx, ebx
call fcn.0040bdd0
mov esi, eax
test esi, esi
js 0x40bd93
jmp 0x40bd3a
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x40b901
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x40b8f9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40b8e0
jmp 0x40b901
test eax, eax
jne 0x40bd7c
cmp dword [ebp + 0x10], 0
je 0x40babc
mov esi, dword [ebp - 0x222c]
lea ecx, [ebp - 0x2238]
push 0x2001f
push edi
push esi
call fcn.0040ab90
test eax, eax
je 0x40ba27
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2238]
call fcn.0040ab90
test eax, eax
je 0x40ba27
mov esi, dword [ebp - 0x2230]
mov dword [ebp - 0x2224], 0
test esi, esi
je 0x40b9c2
cmp dword [esi], 0
je 0x40b9b5
push 0x4227f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bd83
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40b9bb
push 0
push dword [esi]
lea eax, [ebp - 0x2220]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2224]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x222c]
call dword [0x421504]
call ebx
jmp 0x40b9ea
cmp dword [esi + 4], 0
jne 0x40b9c2
mov eax, 1
jmp 0x40b9ea
lea eax, [ebp - 0x2220]
push eax
lea eax, [ebp - 0x2224]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x222c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bd88
mov ecx, dword [ebp - 0x2238]
test ecx, ecx
je 0x40ba03
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], 0
test eax, eax
jne 0x40bd88
mov ebx, dword [ebp - 0x2228]
push edi
mov ecx, ebx
call fcn.0040a9e0
mov esi, eax
test esi, esi
js 0x40bd93
cmp word [edi], 0x3d
jne 0x40ba5a
push edi
push 0
lea eax, [ebp - 0x2238]
mov ecx, ebx
push eax
call fcn.00409580
mov esi, eax
test esi, esi
js 0x40bd93
cmp word [edi], 0x7b
jne 0x40bd3a
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ba70
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40bd3a
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2238]
push edi
call fcn.0040b540
mov esi, eax
test esi, esi
js 0x40bd93
push edi
mov ecx, ebx
call fcn.0040a9e0
mov esi, eax
test esi, esi
js 0x40bd93
jmp 0x40bd3a
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40bade
push 0x20019
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2238]
call fcn.0040ab90
mov ebx, eax
jmp 0x40bae3
mov ebx, 2
test ebx, ebx
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push edi
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.00409b90
mov ecx, dword [ebp - 0x2228]
add esp, 0x14
push edi
call fcn.0040a9e0
mov esi, eax
test esi, esi
js 0x40bd93
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.0040bdd0
mov esi, eax
test esi, esi
js 0x40bd93
cmp word [edi], 0x7b
jne 0x40bba7
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb50
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40bba7
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2228]
push 0
push dword [ebp - 0x2238]
push edi
call fcn.0040b540
mov esi, eax
test esi, esi
jns 0x40bb91
cmp dword [ebp - 0x221c], 0
je 0x40bd93
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.0040a9e0
mov esi, eax
test esi, esi
js 0x40bd93
cmp ebx, 2
je 0x40bd3a
test ebx, ebx
je 0x40bbc4
cmp dword [ebp + 0x14], 0
jne 0x40bd3a
push ebx
jmp 0x40bd89
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x2238]
je 0x40bc46
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 ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40bc46
cmp dword [ebp - 0x221c], eax
jbe 0x40bc46
mov ecx, dword [ebp - 0x2228]
lea eax, [ebp - 0x218]
push eax
call fcn.00409d90
test eax, eax
je 0x40bd3a
cmp dword [ebp - 0x2224], 0
je 0x40bd3a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2238]
call fcn.0040b050
jmp 0x40bd3a
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 ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40bc7a
xor ebx, ebx
jmp 0x40bc86
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp - 0x2238]
xor eax, eax
test ecx, ecx
je 0x40bca1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2238], ecx
mov dword [ebp - 0x2234], 0
test eax, eax
jne 0x40bd88
cmp dword [ebp - 0x2224], eax
je 0x40bd3a
test ebx, ebx
jne 0x40bd3a
cmp byte [0x431b38], bl
jne 0x40bd02
push 0x4227f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bcf3
push 0x422894
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov byte [0x431b38], 1
mov dword [0x431b34], ebx
jmp 0x40bd08
mov ebx, dword [0x431b34]
mov byte [0x431b38], 1
jmp 0x40bd08
mov ebx, dword [0x431b34]
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x40bd29
push 0
push 0
push eax
push dword [ebp - 0x222c]
mov ecx, ebx
call dword [0x421504]
call ebx
jmp 0x40bd36
push eax
push dword [ebp - 0x222c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40bd88
cmp word [edi], 0x7d
jne 0x40b5e0
jmp 0x40bd93
push eax
call fcn.00409c50
add esp, 4
mov esi, eax
test ebx, ebx
je 0x40bd93
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bd93
push eax
call fcn.00409c50
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x225c]
test eax, eax
je 0x40bd93
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bd93
mov esi, 0x80020009
jmp 0x40bd93
mov eax, 1
push eax
call fcn.00409c50
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2238]
test eax, eax
je 0x40bda4
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.0041d270
mov esp, ebp
pop ebp
ret 0x10