Function at 0x408920
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.0042d4a0
mov eax, dword [0x47e064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, ecx
mov dword [ebp - 0x2224], 0
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2214], ecx
mov ecx, eax
push edi
mov dword [ebp - 0x2210], eax
mov dword [ebp - 0x2220], 0
mov dword [ebp - 0x221c], 0
call fcn.00407b40
mov esi, eax
test esi, esi
js 0x40909e
cmp word [edi], 0x7d
push ebx
je 0x40908a
nop dword [eax + eax]
push 0x46a530
push edi
mov dword [ebp - 0x2218], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x46a4fc
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4089c3
test ebx, ebx
je 0x408adf
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00407b40
mov esi, eax
test esi, esi
js 0x40908a
cmp dword [ebp + 0x10], 0
je 0x408adf
movzx ecx, word [edi]
mov eax, edi
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
test cx, cx
je 0x408a31
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x408a29
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x408a10
jmp 0x408a31
test eax, eax
jne 0x409048
mov esi, 0x46a540
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408a98
add esi, 4
cmp esi, 0x46a570
jl 0x408a36
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2230]
push edi
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
call fcn.00408490
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
test ebx, ebx
je 0x408ad5
mov ebx, dword [ebp - 0x2210]
mov ecx, ebx
push edi
call fcn.00407b40
mov esi, eax
test esi, esi
js 0x40905a
push edi
mov ecx, ebx
call fcn.00409340
mov esi, eax
test esi, esi
js 0x40905a
mov dword [ebp - 0x222c], 0
jmp 0x408ded
mov dword [ebp - 0x222c], 0
push 0x46a518
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2210]
test eax, eax
jne 0x408b0d
push edi
mov ecx, ebx
mov dword [ebp - 0x2218], eax
call fcn.00407b40
mov esi, eax
test esi, esi
js 0x40908a
push 0x46a4f0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408c71
lea eax, [ebp - 0x220c]
mov ecx, ebx
push eax
call fcn.00407b40
mov esi, eax
test esi, esi
js 0x40908a
push edi
mov ecx, ebx
call fcn.00407b40
mov esi, eax
test esi, esi
js 0x40908a
cmp word [edi], 0x3d
jne 0x409053
cmp dword [ebp + 0x10], 0
je 0x408bc9
mov eax, dword [ebp - 0x2214]
mov ecx, ebx
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x220c]
push edi
push eax
lea eax, [ebp - 0x2250]
mov dword [ebp - 0x224c], 0
push eax
mov dword [ebp - 0x2248], 0
call fcn.00403fb0
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
jns 0x408ded
lea ecx, [ebp - 0x2250]
call fcn.00403ad0
jmp 0x40908a
cmp dword [ebp + 0x14], 0
jne 0x408c5a
cmp dword [ebp - 0x2218], 0
je 0x408c5a
push 0x20006
push 0
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2244]
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.00407dc0
test eax, eax
jne 0x409067
mov esi, dword [ebp - 0x2244]
lea eax, [ebp - 0x220c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x408c3b
cmp eax, 2
jne 0x409067
test esi, esi
je 0x408c50
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
push edi
mov ecx, ebx
call fcn.00409340
mov esi, eax
test esi, esi
js 0x40908a
jmp 0x40903c
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x408ca1
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x408c99
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x408c80
jmp 0x408ca1
test eax, eax
jne 0x409053
cmp dword [ebp + 0x10], 0
je 0x408e4c
mov esi, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2224]
push 0x2001f
push edi
push esi
call fcn.00407dc0
test eax, eax
je 0x408dba
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2224]
call fcn.00407dc0
test eax, eax
je 0x408dba
mov esi, dword [ebp - 0x221c]
mov dword [ebp - 0x2218], 0
test esi, esi
je 0x408d5b
cmp dword [esi], 0
je 0x408d4e
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x408d14
mov eax, 1
jmp 0x408d83
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408d54
push 0
push dword [esi]
lea ecx, [ebp - 0x2234]
push ecx
lea ecx, [ebp - 0x2218]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2214]
call eax
jmp 0x408d83
cmp dword [esi + 4], 0
jne 0x408d5b
mov eax, 1
jmp 0x408d83
lea eax, [ebp - 0x2234]
push eax
lea eax, [ebp - 0x2218]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40907f
mov ecx, dword [ebp - 0x2224]
test ecx, ecx
je 0x408d9c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2218]
mov dword [ebp - 0x2220], 0
mov dword [ebp - 0x2224], ecx
test eax, eax
jne 0x40907f
push edi
mov ecx, ebx
call fcn.00407b40
mov esi, eax
test esi, esi
js 0x40908a
cmp word [edi], 0x3d
jne 0x408ded
push edi
push 0
lea eax, [ebp - 0x2224]
mov ecx, ebx
push eax
call fcn.00403fb0
mov esi, eax
test esi, esi
js 0x40908a
cmp word [edi], 0x7b
jne 0x40903c
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408e00
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40903c
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2224]
push edi
call fcn.00408920
mov esi, eax
test esi, esi
js 0x40908a
push edi
mov ecx, ebx
call fcn.00407b40
mov esi, eax
test esi, esi
js 0x40908a
jmp 0x40903c
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x408e6e
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2224]
call fcn.00407dc0
mov ebx, eax
jmp 0x408e73
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x2238], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00437f4a
push eax
call fcn.00404650
mov ecx, dword [ebp - 0x2210]
add esp, 0x14
push edi
call fcn.00407b40
mov esi, eax
test esi, esi
js 0x40908a
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00409340
mov esi, eax
test esi, esi
js 0x40908a
cmp word [edi], 0x7b
jne 0x408f37
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ee0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x408f37
push dword [ebp - 0x2238]
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp - 0x2224]
push edi
call fcn.00408920
mov esi, eax
test esi, esi
jns 0x408f21
cmp dword [ebp - 0x2238], 0
je 0x40908a
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00407b40
mov esi, eax
test esi, esi
js 0x40908a
cmp ebx, 2
je 0x40903c
test ebx, ebx
je 0x408f54
cmp dword [ebp + 0x14], 0
jne 0x40903c
push ebx
jmp 0x409080
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x2210]
je 0x408fab
push dword [ebp - 0x2224]
mov ecx, ebx
call fcn.00407240
test eax, eax
je 0x408fab
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00404750
test eax, eax
je 0x40903c
cmp dword [ebp - 0x2218], 0
je 0x40903c
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2224]
call fcn.00408490
jmp 0x40903c
push dword [ebp - 0x2224]
mov ecx, ebx
call fcn.00407240
mov ecx, dword [ebp - 0x2224]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x408fd5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2220], 0
test eax, eax
jne 0x40907f
cmp dword [ebp - 0x2218], eax
je 0x40903c
test ebx, ebx
jne 0x40903c
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
call fcn.004059e0
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], 0
mov ebx, eax
call fcn.00403ad0
test ebx, ebx
jne 0x408f4e
cmp word [edi], 0x7d
jne 0x408990
jmp 0x40908a
lea ecx, [ebp - 0x2230]
call fcn.00403ad0
mov esi, 0x80020009
jmp 0x40908a
lea ecx, [ebp - 0x2230]
call fcn.00403ad0
jmp 0x40908a
push eax
call fcn.00404710
add esp, 4
lea ecx, [ebp - 0x2244]
mov esi, eax
call fcn.00403ad0
jmp 0x40908a
push eax
call fcn.00404710
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2224]
pop ebx
test eax, eax
je 0x40909c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042d480
mov esp, ebp
pop ebp
ret 0x10