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

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x41c0b0]
and dword [ebp - 0x74], 0
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3b8]
push ebx
mov ebx, dword [ebp + 0x3ac]
mov dword [ebp - 0x80], eax
push esi
mov eax, ebx
mov dword [ebp - 0x78], ecx
call fcn.0040342e
mov esi, eax
test esi, esi
jge 0x4035a6
jmp 0x40394e
cmp word [ebx], 0x7d
push edi
je 0x40394b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x419650
push ebx
mov dword [ebp - 0x7c], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x4035dd
test edi, edi
je 0x403655
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.0040342e
mov esi, eax
test esi, esi
jl 0x40393c
cmp dword [ebp + 0x3b4], 0
je 0x403655
push 0x5c
mov eax, ebx
call fcn.004032c6
test eax, eax
pop ecx
jne 0x403a2d
push ebx
call fcn.00403f9c
test eax, eax
je 0x40362e
mov eax, dword [ebp + 0x3b0]
push ebx
lea ecx, [ebp + 0x3ac]
mov dword [ebp + 0x3ac], eax
call fcn.00403fc8
test edi, edi
je 0x403655
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.0040342e
mov esi, eax
test esi, esi
jl 0x40393c
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.00403f06
jmp 0x40384f
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40367c
and dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.0040342e
mov esi, eax
test esi, esi
jl 0x40393c
push 0x41968c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4037b1
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x70]
call fcn.0040342e
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x40393c
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.0040342e
mov esi, eax
cmp esi, edi
jl 0x40393c
cmp word [ebx], 0x3d
jne 0x4039ea
cmp dword [ebp + 0x3b4], edi
je 0x40374a
mov eax, dword [ebp + 0x3b0]
mov dword [ebp + 0x3ac], eax
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3ac]
push eax
push dword [ebp - 0x78]
call fcn.00403a99
mov esi, eax
cmp esi, edi
jl 0x4039ef
cmp word [ebx], 0x7b
jne 0x40373b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40373b
mov ecx, dword [ebp - 0x78]
push 0
push dword [ebp + 0x3b4]
push dword [ebp - 0x74]
push ebx
call fcn.00403563
mov esi, eax
test esi, esi
jl 0x40393c
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.0040342e
mov esi, eax
test esi, esi
jl 0x40393c
cmp word [ebx], 0x7d
jne 0x4035b1
jmp 0x40393c
cmp dword [ebp + 0x3b8], edi
jne 0x4037a5
cmp dword [ebp - 0x7c], edi
je 0x4037a5
push 0x20006
push edi
push dword [ebp + 0x3b0]
lea eax, [ebp + 0x3ac]
mov dword [ebp + 0x3ac], edi
call fcn.00403ed3
cmp eax, edi
jne 0x403a09
mov edi, dword [ebp + 0x3ac]
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40379a
cmp eax, 2
jne 0x4039f7
test edi, edi
je 0x4037a5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.00403f06
jmp 0x403731
push 0x5c
mov eax, ebx
call fcn.004032c6
test eax, eax
pop ecx
jne 0x403a2d
xor esi, esi
cmp dword [ebp + 0x3b4], esi
je 0x40385e
push 0x2001f
push ebx
push dword [ebp + 0x3b0]
lea eax, [ebp - 0x74]
call fcn.00403ed3
test eax, eax
je 0x403822
push 0x20019
push ebx
push dword [ebp + 0x3b0]
lea eax, [ebp - 0x74]
call fcn.00403ed3
test eax, eax
je 0x403822
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp + 0x3b0]
xor edi, edi
lea eax, [ebp - 0x74]
call fcn.00403a50
cmp eax, esi
jne 0x403935
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.0040342e
mov esi, eax
test esi, esi
jl 0x40393c
cmp word [ebx], 0x3d
jne 0x4036f7
push ebx
push 0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00403a99
mov esi, eax
test esi, esi
jl 0x40393c
jmp 0x4036f7
cmp dword [ebp + 0x3b8], esi
jne 0x403882
push 0x20019
push ebx
push dword [ebp + 0x3b0]
lea eax, [ebp - 0x74]
call fcn.00403ed3
mov dword [ebp + 0x3ac], eax
jmp 0x40388c
mov dword [ebp + 0x3ac], 2
cmp dword [ebp + 0x3ac], esi
je 0x40389e
mov dword [ebp + 0x3b8], 1
push 0x104
push ebx
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.0040342e
mov esi, eax
test esi, esi
jl 0x40393c
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.00403f06
mov esi, eax
test esi, esi
jl 0x40393c
cmp word [ebx], 0x7b
jne 0x40390a
push dword [ebp + 0x3b8]
mov ecx, dword [ebp - 0x78]
push 0
push dword [ebp - 0x74]
push ebx
call fcn.00403563
mov esi, eax
test esi, esi
jge 0x4038fa
cmp dword [ebp + 0x3b8], 0
je 0x40393c
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.0040342e
mov esi, eax
test esi, esi
jl 0x40393c
cmp dword [ebp + 0x3ac], 2
mov eax, dword [ebp - 0x80]
mov dword [ebp + 0x3b8], eax
je 0x40373b
mov eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, edi
je 0x403965
cmp dword [ebp - 0x80], edi
jne 0x40373b
call fcn.004040c0
mov esi, eax
cmp dword [ebp - 0x74], 0
je 0x40394b
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp + 0x3a0]
pop esi
pop ebx
call fcn.0040f439
add ebp, 0x3a4
leave
ret 0x10
cmp dword [ebp - 0x80], edi
je 0x4039a8
push dword [ebp - 0x74]
call fcn.00403f67
test eax, eax
je 0x4039a8
lea eax, [ebp + 0x198]
push eax
call fcn.00403f9c
test eax, eax
je 0x40373b
cmp dword [ebp - 0x7c], 0
je 0x40373b
lea eax, [ebp + 0x198]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403fc8
jmp 0x40373b
cmp dword [ebp - 0x74], edi
je 0x4039c1
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 0x74], edi
jne 0x403a46
cmp dword [ebp - 0x7c], edi
je 0x40373b
lea eax, [ebp + 0x198]
push eax
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x403935
jmp 0x40373b
cmp dword [ebp - 0x74], edi
jmp 0x403a31
cmp dword [ebp - 0x74], edi
jmp 0x403940
call fcn.004040c0
test edi, edi
mov esi, eax
je 0x40393c
push edi
jmp 0x403a22
call fcn.004040c0
cmp dword [ebp + 0x3ac], edi
mov esi, eax
je 0x40393c
push dword [ebp + 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40393c
cmp dword [ebp - 0x74], 0
je 0x403a3c
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40394d
call fcn.004040c0
jmp 0x40394d