Function at 0x408040
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40cdf6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1164
call fcn.0040c860
mov eax, dword [0x413034]
xor eax, esp
mov dword [esp + 0x1160], eax
push ebx
push esi
push edi
mov eax, dword [0x413034]
xor eax, esp
push eax
lea eax, [esp + 0x1178]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov edx, dword [ebp + 0x14]
mov eax, ebx
mov edi, ecx
mov dword [esp + 0x1180], esi
mov dword [esp + 0x38], edx
call fcn.00407ed0
mov edi, eax
cmp edi, esi
jl 0x40863c
cmp byte [ebx], 0x7d
je 0x40863a
jmp 0x4080d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push ebx
mov dword [esp + 0x3c], 1
call edi
neg eax
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x4080ff
test esi, esi
je 0x408227
mov edi, dword [esp + 0x10]
mov eax, ebx
call fcn.00407ed0
mov edi, eax
test edi, edi
js 0x40862b
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x408227
mov cl, byte [ebx]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, ebx
test cl, cl
je 0x408151
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x5c
je 0x408149
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x408139
jmp 0x408151
test eax, eax
jne 0x408609
mov edi, 0x40ee7c
mov eax, dword [edi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x408197
add edi, 4
cmp edi, 0x40eeac
jl 0x408156
mov ecx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x28], ecx
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.00407c40
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
test esi, esi
je 0x40821f
mov esi, dword [esp + 0x10]
mov eax, ebx
mov edi, esi
call fcn.00407ed0
mov edi, eax
test edi, edi
js 0x408622
push ebx
mov ecx, esi
call fcn.00407ad0
mov edi, eax
test edi, edi
js 0x408622
mov dword [esp + 0x2c], 0
cmp byte [ebx], 0x7b
jne 0x408211
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x408211
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
push ebx
mov ecx, esi
call fcn.00408040
mov edi, eax
test edi, edi
js 0x40862b
mov eax, ebx
mov edi, esi
call fcn.00407ed0
mov edi, eax
test edi, edi
js 0x40862b
cmp byte [ebx], 0x7d
jne 0x4080d0
jmp 0x40862b
mov dword [esp + 0x2c], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408250
mov edi, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, ebx
call fcn.00407ed0
mov edi, eax
test edi, edi
js 0x40862b
push 0x40e570
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40837e
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x16c]
call fcn.00407ed0
mov edi, eax
test edi, edi
js 0x40862b
mov edi, dword [esp + 0x10]
mov eax, ebx
call fcn.00407ed0
mov edi, eax
test edi, edi
js 0x40862b
cmp byte [ebx], 0x3d
jne 0x408612
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4082fe
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x16c]
mov byte [esp + 0x1180], 1
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x14]
push ecx
mov ecx, ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.00407500
mov edi, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
cmp edi, esi
jl 0x408662
mov byte [esp + 0x1180], 0
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x10]
jmp 0x4081d0
cmp dword [ebp + 0x14], esi
jne 0x408365
cmp dword [esp + 0x34], esi
je 0x408365
mov edx, dword [esp + 0x20]
push esi
push edx
lea eax, [esp + 0x5c]
push eax
mov eax, 0x20006
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call fcn.00407b80
cmp eax, esi
jne 0x408676
mov edi, dword [esp + 0x54]
lea ecx, [esp + 0x16c]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, esi
je 0x408352
cmp eax, 2
jne 0x408676
cmp edi, esi
je 0x408361
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov ecx, dword [esp + 0x10]
push ebx
call fcn.00407ad0
mov edi, eax
cmp edi, esi
jl 0x40862b
jmp 0x408211
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4083a2
cmp cl, 0x5c
je 0x40839a
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x408386
jmp 0x4083a2
test eax, eax
jne 0x408612
cmp dword [ebp + 0x10], 0
je 0x408431
mov esi, dword [esp + 0x20]
push ebx
push esi
lea edx, [esp + 0x1c]
push edx
mov eax, 0x2001f
call fcn.00407b80
test eax, eax
je 0x4083f2
push ebx
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, 0x20019
call fcn.00407b80
test eax, eax
je 0x4083f2
lea ecx, [esp + 0x14]
push ecx
mov eax, ebx
mov ecx, esi
call fcn.00407190
mov edi, eax
test edi, edi
jne 0x408683
mov esi, dword [esp + 0x10]
mov eax, ebx
mov edi, esi
call fcn.00407ed0
mov edi, eax
test edi, edi
js 0x40862b
cmp byte [ebx], 0x3d
jne 0x4081d0
push 0
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
mov edx, esi
call fcn.00407500
mov edi, eax
test edi, edi
js 0x40862b
jmp 0x4081d0
cmp dword [ebp + 0x14], 0
jne 0x40848a
mov eax, dword [esp + 0x20]
push ebx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov eax, 0x20019
call fcn.00407b80
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
je 0x40845d
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x6c]
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
add esp, 0x10
cmp eax, 0x50
ja case.0x408483.1
movzx eax, byte [eax + 0x4086ec]
jmp dword [eax*4 + 0x4086dc]
mov dword [esp + 0x24], 2
mov esi, dword [esp + 0x24]
jmp 0x408456
mov edi, dword [esp + 0x10]
mov eax, ebx
call fcn.00407ed0
mov edi, eax
test edi, edi
js 0x40862b
mov ecx, dword [esp + 0x10]
push ebx
call fcn.00407ad0
mov edi, eax
test edi, edi
js 0x40862b
cmp byte [ebx], 0x7b
jne 0x40850e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40850e
mov esi, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push esi
push 0
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
call fcn.00408040
mov edi, eax
test edi, edi
jns 0x4084f5
test esi, esi
je 0x40862b
mov edi, dword [esp + 0x10]
mov eax, ebx
call fcn.00407ed0
mov edi, eax
test edi, edi
js 0x40862b
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov dword [ebp + 0x14], edx
cmp esi, 2
je 0x408211
test esi, esi
je 0x408538
test edx, edx
jne 0x408211
mov eax, esi
call fcn.00407ec0
mov edi, eax
jmp 0x40862b
mov esi, dword [esp + 0x14]
test edx, edx
je 0x40857b
mov ecx, esi
call fcn.00407d60
test eax, eax
je 0x40857b
lea eax, [esp + 0x64]
push eax
call fcn.00407b40
test eax, eax
je 0x408211
cmp dword [esp + 0x34], 0
je 0x408211
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x18]
call fcn.00407c40
jmp 0x408211
mov ecx, esi
call fcn.00407d60
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x24], eax
test esi, esi
je 0x4085a3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
test eax, eax
jne 0x4086a9
cmp dword [esp + 0x34], eax
je 0x408211
cmp dword [esp + 0x60], eax
jne 0x408211
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x64]
xor esi, esi
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call fcn.00407df0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
cmp eax, esi
jne 0x4086c0
lea esi, [esp + 0x48]
call fcn.00407dd0
jmp 0x408211
lea esi, [esp + 0x28]
call fcn.00407dd0
lea esi, [esp + 0x14]
call fcn.00407dd0
mov eax, 0x80020009
jmp 0x40863c
lea esi, [esp + 0x28]
call fcn.00407dd0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40863a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x1178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1160]
xor ecx, esp
call fcn.0040be38
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x3c]
call fcn.00407dd0
lea esi, [esp + 0x14]
call fcn.00407dd0
jmp 0x40863a
call fcn.00407ec0
mov edi, eax
lea esi, [esp + 0x54]
jmp 0x408626
lea esi, [esp + 0x14]
call fcn.00407dd0
mov eax, edi
call fcn.00407ec0
jmp 0x40863c
push 0x8007000e
call fcn.00407a00
push 0x80070057
call fcn.00407a00
lea esi, [esp + 0x14]
call fcn.00407dd0
mov eax, dword [esp + 0x24]
call fcn.00407ec0
jmp 0x40863c
call fcn.00407ec0
mov edi, eax
lea esi, [esp + 0x48]
jmp 0x408626
push 0x80004005
call fcn.00407a00
mov edi, edi
cwde
test byte [eax], al
xchg ebp, eax
xchg byte [eax], al
lahf
xchg byte [eax], al
rol byte [esi + 0x3000040], 1
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3