Function at 0x40967a
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1108]
mov eax, 0x1108
call fcn.00450f80
push 0xffffffffffffffff
push 0x47b250
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4b34c4]
xor eax, ebp
mov dword [ebp + 0x1104], 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 + 0x1114]
mov edi, dword [ebp + 0x1110]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.00408d16
mov esi, eax
test esi, esi
js 0x409bc2
jmp 0x409b8d
push str.Delete
push edi
mov dword [ebp - 0x14], 1
call dword [sym.imp.kernel32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
je 0x409725
test esi, esi
je 0x4097bf
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00408d16
mov esi, eax
test esi, esi
js 0x409bb7
cmp dword [ebp + 0x1118], 0
je 0x4097bf
and dword [ebp - 0x44], 0
and dword [ebp - 0x3c], 0
push 0x5c
push edi
call fcn.0040a104
pop ecx
pop ecx
test eax, eax
jne 0x409bb2
mov esi, dword [ebp - 0x10]
mov ecx, esi
push edi
call fcn.00408886
test eax, eax
je 0x409785
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
and dword [ebp - 0x40], 0
push edi
mov dword [ebp - 0x44], eax
call fcn.004090ed
and dword [ebp - 0x44], 0
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x1c], 0
je 0x4097b9
push edi
mov ecx, esi
call fcn.00408d16
mov esi, eax
test esi, esi
js 0x409bb7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0045b6f9
mov esi, eax
test esi, esi
js 0x409bb7
and dword [ebp - 0x40], 0
jmp 0x4099cc
and dword [ebp - 0x40], 0
jmp 0x4097c2
mov esi, dword [ebp - 0x10]
push str.NoRemove
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x4097e7
and dword [ebp - 0x14], eax
mov ecx, esi
push edi
call fcn.00408d16
mov esi, eax
test esi, esi
js 0x409bb7
push 0x4868c8
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x4098f2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.00408d16
mov esi, eax
test esi, esi
js 0x409bb7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00408d16
mov esi, eax
test esi, esi
js 0x409bb7
cmp byte [edi], 0x3d
jne 0x409bb2
cmp dword [ebp + 0x1118], 0
je 0x409879
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
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]
mov byte [ebp - 4], 1
push eax
call fcn.00408265
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 0x409bb7
mov byte [ebp - 4], al
mov dword [ebp - 0x4c], eax
jmp 0x4099cc
cmp dword [ebp + 0x111c], 0
jne 0x4098da
cmp dword [ebp - 0x14], 0
je 0x4098da
xor eax, eax
lea ecx, [ebp - 0x34]
push 0x20006
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.0045b6f9
test eax, eax
jne 0x409b98
mov esi, dword [ebp - 0x34]
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4098c7
cmp eax, 2
jne 0x409b98
test esi, esi
je 0x4098d6
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.0045b6f9
mov esi, eax
test esi, esi
js 0x409bb7
jmp 0x409b8d
push 0x5c
push edi
call fcn.0040a104
pop ecx
pop ecx
test eax, eax
jne 0x409bb2
cmp dword [ebp + 0x1118], eax
je 0x409a0f
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
mov esi, 0x2001f
push esi
push edi
push ebx
call fcn.0045b6f9
test eax, eax
je 0x409995
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0045b6f9
test eax, eax
je 0x409995
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x54]
push eax
xor edx, edx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edx
push eax
push edx
push esi
push edx
push edx
push edx
push edi
push ebx
test ecx, ecx
je 0x40995c
call fcn.0045b6f9
jmp 0x409962
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409980
cmp dword [ebp - 0x28], eax
je 0x409974
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x14]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], ebx
jmp 0x409983
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x409998
push eax
call fcn.0040881e
pop ecx
mov esi, eax
jmp 0x409bb7
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00408d16
mov esi, eax
test esi, esi
js 0x409bb7
cmp byte [edi], 0x3d
jne 0x4099cc
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push edi
push 0
push eax
call fcn.00408265
mov ebx, dword [ebp - 0x28]
mov esi, eax
test esi, esi
js 0x409bb7
cmp byte [edi], 0x7b
jne 0x409b8d
push edi
call fcn.00456520
pop ecx
cmp eax, 1
jne 0x409b8d
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x1118]
push ebx
push edi
call fcn.0040967a
mov esi, eax
test esi, esi
js 0x409bb7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00408d16
jmp 0x4098e3
cmp dword [ebp + 0x111c], 0
jne 0x409a2e
push 0x20019
push edi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
call fcn.0045b6f9
mov ebx, dword [ebp - 0x28]
jmp 0x409a31
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push edi
cmove ecx, dword [ebp + 0x111c]
lea eax, [ebp + 0x1000]
push 0x104
push eax
mov dword [ebp - 0x38], ecx
call fcn.0045b6f9
push eax
call fcn.004087cf
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.00408d16
mov esi, eax
test esi, esi
js 0x409bb7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0045b6f9
mov esi, eax
test esi, esi
js 0x409bb7
cmp byte [edi], 0x7b
jne 0x409ac9
push edi
call fcn.00456520
pop ecx
cmp eax, 1
jne 0x409ac9
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
push 0
push ebx
push edi
call fcn.0040967a
mov esi, eax
test esi, esi
jns 0x409ab6
cmp dword [ebp - 0x38], 0
je 0x409bb7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00408d16
mov esi, eax
test esi, esi
js 0x409bb7
mov eax, dword [ebp - 0x1c]
cmp eax, 2
je 0x409b8d
test eax, eax
je 0x409aeb
cmp dword [ebp + 0x111c], 0
je 0x409987
jmp 0x409b8d
cmp dword [ebp + 0x111c], 0
je 0x409b2e
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.0045b6f9
test eax, eax
je 0x409b2e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x1000]
push eax
call fcn.00408886
test eax, eax
je 0x409b8d
cmp dword [ebp - 0x14], 0
je 0x409b8d
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x28]
call fcn.004090ed
mov ebx, dword [ebp - 0x28]
jmp 0x409b8d
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.0045b6f9
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x1c], ecx
test ebx, ebx
je 0x409b51
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
and dword [ebp - 0x24], 0
test eax, eax
jne 0x409987
cmp dword [ebp - 0x14], eax
je 0x409b8d
test ecx, ecx
jne 0x409b8d
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x5c], ecx
and dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x1000]
push eax
call fcn.0040899c
and dword [ebp - 0x60], 0
test eax, eax
jne 0x409987
cmp byte [edi], 0x7d
jne 0x4096f2
jmp 0x409bb7
push eax
call fcn.0040881e
cmp dword [ebp - 0x34], 0
mov esi, eax
pop ecx
je 0x409bb7
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409bb7
mov esi, 0x80020009
test ebx, ebx
je 0x409bc2
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 + 0x1104]
xor ecx, ebp
call fcn.00450e68
add ebp, 0x1108
leave
ret 0x10