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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x419010]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 0xc]
and dword [esp + 4], 0
push ebx
push esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, edi
mov dword [esp + 0x14], ecx
call fcn.0040a63f
mov esi, eax
test esi, esi
jl 0x40ab8f
cmp byte [edi], 0x7d
je 0x40ab8d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x404d3c
push edi
mov dword [esp + 0x20], 1
call esi
mov ebx, eax
neg ebx
push 0x404d50
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40a7b6
test ebx, ebx
je 0x40a880
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.0040a63f
mov esi, eax
test esi, esi
jl 0x40ab7c
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40a882
push 0x5c
mov eax, edi
call fcn.0040a485
test eax, eax
jne 0x40ac3d
push edi
call fcn.0040b130
test eax, eax
je 0x40a803
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.0040b15c
cmp ebx, esi
je 0x40a882
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.0040a63f
mov esi, eax
test esi, esi
jl 0x40ab7c
mov ecx, dword [esp + 0x14]
call fcn.0040b0cc
mov esi, eax
test esi, esi
jl 0x40ab7c
cmp byte [edi], 0x7b
jne 0x40a872
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40a872
mov ecx, dword [esp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x18]
push edi
call fcn.0040a734
mov esi, eax
test esi, esi
jl 0x40ab7c
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.0040a63f
mov esi, eax
test esi, esi
jl 0x40ab7c
cmp byte [edi], 0x7d
jne 0x40a785
jmp 0x40ab7c
xor esi, esi
push 0x404d44
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40a8ad
and dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.0040a63f
mov esi, eax
test esi, esi
jl 0x40ab7c
xor esi, esi
push 0x404d5c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40a99d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x130]
call fcn.0040a63f
mov esi, eax
test esi, esi
jl 0x40ab7c
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.0040a63f
mov esi, eax
test esi, esi
jl 0x40ab7c
cmp byte [edi], 0x3d
jne 0x40ac57
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40a931
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x134]
push eax
lea edx, [esp + 0x20]
call fcn.0040ac83
mov esi, eax
cmp esi, ebx
jge 0x40a82f
cmp dword [esp + 0x10], ebx
jmp 0x40ab81
cmp dword [ebp + 0x14], ebx
jne 0x40a98b
cmp dword [esp + 0x18], ebx
je 0x40a98b
lea eax, [esp + 0x18]
push eax
push 0x20006
push ebx
push ebx
push dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40ab75
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x130]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40a97e
cmp eax, 2
jne 0x40ac5e
test ebx, ebx
je 0x40a989
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [esp + 0x14]
call fcn.0040b0cc
mov esi, eax
cmp esi, ebx
jmp 0x40a86c
push 0x5c
mov eax, edi
call fcn.0040a485
test eax, eax
jne 0x40ac3d
cmp dword [ebp + 0x10], esi
je 0x40aa7a
lea eax, [esp + 0x18]
push eax
push 0x2001f
push esi
push edi
push dword [esp + 0x30]
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40a9f5
xor eax, eax
cmp dword [esp + 0x10], esi
je 0x40a9e7
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
je 0x40aa47
xor esi, esi
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push edi
push dword [esp + 0x30]
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40aa31
xor eax, eax
cmp dword [esp + 0x10], esi
je 0x40aa25
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
je 0x40aa47
push edi
push dword [esp + 0x24]
lea esi, [esp + 0x18]
call fcn.00408f69
test eax, eax
jne 0x40ab75
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.0040a63f
mov esi, eax
test esi, esi
jl 0x40ab7c
cmp byte [edi], 0x3d
jne 0x40a82f
mov ecx, dword [esp + 0x14]
push edi
push 0
lea edx, [esp + 0x18]
call fcn.0040ac83
jmp 0x40a825
cmp dword [ebp + 0x14], esi
jne 0x40aabd
lea eax, [esp + 0x1c]
push eax
push 0x20019
push esi
push edi
push dword [esp + 0x30]
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40aab7
xor eax, eax
cmp dword [esp + 0x10], esi
je 0x40aaaf
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jmp 0x40aac5
mov dword [esp + 0x1c], 2
cmp dword [esp + 0x1c], esi
je 0x40aad2
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.00409271
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.0040a63f
mov esi, eax
test esi, esi
jl 0x40ab7c
mov ecx, dword [esp + 0x14]
call fcn.0040b0cc
mov esi, eax
test esi, esi
jl 0x40ab7c
cmp byte [edi], 0x7b
jne 0x40ab4f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40ab4f
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push edi
call fcn.0040a734
mov esi, eax
test esi, esi
jge 0x40ab3e
cmp dword [ebp + 0x14], 0
je 0x40ab7c
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.0040a63f
mov esi, eax
test esi, esi
jl 0x40ab7c
cmp dword [esp + 0x1c], 2
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x14], eax
je 0x40a872
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
je 0x40aba6
cmp eax, ebx
jne 0x40a872
mov eax, dword [esp + 0x1c]
call fcn.0040b2e9
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x40ab8d
push dword [esp + 0x10]
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.00413c2a
mov esp, ebp
pop ebp
ret 0x10
cmp eax, ebx
je 0x40abe7
push dword [esp + 0x10]
call fcn.0040b2b4
test eax, eax
je 0x40abe7
lea eax, [esp + 0x28]
push eax
call fcn.0040b130
test eax, eax
je 0x40a872
cmp dword [esp + 0x18], 0
je 0x40a872
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0040b15c
jmp 0x40a872
push dword [esp + 0x10]
call fcn.0040b2b4
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x1c], eax
je 0x40ac0c
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x40ac79
cmp dword [esp + 0x18], ebx
je 0x40a872
cmp dword [esp + 0x1c], 0
jne 0x40a872
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40ab75
jmp 0x40a872
cmp dword [esp + 0x10], esi
je 0x40ac4d
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40ab8f
cmp dword [esp + 0x10], 0
jmp 0x40ac41
call fcn.0040b2e9
test ebx, ebx
mov esi, eax
je 0x40ab7c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ab7c
call fcn.0040b2e9
jmp 0x40ab8f