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

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x40a140]
and dword [ebp - 0x70], 0
push esi
push edi
mov edi, dword [ebp + 0x1a8]
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1b4]
push edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x7c], eax
call fcn.004027bf
mov esi, eax
test esi, esi
jge 0x402c48
lea ecx, [ebp - 0x70]
call fcn.004031f9
mov eax, esi
jmp 0x40314b
push ebx
jmp 0x402d89
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [ebp - 0x78], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x402c7e
test ebx, ebx
je 0x402dac
mov ecx, dword [ebp - 0x74]
push edi
call fcn.004027bf
mov esi, eax
test esi, esi
jl 0x403139
cmp dword [ebp + 0x1b0], 0
je 0x402dac
and dword [ebp + 0x1a8], 0
mov cl, byte [edi]
mov eax, edi
jmp 0x402cb9
cmp cl, 0x5c
je 0x402cbf
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x402cab
jmp 0x402cc7
test eax, eax
jne 0x403162
mov esi, 0x408228
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x402d03
add esi, 4
cmp esi, str.TypeLib
jl 0x402ccc
mov eax, dword [ebp + 0x1ac]
push edi
lea ecx, [ebp + 0x1a8]
mov dword [ebp + 0x1a8], eax
call fcn.004032da
and dword [ebp + 0x1a8], 0
test ebx, ebx
je 0x402d97
mov ecx, dword [ebp - 0x74]
push edi
call fcn.004027bf
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40319c
mov ecx, dword [ebp - 0x74]
push edi
call fcn.0040327a
mov esi, eax
cmp esi, ebx
jl 0x40319c
cmp dword [ebp + 0x1a8], ebx
je 0x402d47
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0x7b
jne 0x402d89
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x402d89
mov ecx, dword [ebp - 0x74]
push 0
push dword [ebp + 0x1b0]
push dword [ebp - 0x70]
push edi
call fcn.00402bfc
mov esi, eax
test esi, esi
jl 0x403139
mov ecx, dword [ebp - 0x74]
push edi
call fcn.004027bf
mov esi, eax
test esi, esi
jl 0x403139
cmp byte [edi], 0x7d
jne 0x402c4e
jmp 0x403139
cmp dword [ebp + 0x1a8], 0
je 0x402dac
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402dd2
mov ecx, dword [ebp - 0x74]
and dword [ebp - 0x78], eax
push edi
call fcn.004027bf
mov esi, eax
test esi, esi
jl 0x403139
push 0x408318
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402ecc
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.004027bf
mov esi, eax
test esi, esi
jl 0x403139
mov ecx, dword [ebp - 0x74]
push edi
call fcn.004027bf
mov esi, eax
test esi, esi
jl 0x403139
cmp byte [edi], 0x3d
jne 0x4031b2
xor ebx, ebx
cmp dword [ebp + 0x1b0], ebx
je 0x402e57
mov eax, dword [ebp + 0x1ac]
mov ecx, dword [ebp - 0x74]
mov dword [ebp + 0x1a8], eax
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1a8]
push eax
call fcn.00403385
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x1a8], ebx
jl 0x4031c1
jmp 0x402d47
cmp dword [ebp + 0x1b4], ebx
jne 0x402eba
cmp dword [ebp - 0x78], ebx
je 0x402eba
push 0x20006
push ebx
push dword [ebp + 0x1ac]
lea ecx, [ebp + 0x1a8]
mov dword [ebp + 0x1a8], ebx
call fcn.00403210
cmp eax, ebx
jne 0x403193
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x402ea6
cmp eax, 2
jne 0x403193
cmp dword [ebp + 0x1a8], ebx
je 0x402eba
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x74]
push edi
call fcn.0040327a
mov esi, eax
cmp esi, ebx
jmp 0x402d83
mov cl, byte [edi]
mov eax, edi
jmp 0x402ee0
cmp cl, 0x5c
je 0x402ee6
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x402ed2
jmp 0x402eee
test eax, eax
jne 0x4031b2
xor esi, esi
cmp dword [ebp + 0x1b0], esi
je 0x402fac
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0x1ac]
lea ecx, [ebp - 0x70]
call fcn.00403210
test eax, eax
je 0x402f72
push 0x20019
push edi
push dword [ebp + 0x1ac]
lea ecx, [ebp - 0x70]
call fcn.00403210
test eax, eax
je 0x402f72
lea eax, [ebp - 0x80]
push eax
xor ebx, ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x1ac]
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4031b8
xor eax, eax
cmp dword [ebp - 0x70], ebx
je 0x402f64
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x70], ecx
jne 0x4031b8
mov ecx, dword [ebp - 0x74]
push edi
call fcn.004027bf
mov esi, eax
test esi, esi
jl 0x403139
cmp byte [edi], 0x3d
jne 0x402d47
mov ecx, dword [ebp - 0x74]
push edi
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.00403385
mov esi, eax
test esi, esi
jl 0x403139
jmp 0x402d47
cmp dword [ebp + 0x1b4], esi
jne 0x402fd0
push 0x20019
push edi
push dword [ebp + 0x1ac]
lea ecx, [ebp - 0x70]
call fcn.00403210
mov dword [ebp + 0x1a8], eax
jmp 0x402fda
mov dword [ebp + 0x1a8], 2
cmp dword [ebp + 0x1a8], esi
je 0x402fec
mov dword [ebp + 0x1b4], 1
push 0x104
push edi
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [ebp - 0x74]
push edi
mov ecx, ebx
call fcn.004027bf
mov esi, eax
test esi, esi
jl 0x403139
push edi
mov ecx, ebx
call fcn.0040327a
mov esi, eax
test esi, esi
jl 0x403139
cmp byte [edi], 0x7b
jne 0x403063
push dword [ebp + 0x1b4]
mov ecx, ebx
push 0
push dword [ebp - 0x70]
push edi
call fcn.00402bfc
mov esi, eax
test esi, esi
jge 0x403051
cmp dword [ebp + 0x1b4], 0
je 0x403139
push edi
mov ecx, ebx
call fcn.004027bf
mov esi, eax
test esi, esi
jl 0x403139
cmp dword [ebp + 0x1a8], 2
mov eax, dword [ebp - 0x7c]
mov dword [ebp + 0x1b4], eax
je 0x402d89
xor ebx, ebx
cmp dword [ebp + 0x1a8], ebx
je 0x403096
cmp eax, ebx
jne 0x402d89
push dword [ebp + 0x1a8]
jmp 0x403131
cmp dword [ebp - 0x7c], ebx
je 0x4030ef
push dword [ebp - 0x70]
mov ecx, dword [ebp - 0x74]
call fcn.00403245
test eax, eax
je 0x4030ef
mov ebx, 0x408228
push dword [ebx]
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x402d89
add ebx, 4
cmp ebx, str.TypeLib
jl 0x4030af
cmp dword [ebp - 0x78], 0
je 0x402d89
lea eax, [ebp + 0x98]
push eax
lea ecx, [ebp - 0x70]
call fcn.004032da
jmp 0x402d89
cmp dword [ebp - 0x70], ebx
je 0x40310b
push dword [ebp - 0x70]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
and dword [ebp - 0x70], 0
test eax, eax
jne 0x4031c9
cmp dword [ebp - 0x78], 0
je 0x402d89
lea eax, [ebp + 0x98]
push eax
push dword [ebp + 0x1ac]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x402d89
push eax
call fcn.004031e6
pop ecx
mov esi, eax
cmp dword [ebp - 0x70], 0
je 0x403148
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
call fcn.00406730
add ebp, 0x1a0
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 0x1a8], esi
je 0x40317e
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x1a8], esi
cmp dword [ebp - 0x70], esi
je 0x40318c
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40314a
push eax
call fcn.004031e6
pop ecx
mov esi, eax
cmp dword [ebp + 0x1a8], ebx
je 0x403139
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403139
cmp dword [ebp - 0x70], 0
jmp 0x403181
push eax
call fcn.004031e6
pop ecx
mov esi, eax
cmp dword [ebp - 0x70], ebx
jmp 0x40313d
push eax
call fcn.004031e6
cmp dword [ebp - 0x70], 0
pop ecx
mov esi, eax
je 0x403148
push dword [ebp - 0x70]
call ebx
jmp 0x403148