Function at 0x408720
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x42e07c]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [section..data]
push ebx
push esi
mov ebx, ecx
mov esi, section..data
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
push 0x6a
lea eax, [esp + 0x38]
push eax
call fcn.00401fbc
mov eax, dword [section..data]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebx + 0x4c]
add eax, 0x10
push dword [ebx + 0x48]
mov dword [esp + 0x38], eax
push str._cn__d_cxy__dhzr
lea eax, [esp + 0x3c]
call fcn.004023e7
mov eax, dword [esp + 0x3c]
mov edi, dword [eax - 0xc]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x4087a5
push edi
lea eax, [esp + 0x34]
push eax
call fcn.00402208
mov eax, dword [esp + 0x30]
lea ecx, [edi + edi]
push ecx
push eax
lea edi, [esp + 0xac]
lea ecx, [esp + 0x50]
call fcn.00423190
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x30]
push eax
push 8
pop ecx
call fcn.00401e5b
cmp byte [ebx + 0x2f], 2
mov eax, dword [section..data]
pop ecx
pop ecx
mov ecx, esi
jne 0x408ad3
call dword [eax + 0xc]
add eax, 0x10
lea edi, [ebx + 4]
mov dword [esp + 0x20], eax
push 0x400
lea ecx, [esp + 0x24]
mov eax, edi
mov dword [esp + 0x44], edi
call fcn.00405b01
mov eax, dword [section..data]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x3ef
lea ecx, [esp + 0x1c]
mov eax, edi
call fcn.00405b01
mov esi, dword [esp + 0x18]
push 0x4292a8
push esi
call fcn.00415cc7
pop ecx
pop ecx
test eax, eax
jne 0x408889
push 0x10
push dword [esp + 0x38]
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
call fcn.00401159
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00401159
xor esi, esi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.00401159
mov eax, esi
jmp 0x408e00
mov edi, 0x42935c
push edi
lea esi, [esp + 0x18]
call fcn.00401f81
push edi
lea esi, [esp + 0x10]
call fcn.00401f81
lea eax, [ebx + 0x54]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
push ecx
lea ecx, [esp + 0x34]
push ecx
call fcn.00402c06
pop ecx
pop ecx
lea ecx, [esp + 0x44]
push ecx
call fcn.00402c06
pop ecx
pop ecx
lea ecx, [esp + 0x4c]
push ecx
call fcn.00402c06
pop ecx
pop ecx
lea ecx, [esp + 0x20]
push ecx
call fcn.00402c06
mov eax, dword [esp + 0x4c]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
push 0x39d
mov dword [esp + 0x10], eax
push 0x2d7
push str._cn__d_cxy__dhzr
lea eax, [esp + 0x18]
call fcn.004023e7
add esp, 0xc
push 0x429360
lea esi, [esp + 0x18]
call fcn.00401f81
mov eax, esi
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
call fcn.00402c06
pop ecx
pop ecx
lea ecx, [esp + 0xc]
call fcn.00402c96
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401159
lea eax, [ebx + 0x58]
call fcn.00402b65
lea ecx, [esp + 0xc]
call fcn.00402c96
mov esi, dword [esp + 0xc]
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x4089bd
push edi
lea eax, [esp + 0x10]
push eax
call fcn.00402208
mov esi, dword [esp + 0xc]
lea eax, [edi + edi]
push eax
push esi
lea edi, [esp + 0xac]
lea ecx, [esp + 0x50]
call fcn.00423190
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x18]
push eax
push 8
pop ecx
call fcn.00401e5b
mov edi, dword [esp + 0x28]
pop ecx
pop ecx
test edi, edi
jne 0x4089fb
push 0x80004005
call fcn.00401000
push edi
push dword [esp + 0x18]
call fcn.0041552b
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [esp + 0x13], al
je 0x408a91
push 0
push 0
push 0xf0
push dword [ebx + 0x5c]
mov dword [esp + 0x34], vtable.CRegistry.0
mov dword [esp + 0x38], 0x80000001
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [esp + 0x24]
test eax, eax
je 0x408a66
call fcn.00424550
test eax, eax
je 0x408a7d
push ecx
lea eax, [edi - 0x10]
mov esi, esp
call fcn.004022eb
push dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x2c]
push eax
call fcn.004245d0
jmp 0x408a7d
call fcn.00424550
test eax, eax
je 0x408a7d
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea esi, [esp + 0x24]
call fcn.004244f0
mov ecx, esi
call fcn.004245a0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401159
lea eax, [esi - 0x10]
call fcn.00401159
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401159
lea eax, [edi - 0x10]
call fcn.00401159
mov edi, dword [esp + 0x40]
mov esi, section..data
jmp 0x408cfe
call dword [eax + 0xc]
add eax, 0x10
lea edi, [ebx + 4]
mov dword [esp + 0x18], eax
push 0x400
lea ecx, [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x44], edi
call fcn.00405b01
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0x20
jne 0x408b4c
lea eax, [ebx + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
pop ecx
call fcn.00401e5b
cmp dword [esp + 0x28], 0
pop ecx
pop ecx
je 0x4089f1
push dword [esp + 0x20]
push dword [esp + 0x1c]
call fcn.0041552b
neg eax
sbb al, al
inc al
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x28]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00401159
cmp byte [esp + 0x13], 0
jne 0x408cf2
mov eax, dword [section..data]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebx + 0x4c]
add eax, 0x10
push dword [ebx + 0x48]
mov dword [esp + 0x14], eax
push str._cn__d_cxy__dhzr
lea eax, [esp + 0x18]
call fcn.004023e7
add esp, 0xc
mov edi, 0x428c1c
push edi
lea esi, [esp + 0x18]
call fcn.00401f81
push edi
lea esi, [esp + 0x20]
call fcn.00401f81
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
mov eax, esi
call fcn.00402c06
pop ecx
pop ecx
lea ecx, [esp + 0x28]
push ecx
call fcn.00402c06
pop ecx
pop ecx
lea ecx, [esp + 0xc]
call fcn.00402c96
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401159
mov esi, dword [esp + 0xc]
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x408c06
push edi
lea eax, [esp + 0x10]
push eax
call fcn.00402208
mov esi, dword [esp + 0xc]
lea eax, [edi + edi]
push eax
push esi
lea edi, [esp + 0xac]
lea ecx, [esp + 0x50]
call fcn.00423190
mov byte [esp + 0x13], 1
xor eax, eax
mov cl, byte [esp + eax + 0xa4]
cmp cl, byte [ebx + eax + 0x38]
jne 0x408cab
inc eax
cmp eax, 0x10
jl 0x408c22
push 0
push 0
push 0xf0
push dword [ebx + 0x5c]
mov dword [esp + 0x48], vtable.CRegistry.0
mov dword [esp + 0x4c], 0x80000001
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x408cb2
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x28]
push eax
push 0x10
pop ecx
call fcn.00401e5b
pop ecx
pop ecx
lea esi, [esp + 0x38]
call fcn.00424550
mov edi, dword [esp + 0x24]
test eax, eax
je 0x408ca1
push ecx
lea eax, [edi - 0x10]
mov esi, esp
call fcn.004022eb
push dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x40]
push eax
call fcn.004245d0
lea eax, [edi - 0x10]
call fcn.00401159
jmp 0x408ccd
mov byte [esp + 0x13], 0
jmp 0x408ce1
lea esi, [esp + 0x38]
call fcn.00424550
test eax, eax
je 0x408ccd
push dword [esp + 0x2c]
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea esi, [esp + 0x38]
call fcn.004244f0
mov ecx, esi
call fcn.004245a0
mov esi, dword [esp + 0xc]
lea eax, [esi - 0x10]
call fcn.00401159
mov edi, dword [esp + 0x40]
mov esi, section..data
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401159
cmp byte [esp + 0x13], 0
je 0x408d16
xor esi, esi
inc esi
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40885e
mov eax, dword [section..data]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
inc dword [ebx + 0x20]
cmp dword [ebx + 0x20], 5
mov dword [esp + 0xc], eax
jl 0x408d8c
mov eax, dword [section..data]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x6e
lea eax, [esp + 0x20]
push eax
call fcn.00401fbc
mov esi, dword [esp + 0x1c]
push 5
push esi
lea eax, [esp + 0x14]
call fcn.004023e7
mov ebx, dword [esp + 0x14]
pop ecx
pop ecx
push 0x10
push dword [esp + 0x38]
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_EndDialog]
lea eax, [esi - 0x10]
call fcn.00401159
lea eax, [ebx - 0x10]
jmp 0x408857
cmp byte [ebx + 0x2f], 2
lea eax, [esp + 0xc]
jne 0x408d9a
push 0x7c
jmp 0x408d9c
push 0x6d
push eax
call fcn.00401fbc
mov esi, dword [esp + 0x34]
push 0x30
push esi
push dword [esp + 0x14]
push dword [edi]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebx + 0x2f], 1
jne 0x408dc9
push 0x42899c
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.00401159
lea eax, [esi - 0x10]
call fcn.00401159
xor eax, eax
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004144e4
mov esp, ebp
pop ebp
ret