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

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.00448570
push 0xffffffffffffffff
push 0x4805b6
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4a2074]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x2218]
mov edi, dword [ebp + 0x2214]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.0041b8b1
mov esi, eax
test esi, esi
js 0x41bf21
push 0x7d
pop eax
cmp word [edi], ax
je 0x41bf16
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41babb
test esi, esi
je 0x41bb4b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0041b8b1
mov esi, eax
test esi, esi
js 0x41bf16
xor esi, esi
cmp dword [ebp + 0x221c], esi
je 0x41bb4d
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], esi
call fcn.0041b38f
test eax, eax
jne 0x41bf11
push edi
call fcn.0041b842
test eax, eax
je 0x41bb12
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
push edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], esi
call fcn.0040914d
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x18], esi
je 0x41bb46
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0041b8b1
mov esi, eax
test esi, esi
js 0x41bf16
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0041b7dd
mov esi, eax
test esi, esi
js 0x41bf16
and dword [ebp - 0x40], 0
jmp 0x41bd17
mov dword [ebp - 0x40], esi
jmp 0x41bb4d
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41bb73
mov ecx, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x28], esi
call fcn.0041b8b1
mov esi, eax
test esi, esi
js 0x41bf16
push 0x490ecc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41bc83
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.0041b8b1
mov esi, eax
test esi, esi
js 0x41bf16
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0041b8b1
mov esi, eax
test esi, esi
js 0x41bf16
push 0x3d
pop eax
cmp word [edi], ax
jne 0x41bf11
cmp dword [ebp + 0x221c], 0
je 0x41bc0a
mov ecx, dword [ebp - 0x10]
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x4c], 0
and dword [ebp - 0x48], 0
mov dword [ebp - 0x50], eax
lea eax, [ebp]
push edi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0041b442
mov esi, eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
test esi, esi
js 0x41bf16
mov byte [ebp - 4], al
mov dword [ebp - 0x4c], eax
jmp 0x41bd17
cmp dword [ebp + 0x2220], 0
jne 0x41bc6b
cmp dword [ebp - 0x28], 0
je 0x41bc6b
xor eax, eax
lea ecx, [ebp - 0x34]
push 0x20006
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.004093c1
test eax, eax
jne 0x41bee9
mov esi, dword [ebp - 0x34]
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x41bc58
cmp eax, 2
jne 0x41bee9
test esi, esi
je 0x41bc67
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0041b7dd
mov esi, eax
test esi, esi
js 0x41bf16
jmp 0x41ba7d
push 0x5c
pop edx
mov ecx, edi
call fcn.0041b38f
test eax, eax
jne 0x41bf11
cmp dword [ebp + 0x221c], eax
je 0x41bd5f
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push 0x2001f
push edi
push ebx
call fcn.004093c1
test eax, eax
je 0x41bcdf
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.004093c1
test eax, eax
je 0x41bcdf
sub esp, 0x14
lea ecx, [ebp - 0x24]
push edi
push ebx
call fcn.00409302
test eax, eax
jne 0x41bf03
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.0041b8b1
mov esi, eax
test esi, esi
js 0x41bf0c
push 0x3d
pop eax
cmp word [edi], ax
jne 0x41bd14
push edi
push 0
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.0041b442
mov esi, eax
test esi, esi
js 0x41bf0c
mov ebx, dword [ebp - 0x24]
push 0x7b
pop eax
cmp word [edi], ax
jne 0x41ba7d
push edi
call fcn.00452867
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x41ba7d
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x221c]
push ebx
push edi
call fcn.0041ba0a
mov esi, eax
test esi, esi
js 0x41bf16
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0041b8b1
jmp 0x41bc74
cmp dword [ebp + 0x2220], 0
jne 0x41bd7e
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.004093c1
mov ebx, dword [ebp - 0x24]
jmp 0x41bd81
push 2
pop eax
mov ecx, dword [ebp + 0x2220]
test eax, eax
push 1
mov dword [ebp - 0x18], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp + 0x2000]
push edi
push 0x104
push eax
mov dword [ebp - 0x38], ecx
call fcn.0045dec2
push eax
call fcn.0040207c
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.0041b8b1
mov esi, eax
test esi, esi
js 0x41bf16
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0041b7dd
mov esi, eax
test esi, esi
js 0x41bf16
push 0x7b
pop eax
cmp word [edi], ax
jne 0x41be20
push edi
call fcn.00452867
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x41be20
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
push 0
push ebx
push edi
call fcn.0041ba0a
mov esi, eax
test esi, esi
jns 0x41be0d
cmp dword [ebp - 0x38], 0
je 0x41bf16
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0041b8b1
mov esi, eax
test esi, esi
js 0x41bf16
mov eax, dword [ebp - 0x18]
cmp eax, 2
je 0x41ba7d
test eax, eax
je 0x41be4b
cmp dword [ebp + 0x2220], 0
jne 0x41ba7d
mov ecx, eax
call fcn.0041b8a3
mov esi, eax
jmp 0x41bf16
cmp dword [ebp + 0x2220], 0
je 0x41be93
push ebx
call fcn.0041b86e
test eax, eax
je 0x41be93
lea eax, [ebp + 0x2000]
push eax
call fcn.0041b842
test eax, eax
je 0x41ba7d
cmp dword [ebp - 0x28], 0
je 0x41ba7d
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040914d
mov ebx, dword [ebp - 0x24]
jmp 0x41ba7d
push ebx
call fcn.0041b86e
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x18], ecx
test ebx, ebx
je 0x41beb3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
and dword [ebp - 0x20], 0
test eax, eax
jne 0x41be3d
cmp dword [ebp - 0x28], eax
je 0x41ba7d
test ecx, ecx
jne 0x41ba7d
lea eax, [ebp + 0x2000]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x41be3d
jmp 0x41ba7d
mov ecx, eax
call fcn.0041b8a3
cmp dword [ebp - 0x34], 0
mov esi, eax
je 0x41bf16
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41bf16
mov ecx, eax
call fcn.0041b8a3
mov esi, eax
mov ebx, dword [ebp - 0x24]
jmp 0x41bf16
mov esi, 0x80020009
test ebx, ebx
je 0x41bf21
push ebx
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 + 0x2208]
xor ecx, ebp
call fcn.004473b9
add ebp, 0x220c
leave
ret 0x10