Function at 0x5d2ea0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4ac6
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5e12a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x18]
call fcn.00406ca0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406ca0
mov byte [ebp - 4], 1
push 0xfa
lea ecx, [ebp - 0x14]
call fcn.00406ce0
mov eax, dword [ebp - 0x14]
push eax
push 0x5dabb0
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040c040
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x18]
call fcn.00406bd0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x5d2fbd
push str.command
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5d2fb1
cmp dword [ebp + 0xc], 0
je 0x5d2f7d
push 0
push 0x10
push 0xe3
push 0xda
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043e460
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x5d2f7d
push 1
push 0x3f3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406cc0
mov eax, dword [ebp - 0x20]
jmp 0x5d3157
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5d3019
cmp dword [ebp + 0xc], 0
je 0x5d2fef
push 0
push 0x10
push 0xdb
mov edx, dword [ebp + 8]
push edx
call fcn.0043e5d0
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x5d2fef
push 1
push 0x3f3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406cc0
mov eax, dword [ebp - 0x24]
jmp 0x5d3157
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push str._shell
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x5d30d4
lea ecx, [ebp - 0x14]
call fcn.00406bd0
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5d30c8
cmp dword [ebp + 0xc], 0
je 0x5d3094
push 0
push 0x10
push 0xe3
push 0xda
mov eax, dword [ebp + 8]
push eax
call fcn.0043e460
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x5d3094
push 1
push 0x3f3
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406cc0
mov eax, dword [ebp - 0x28]
jmp 0x5d3157
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5d3132
cmp dword [ebp + 0xc], 0
je 0x5d310b
push 0
push 0x10
push 0xe3
push 0xdb
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043e460
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x5d310b
push 1
push 0x3f3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406cc0
mov eax, dword [ebp - 0x2c]
jmp 0x5d3157
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406cc0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret