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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ef588
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5550ec]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x5550ec]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [esp + 0x14], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
and dword [esp + 0x450], 0
mov dword [esp + 0x28], eax
mov eax, edi
call fcn.00435033
mov esi, eax
test esi, esi
jl 0x435564
cmp word [edi], 0x7d
je 0x435562
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x24], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4351f2
test ebx, ebx
je 0x4352be
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00435033
mov esi, eax
test esi, esi
jl 0x435551
cmp dword [ebp + 0x10], 0
je 0x4352be
push 0x5c
mov eax, edi
call fcn.00434ebf
test eax, eax
pop ecx
jne 0x435625
push edi
call fcn.00435b16
test eax, eax
je 0x43523f
mov eax, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
call fcn.00435b42
test ebx, ebx
je 0x4352be
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00435033
mov esi, eax
test esi, esi
jl 0x435551
mov ecx, dword [esp + 0x18]
call fcn.00435ab1
mov esi, eax
test esi, esi
jl 0x435551
cmp word [edi], 0x7b
jne 0x4352af
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4352af
mov ecx, dword [esp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x1c]
push edi
call fcn.00435144
mov esi, eax
test esi, esi
jl 0x435551
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00435033
mov esi, eax
test esi, esi
jl 0x435551
cmp word [edi], 0x7d
jne 0x4351c1
jmp 0x435551
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4352e7
and dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00435033
mov esi, eax
test esi, esi
jl 0x435551
push 0x512c08
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4353e0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x234]
call fcn.00435033
mov esi, eax
test esi, esi
jl 0x435551
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00435033
mov esi, eax
test esi, esi
jl 0x435551
cmp word [edi], 0x3d
jne 0x435625
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x435377
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x450], 1
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x238]
push eax
lea edx, [esp + 0x24]
call fcn.00435685
mov esi, eax
cmp esi, ebx
jl 0x435640
mov byte [esp + 0x450], bl
jmp 0x43526b
cmp dword [ebp + 0x14], ebx
jne 0x4353ce
cmp dword [esp + 0x1c], ebx
je 0x4353ce
push 0x20006
push ebx
push dword [esp + 0x2c]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.00409d6a
cmp eax, ebx
jne 0x435664
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x234]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4353c1
cmp eax, 2
jne 0x435649
test ebx, ebx
je 0x4353cc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [esp + 0x18]
call fcn.00435ab1
mov esi, eax
cmp esi, ebx
jmp 0x4352a9
push 0x5c
mov eax, edi
call fcn.00434ebf
test eax, eax
pop ecx
jne 0x435625
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x435473
mov esi, 0x2001f
push esi
push edi
push dword [esp + 0x2c]
lea eax, [esp + 0x20]
call fcn.00409d6a
test eax, eax
je 0x43543f
push 0x20019
push edi
push dword [esp + 0x2c]
lea eax, [esp + 0x20]
call fcn.00409d6a
test eax, eax
je 0x43543f
push esi
push edi
push dword [esp + 0x2c]
lea eax, [esp + 0x20]
call fcn.00407234
test eax, eax
jne 0x43554a
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00435033
mov esi, eax
test esi, esi
jl 0x435551
cmp word [edi], 0x3d
jne 0x43526b
mov ecx, dword [esp + 0x18]
push edi
push 0
lea edx, [esp + 0x1c]
call fcn.00435685
jmp 0x435261
cmp dword [ebp + 0x14], esi
jne 0x435491
push 0x20019
push edi
push dword [esp + 0x2c]
lea eax, [esp + 0x20]
call fcn.00409d6a
mov dword [esp + 0x20], eax
jmp 0x435499
mov dword [esp + 0x20], 2
cmp dword [esp + 0x20], esi
je 0x4354a6
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
push eax
call fcn.004027d4
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, edi
call fcn.00435033
mov esi, eax
test esi, esi
jl 0x435551
mov ecx, dword [esp + 0x18]
call fcn.00435ab1
mov esi, eax
test esi, esi
jl 0x435551
cmp word [edi], 0x7b
jne 0x435524
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x435524
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0x1c]
push edi
call fcn.00435144
mov esi, eax
test esi, esi
jge 0x435513
cmp dword [ebp + 0x14], 0
je 0x435551
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00435033
mov esi, eax
test esi, esi
jl 0x435551
cmp dword [esp + 0x20], 2
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x14], eax
je 0x4352af
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x43558a
cmp eax, ebx
jne 0x4352af
mov eax, dword [esp + 0x20]
call fcn.00435c92
mov esi, eax
cmp dword [esp + 0x14], 0
je 0x435562
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.004d6e66
mov esp, ebp
pop ebp
ret 0x10
cmp eax, ebx
je 0x4355cb
push dword [esp + 0x14]
call fcn.00435c5d
test eax, eax
je 0x4355cb
lea eax, [esp + 0x2c]
push eax
call fcn.00435b16
test eax, eax
je 0x4352af
cmp dword [esp + 0x1c], 0
je 0x4352af
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00435b42
jmp 0x4352af
push dword [esp + 0x14]
call fcn.00435c5d
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
je 0x4355f4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jne 0x43567b
cmp dword [esp + 0x1c], ebx
je 0x4352af
cmp dword [esp + 0x20], 0
jne 0x4352af
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x43554a
jmp 0x4352af
cmp dword [esp + 0x14], 0
je 0x435636
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x435564
cmp dword [esp + 0x14], ebx
jmp 0x435556
call fcn.00435c92
test ebx, ebx
mov esi, eax
je 0x435551
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x435551
call fcn.00435c92
cmp dword [esp + 0x1c], ebx
mov esi, eax
je 0x435551
push dword [esp + 0x1c]
jmp 0x435659
call fcn.00435c92
jmp 0x435564