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

Disassembly:
sub esp, 0x430
mov eax, dword [0x42c708]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x438]
mov edx, dword [esp + 0x440]
push esi
push edi
mov edi, dword [esp + 0x43c]
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], edx
call fcn.00409770
mov esi, eax
test esi, esi
jl 0x40b48a
cmp word [edi], 0x7d
push ebx
push ebp
je 0x40b486
jmp 0x40aea0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x42600c
push edi
mov dword [esp + 0x18], 1
call ebp
mov ebx, eax
neg ebx
push 0x426030
sbb ebx, ebx
push edi
add ebx, 1
call ebp
test eax, eax
je 0x40aed3
test ebx, ebx
je 0x40afd2
mov ecx, dword [esp + 0x18]
push edi
call fcn.00409770
mov esi, eax
test esi, esi
jl 0x40b477
xor esi, esi
cmp dword [esp + 0x44c], esi
je 0x40afd4
movzx ecx, word [edi]
cmp cx, si
mov dword [esp + 0x1c], esi
mov eax, edi
je 0x40af26
movzx ecx, cx
cmp cx, 0x5c
je 0x40af1e
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, si
jne 0x40af07
jmp 0x40af26
cmp eax, esi
jne 0x40b41c
mov ecx, dword [esp + 0x18]
push edi
call fcn.004098d0
test eax, eax
je 0x40af4a
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.00409ab0
mov dword [esp + 0x1c], esi
cmp ebx, esi
je 0x40afd4
mov ebx, dword [esp + 0x18]
push edi
mov ecx, ebx
call fcn.00409770
mov esi, eax
test esi, esi
jl 0x40b435
push edi
mov ecx, ebx
call fcn.00409960
mov esi, eax
test esi, esi
jl 0x40b435
cmp word [edi], 0x7b
jne 0x40afc3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40afc3
mov ecx, dword [esp + 0x44c]
mov edx, dword [esp + 0x14]
push 0
push ecx
mov ecx, dword [esp + 0x20]
push edx
push edi
call fcn.0040ae40
mov esi, eax
test esi, esi
jl 0x40b477
mov ecx, dword [esp + 0x18]
push edi
call fcn.00409770
mov esi, eax
test esi, esi
jl 0x40b477
cmp word [edi], 0x7d
jne 0x40aea0
jmp 0x40b477
xor esi, esi
push 0x42601c
push edi
call ebp
test eax, eax
jne 0x40affa
mov ecx, dword [esp + 0x18]
push edi
mov dword [esp + 0x14], eax
call fcn.00409770
mov esi, eax
test esi, esi
jl 0x40b477
xor esi, esi
push 0x426048
push edi
call ebp
test eax, eax
jne 0x40b0ff
lea ecx, [esp + 0x234]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00409770
mov esi, eax
test esi, esi
jl 0x40b477
mov ecx, dword [esp + 0x18]
push edi
call fcn.00409770
mov esi, eax
test esi, esi
jl 0x40b477
cmp word [edi], 0x3d
jne 0x40b425
xor ebx, ebx
cmp dword [esp + 0x44c], ebx
je 0x40b092
mov edx, dword [esp + 0x20]
push edi
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
call fcn.0040ab40
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], ebx
jge 0x40af7a
lea ecx, [esp + 0x10]
call fcn.00409a90
lea ecx, [esp + 0x14]
call fcn.00409a90
jmp 0x40b486
cmp dword [esp + 0x450], ebx
jne 0x40b0ec
cmp dword [esp + 0x10], ebx
je 0x40b0ec
mov edx, dword [esp + 0x20]
push 0x20006
push ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.004093a0
cmp eax, ebx
jne 0x40b463
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x234]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40b0e1
cmp eax, 2
jne 0x40b463
cmp esi, ebx
je 0x40b0ec
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push edi
call fcn.00409960
mov esi, eax
cmp esi, ebx
jmp 0x40afbd
movzx ecx, word [edi]
cmp cx, si
mov eax, edi
je 0x40b12f
movzx ecx, cx
lea esp, [esp]
cmp cx, 0x5c
je 0x40b127
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, si
jne 0x40b110
jmp 0x40b12f
cmp eax, esi
jne 0x40b425
cmp dword [esp + 0x44c], esi
je 0x40b24e
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push esi
push edi
push edx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40b17e
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x40b16c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x40b210
xor esi, esi
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push 0x20019
push esi
push edi
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40b1ba
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x40b1ae
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x40b210
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push ecx
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40b43b
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40b1fe
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov edx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x14], edx
jne 0x40b43b
mov ecx, dword [esp + 0x18]
push edi
call fcn.00409770
mov esi, eax
test esi, esi
jl 0x40b477
cmp word [edi], 0x3d
jne 0x40af7a
mov ecx, dword [esp + 0x18]
push edi
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0040ab40
mov esi, eax
test esi, esi
jl 0x40b477
jmp 0x40af7a
cmp dword [esp + 0x450], esi
jne 0x40b364
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push esi
push edi
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40b293
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x40b28b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
cmp eax, esi
mov ebx, eax
je 0x40b2a4
mov dword [esp + 0x450], 1
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x34]
push 0x104
push edx
call fcn.0041399c
push eax
call fcn.00401030
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push edi
call fcn.00409770
mov esi, eax
test esi, esi
jl 0x40b477
mov ecx, dword [esp + 0x18]
push edi
call fcn.00409960
mov esi, eax
test esi, esi
jl 0x40b477
cmp word [edi], 0x7b
jne 0x40b334
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40b334
mov ebp, dword [esp + 0x450]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ebp
push 0
push eax
push edi
call fcn.0040ae40
mov esi, eax
test esi, esi
jge 0x40b320
test ebp, ebp
je 0x40b477
mov ecx, dword [esp + 0x18]
push edi
call fcn.00409770
mov esi, eax
test esi, esi
jl 0x40b477
cmp ebx, 2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x450], eax
je 0x40afc3
test ebx, ebx
je 0x40b36e
test eax, eax
jne 0x40afc3
push ebx
call fcn.00409290
add esp, 4
mov esi, eax
jmp 0x40b477
mov ebx, 2
jmp 0x40b299
test eax, eax
je 0x40b3b8
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.00409910
test eax, eax
je 0x40b3b8
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
call fcn.004098d0
test eax, eax
je 0x40afc3
cmp dword [esp + 0x10], 0
je 0x40afc3
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00409ab0
jmp 0x40afc3
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ebx
call fcn.00409910
test ebx, ebx
mov ebp, eax
je 0x40b3e3
mov ecx, ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], 0
jne 0x40b44f
cmp dword [esp + 0x10], 0
je 0x40afc3
test ebp, ebp
jne 0x40afc3
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [esp + 0x10], ebp
jne 0x40b463
lea ecx, [esp + 0x10]
call fcn.00409a90
jmp 0x40afc3
lea ecx, [esp + 0x1c]
call fcn.00409a90
lea ecx, [esp + 0x14]
call fcn.00409a90
mov eax, 0x80020009
jmp 0x40b488
lea ecx, [esp + 0x1c]
jmp 0x40b472
lea ecx, [esp + 0x14]
call fcn.00409a90
push esi
call fcn.00409290
add esp, 4
jmp 0x40b488
lea ecx, [esp + 0x14]
call fcn.00409a90
push ebx
call fcn.00409290
add esp, 4
jmp 0x40b488
push eax
call fcn.00409290
add esp, 4
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.00409a90
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b486
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x434]
pop edi
pop esi
xor ecx, esp
call fcn.004143e5
add esp, 0x430
ret 0x10