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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x415010]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 0xc]
and dword [esp], 0
push ebx
push esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, edi
mov dword [esp + 0x14], ecx
call fcn.00409c15
mov esi, eax
test esi, esi
jl 0x40a191
cmp byte [edi], 0x7d
je 0x40a18f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x404188
push edi
mov dword [esp + 0x24], 1
call esi
mov ebx, eax
neg ebx
push 0x40419c
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x409d8b
test ebx, ebx
je 0x409e54
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.00409c15
mov esi, eax
test esi, esi
jl 0x40a17e
cmp dword [ebp + 0x10], 0
je 0x409e54
push 0x5c
mov eax, edi
call fcn.00409a5b
test eax, eax
jne 0x40a245
push edi
call fcn.0040a787
test eax, eax
je 0x409dd7
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.0040a7b3
test ebx, ebx
je 0x409e54
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.00409c15
mov esi, eax
test esi, esi
jl 0x40a17e
mov ecx, dword [esp + 0x14]
call fcn.0040a723
mov esi, eax
test esi, esi
jl 0x40a17e
cmp byte [edi], 0x7b
jne 0x409e46
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x409e46
mov ecx, dword [esp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x14]
push edi
call fcn.00409d0a
mov esi, eax
test esi, esi
jl 0x40a17e
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.00409c15
mov esi, eax
test esi, esi
jl 0x40a17e
cmp byte [edi], 0x7d
jne 0x409d5a
jmp 0x40a17e
push 0x404190
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409e7d
and dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.00409c15
mov esi, eax
test esi, esi
jl 0x40a17e
push 0x4041a8
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409f6d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x130]
call fcn.00409c15
mov esi, eax
test esi, esi
jl 0x40a17e
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.00409c15
mov esi, eax
test esi, esi
jl 0x40a17e
cmp byte [edi], 0x3d
jne 0x40a245
cmp dword [ebp + 0x10], ebx
je 0x409f01
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x134]
push eax
lea edx, [esp + 0x18]
call fcn.0040a2a4
mov esi, eax
cmp esi, ebx
jge 0x409e03
cmp dword [esp + 0xc], ebx
jmp 0x40a183
cmp dword [ebp + 0x14], ebx
jne 0x409f5b
cmp dword [esp + 0x1c], ebx
je 0x409f5b
lea eax, [esp + 0x10]
push eax
push 0x20006
push ebx
push ebx
push dword [esp + 0x28]
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40a177
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x130]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x409f4e
cmp eax, 2
jne 0x40a260
test ebx, ebx
je 0x409f59
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [esp + 0x14]
call fcn.0040a723
mov esi, eax
cmp esi, ebx
jmp 0x409e40
push 0x5c
mov eax, edi
call fcn.00409a5b
test eax, eax
jne 0x40a27b
cmp dword [ebp + 0x10], ebx
je 0x40a07e
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push edi
push dword [esp + 0x28]
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
jne 0x409fcb
xor eax, eax
cmp dword [esp + 0xc], ebx
je 0x409fb9
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
je 0x40a04b
jmp 0x409fcf
mov ebx, dword [esp + 0xc]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push edi
push dword [esp + 0x28]
call esi
xor esi, esi
test eax, eax
jne 0x40a004
cmp ebx, esi
je 0x409ff8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
je 0x40a04b
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push dword [esp + 0x38]
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x40a281
xor eax, eax
cmp ebx, esi
je 0x40a03b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
jne 0x40a281
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.00409c15
mov esi, eax
test esi, esi
jl 0x40a17e
cmp byte [edi], 0x3d
jne 0x409e03
mov ecx, dword [esp + 0x14]
push edi
push 0
lea edx, [esp + 0x14]
call fcn.0040a2a4
jmp 0x409df9
cmp dword [ebp + 0x14], ebx
jne 0x40a0c1
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push edi
push dword [esp + 0x28]
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40a0bb
xor eax, eax
cmp dword [esp + 0xc], ebx
je 0x40a0b3
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jmp 0x40a0c9
mov dword [esp + 0x10], 2
cmp dword [esp + 0x10], ebx
je 0x40a0d6
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x30]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_strncpy_s]
add esp, 0x10
push eax
call fcn.00408861
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.00409c15
mov esi, eax
test esi, esi
jl 0x40a17e
mov ecx, dword [esp + 0x14]
call fcn.0040a723
mov esi, eax
test esi, esi
jl 0x40a17e
cmp byte [edi], 0x7b
jne 0x40a153
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40a153
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0x14]
push edi
call fcn.00409d0a
mov esi, eax
test esi, esi
jge 0x40a142
cmp dword [ebp + 0x14], 0
je 0x40a17e
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.00409c15
mov esi, eax
test esi, esi
jl 0x40a17e
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x409e46
xor ebx, ebx
cmp eax, ebx
je 0x40a1a8
cmp dword [esp + 0x20], ebx
jne 0x409e46
call fcn.0040a940
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x40a18f
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040fdc4
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x20], ebx
je 0x40a1eb
push dword [esp + 0xc]
call fcn.0040a90b
test eax, eax
je 0x40a1eb
lea eax, [esp + 0x28]
push eax
call fcn.0040a787
test eax, eax
je 0x409e46
cmp dword [esp + 0x1c], 0
je 0x409e46
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040a7b3
jmp 0x409e46
push dword [esp + 0xc]
call fcn.0040a90b
cmp dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
je 0x40a214
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0xc], ebx
jne 0x40a29a
cmp dword [esp + 0x1c], ebx
je 0x409e46
cmp dword [esp + 0x10], 0
jne 0x409e46
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40a177
jmp 0x409e46
cmp dword [esp + 0xc], 0
je 0x40a256
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40a191
call fcn.0040a940
test ebx, ebx
mov esi, eax
je 0x40a17e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a17e
cmp dword [esp + 0xc], ebx
jmp 0x40a24a
call fcn.0040a940
cmp ebx, esi
mov edi, eax
je 0x40a293
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40a191
call fcn.0040a940
jmp 0x40a191