Function at 0x40407e
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x413040]
and dword [ebp - 0x6c], 0
xor eax, ebp
mov dword [ebp + 0x3a8], eax
mov eax, dword [ebp + 0x3b8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x3c0]
push ebx
mov ebx, dword [ebp + 0x3b4]
mov dword [ebp - 0x80], eax
push esi
mov eax, ebx
mov dword [ebp - 0x70], ecx
call fcn.00403f47
mov esi, eax
test esi, esi
jge 0x4040cc
jmp 0x404439
cmp word [ebx], 0x7d
push edi
je 0x404436
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4106d4
push ebx
mov dword [ebp - 0x74], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x404103
test edi, edi
je 0x404172
mov ecx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00403f47
mov esi, eax
test esi, esi
jl 0x404427
cmp dword [ebp + 0x3bc], 0
je 0x404172
push 0x5c
mov eax, ebx
call fcn.00403dc8
test eax, eax
pop ecx
jne 0x40450d
push ebx
call fcn.00404a3f
test eax, eax
je 0x40414b
mov eax, dword [ebp - 0x78]
push ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
call fcn.00404a6b
test edi, edi
je 0x404172
mov ecx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00403f47
mov esi, eax
test esi, esi
jl 0x404427
mov ecx, dword [ebp - 0x70]
mov edi, ebx
call fcn.004049a5
jmp 0x40434c
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404199
and dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00403f47
mov esi, eax
test esi, esi
jl 0x404427
push 0x410710
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4042b8
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x68]
call fcn.00403f47
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x404427
mov ecx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00403f47
mov esi, eax
cmp esi, edi
jl 0x404427
cmp word [ebx], 0x3d
jne 0x4044d0
cmp dword [ebp + 0x3bc], edi
je 0x40425d
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
push ebx
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x74]
call fcn.00404579
mov esi, eax
cmp esi, edi
jl 0x4044d5
cmp word [ebx], 0x7b
jne 0x40424e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40424e
mov ecx, dword [ebp - 0x70]
push 0
push dword [ebp + 0x3bc]
push dword [ebp - 0x6c]
push ebx
call fcn.0040407e
mov esi, eax
test esi, esi
jl 0x404427
mov ecx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00403f47
mov esi, eax
test esi, esi
jl 0x404427
cmp word [ebx], 0x7d
jne 0x4040d7
jmp 0x404427
cmp dword [ebp + 0x3c0], edi
jne 0x4042ac
cmp dword [ebp - 0x74], edi
je 0x4042ac
push 0x20006
push edi
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], edi
call fcn.00404972
cmp eax, edi
jne 0x4044ef
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4042a1
cmp eax, 2
jne 0x4044dd
test edi, edi
je 0x4042ac
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x70]
mov edi, ebx
call fcn.004049a5
jmp 0x404244
push 0x5c
mov eax, ebx
call fcn.00403dc8
test eax, eax
pop ecx
jne 0x40450d
xor esi, esi
cmp dword [ebp + 0x3bc], esi
je 0x40435b
push 0x2001f
push ebx
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
call fcn.00404972
test eax, eax
je 0x404320
push 0x20019
push ebx
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
call fcn.00404972
test eax, eax
je 0x404320
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp - 0x78]
xor edi, edi
lea eax, [ebp - 0x6c]
call fcn.00404530
cmp eax, esi
jne 0x404420
mov ecx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00403f47
mov esi, eax
test esi, esi
jl 0x404427
cmp word [ebx], 0x3d
jne 0x40420a
mov ecx, dword [ebp - 0x70]
push ebx
push 0
lea edx, [ebp - 0x6c]
call fcn.00404579
mov esi, eax
test esi, esi
jl 0x404427
jmp 0x40420a
cmp dword [ebp + 0x3c0], esi
jne 0x404379
push 0x20019
push ebx
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
call fcn.00404972
mov dword [ebp - 0x7c], eax
jmp 0x404380
mov dword [ebp - 0x7c], 2
cmp dword [ebp - 0x7c], esi
je 0x40438f
mov dword [ebp + 0x3c0], 1
push 0x104
push ebx
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00403f47
mov esi, eax
test esi, esi
jl 0x404427
mov ecx, dword [ebp - 0x70]
mov edi, ebx
call fcn.004049a5
mov esi, eax
test esi, esi
jl 0x404427
cmp word [ebx], 0x7b
jne 0x4043fb
push dword [ebp + 0x3c0]
mov ecx, dword [ebp - 0x70]
push 0
push dword [ebp - 0x6c]
push ebx
call fcn.0040407e
mov esi, eax
test esi, esi
jge 0x4043eb
cmp dword [ebp + 0x3c0], 0
je 0x404427
mov ecx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00403f47
mov esi, eax
test esi, esi
jl 0x404427
cmp dword [ebp - 0x7c], 2
mov eax, dword [ebp - 0x80]
mov dword [ebp + 0x3c0], eax
je 0x40424e
mov eax, dword [ebp - 0x7c]
xor edi, edi
cmp eax, edi
je 0x404452
cmp dword [ebp - 0x80], edi
jne 0x40424e
call fcn.00404b68
mov esi, eax
cmp dword [ebp - 0x6c], 0
je 0x404436
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp + 0x3a8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f143
add ebp, 0x3ac
leave
ret 0x10
cmp dword [ebp - 0x80], edi
je 0x404495
push dword [ebp - 0x6c]
call fcn.00404a0a
test eax, eax
je 0x404495
lea eax, [ebp + 0x1a0]
push eax
call fcn.00404a3f
test eax, eax
je 0x40424e
cmp dword [ebp - 0x74], 0
je 0x40424e
lea eax, [ebp + 0x1a0]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00404a6b
jmp 0x40424e
cmp dword [ebp - 0x6c], edi
je 0x4044aa
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 0x6c], edi
jne 0x404526
cmp dword [ebp - 0x74], edi
je 0x40424e
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x404420
jmp 0x40424e
cmp dword [ebp - 0x6c], edi
jmp 0x404511
cmp dword [ebp - 0x6c], edi
jmp 0x40442b
call fcn.00404b68
test edi, edi
mov esi, eax
je 0x404427
push edi
jmp 0x404502
call fcn.00404b68
cmp dword [ebp - 0x74], edi
mov esi, eax
je 0x404427
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404427
cmp dword [ebp - 0x6c], 0
je 0x40451c
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x404438
call fcn.00404b68
jmp 0x404438