Function at 0x4090b5
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e0e4
mov eax, dword fs:[0]
push eax
mov eax, 0x115c
call fcn.0040fb30
mov eax, dword [0x4791b4]
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 - 0x1118], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1120], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x1130], ebx
mov dword [ebp - 0x1128], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.00408764
mov esi, eax
test esi, esi
js 0x409707
jmp 0x4096bb
push str.Delete
push edi
mov dword [ebp - 0x111c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x1124], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x409164
test esi, esi
je 0x409229
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00408764
mov esi, eax
test esi, esi
js 0x4096fc
cmp dword [ebp + 0x10], 0
je 0x409229
and dword [ebp - 0x114c], 0
and dword [ebp - 0x1144], 0
push 0x5c
push edi
call fcn.00409bd8
pop ecx
pop ecx
test eax, eax
jne 0x4096f7
mov esi, dword [ebp - 0x1118]
mov ecx, esi
push edi
call fcn.0040836e
test eax, eax
je 0x4091e3
mov eax, dword [ebp - 0x1120]
lea ecx, [ebp - 0x114c]
and dword [ebp - 0x1148], 0
push edi
mov dword [ebp - 0x114c], eax
call fcn.00408b27
and dword [ebp - 0x114c], 0
and dword [ebp - 0x1144], 0
cmp dword [ebp - 0x1124], 0
je 0x409220
push edi
mov ecx, esi
call fcn.00408764
mov esi, eax
test esi, esi
js 0x4096fc
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00409b52
mov esi, eax
test esi, esi
js 0x4096fc
and dword [ebp - 0x1148], 0
jmp 0x4094ac
and dword [ebp - 0x1148], 0
jmp 0x40922f
mov esi, dword [ebp - 0x1118]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409257
and dword [ebp - 0x111c], eax
mov ecx, esi
push edi
call fcn.00408764
mov esi, eax
test esi, esi
js 0x4096fc
push 0x4642a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4093a7
mov ecx, dword [ebp - 0x1118]
lea eax, [ebp - 0x1114]
push eax
call fcn.00408764
mov esi, eax
test esi, esi
js 0x4096fc
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00408764
mov esi, eax
test esi, esi
js 0x4096fc
cmp byte [edi], 0x3d
jne 0x4096f7
cmp dword [ebp + 0x10], 0
je 0x409310
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x1118]
and dword [ebp - 0x1154], 0
and dword [ebp - 0x1150], 0
mov dword [ebp - 0x1158], eax
lea eax, [ebp - 0x1114]
push edi
push eax
lea eax, [ebp - 0x1158]
mov byte [ebp - 4], 1
push eax
call fcn.00407b75
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1158], eax
mov dword [ebp - 0x1154], eax
mov dword [ebp - 0x1150], eax
test esi, esi
js 0x4096fc
mov byte [ebp - 4], al
mov dword [ebp - 0x1154], eax
jmp 0x4094ac
cmp dword [ebp + 0x14], 0
jne 0x40938c
cmp dword [ebp - 0x111c], 0
je 0x40938c
xor eax, eax
lea ecx, [ebp - 0x113c]
push 0x20006
push eax
push dword [ebp - 0x1120]
mov dword [ebp - 0x113c], eax
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x1134], eax
call fcn.00408877
test eax, eax
jne 0x4096c6
mov esi, dword [ebp - 0x113c]
lea eax, [ebp - 0x1114]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x409373
cmp eax, 2
jne 0x4096c6
test esi, esi
je 0x409385
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x113c], 0
and dword [ebp - 0x1138], 0
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00409b52
mov esi, eax
test esi, esi
js 0x4096fc
jmp 0x4096bb
push 0x5c
push edi
call fcn.00409bd8
pop ecx
pop ecx
test eax, eax
jne 0x4096f7
cmp dword [ebp + 0x10], eax
je 0x4094f2
mov ebx, dword [ebp - 0x1120]
lea ecx, [ebp - 0x1130]
mov esi, 0x2001f
push esi
push edi
push ebx
call fcn.00408877
test eax, eax
je 0x409466
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x1130]
call fcn.00408877
test eax, eax
je 0x409466
mov ecx, dword [ebp - 0x1128]
lea eax, [ebp - 0x115c]
push eax
xor edx, edx
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x111c], edx
push eax
push edx
push esi
push edx
push edx
push edx
push edi
push ebx
test ecx, ecx
je 0x409427
call fcn.00408c15
jmp 0x40942d
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4096e6
cmp dword [ebp - 0x1130], eax
je 0x409449
push dword [ebp - 0x1130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x112c], 0
mov ebx, dword [ebp - 0x111c]
mov dword [ebp - 0x1130], ebx
test eax, eax
jne 0x4096ec
jmp 0x40946c
mov ebx, dword [ebp - 0x1130]
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00408764
mov esi, eax
test esi, esi
js 0x4096fc
cmp byte [edi], 0x3d
jne 0x4094ac
mov ecx, dword [ebp - 0x1118]
lea eax, [ebp - 0x1130]
push edi
push 0
push eax
call fcn.00407b75
mov ebx, dword [ebp - 0x1130]
mov esi, eax
test esi, esi
js 0x4096fc
cmp byte [edi], 0x7b
jne 0x4096bb
push edi
call fcn.0041bd80
pop ecx
cmp eax, 1
jne 0x4096bb
mov ecx, dword [ebp - 0x1118]
push 0
push dword [ebp + 0x10]
push ebx
push edi
call fcn.004090b5
mov esi, eax
test esi, esi
js 0x4096fc
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00408764
jmp 0x409398
cmp dword [ebp + 0x14], 0
jne 0x409517
push 0x20019
push edi
push dword [ebp - 0x1120]
lea ecx, [ebp - 0x1130]
call fcn.00408877
mov ebx, dword [ebp - 0x1130]
jmp 0x40951a
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x1124], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push edi
cmove ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x114]
push 0x104
push eax
mov dword [ebp - 0x1140], ecx
call fcn.0043b4dc
push eax
call fcn.00408228
mov ecx, dword [ebp - 0x1118]
add esp, 0x14
push edi
call fcn.00408764
mov esi, eax
test esi, esi
js 0x4096fc
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00409b52
mov esi, eax
test esi, esi
js 0x4096fc
cmp byte [edi], 0x7b
jne 0x4095c7
push edi
call fcn.0041bd80
pop ecx
cmp eax, 1
jne 0x4095c7
push dword [ebp - 0x1140]
mov ecx, dword [ebp - 0x1118]
push 0
push ebx
push edi
call fcn.004090b5
mov esi, eax
test esi, esi
jns 0x4095b1
cmp dword [ebp - 0x1140], 0
je 0x4096fc
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00408764
mov esi, eax
test esi, esi
js 0x4096fc
mov eax, dword [ebp - 0x1124]
cmp eax, 2
je 0x4096bb
test eax, eax
je 0x4095e9
cmp dword [ebp + 0x14], 0
je 0x4096ec
jmp 0x4096bb
cmp dword [ebp + 0x14], 0
je 0x409640
mov ecx, dword [ebp - 0x1118]
push ebx
call fcn.00408629
test eax, eax
je 0x409640
mov ecx, dword [ebp - 0x1118]
lea eax, [ebp - 0x114]
push eax
call fcn.0040836e
test eax, eax
je 0x4096bb
cmp dword [ebp - 0x111c], 0
je 0x4096bb
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1130]
call fcn.00408b27
mov ebx, dword [ebp - 0x1130]
jmp 0x4096bb
mov ecx, dword [ebp - 0x1118]
push ebx
call fcn.00408629
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x1124], ecx
test ebx, ebx
je 0x40966f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1124]
xor ebx, ebx
mov dword [ebp - 0x1130], ebx
and dword [ebp - 0x112c], 0
test eax, eax
jne 0x4096ec
cmp dword [ebp - 0x111c], eax
je 0x4096bb
test ecx, ecx
jne 0x4096bb
mov eax, dword [ebp - 0x1120]
and dword [ebp - 0x1164], ecx
and dword [ebp - 0x1160], ecx
lea ecx, [ebp - 0x1168]
mov dword [ebp - 0x1168], eax
lea eax, [ebp - 0x114]
push eax
call fcn.0040847c
and dword [ebp - 0x1168], 0
test eax, eax
jne 0x4096ec
cmp byte [edi], 0x7d
jne 0x40912b
jmp 0x4096fc
push eax
call fcn.0040827a
cmp dword [ebp - 0x113c], 0
mov esi, eax
pop ecx
je 0x4096fc
push dword [ebp - 0x113c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4096fc
mov ebx, dword [ebp - 0x1130]
push eax
call fcn.0040827a
pop ecx
mov esi, eax
jmp 0x4096fc
mov esi, 0x80020009
test ebx, ebx
je 0x409707
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 - 0x10]
xor ecx, ebp
call fcn.0040fb14
leave
ret 0x10