Function at 0x40e0ac
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x24c
mov eax, 0x4100f5
call fcn.0040f815
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x230], edi
push dword [ebx]
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x40e0e7
mov eax, 0x80004005
jmp 0x40e2de
mov ecx, dword [esi]
call fcn.0040619c
mov eax, dword [eax]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x40e2dc
lea eax, [ebp - 0x234]
push eax
call fcn.004092f1
mov esi, dword [eax]
xor eax, eax
cmp dword [esi + 0x24], eax
je 0x40e2cf
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
push 0x20019
push dword [esi]
lea ecx, [ebp - 0x24c]
push dword [edi]
call fcn.0040654b
mov edi, dword [ebp - 0x24c]
test eax, eax
jne 0x40e2b3
lea eax, [ebp - 0x224]
push eax
push ecx
push 0x2001f
push 1
push ecx
push dword [esi]
lea ecx, [ebp - 0x240]
push dword [ebx]
call fcn.004063da
mov ebx, dword [ebp - 0x240]
test eax, eax
jne 0x40e29b
xor eax, eax
mov dword [ebp - 0x21c], eax
and dword [ebp - 0x220], 0
xor esi, esi
mov dword [ebp - 0x224], 0x104
mov dword [ebp - 0x250], esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
push ecx
push esi
lea ecx, [ebp - 0x228]
push ecx
push esi
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40e1e3
cmp eax, 0xea
jne 0x40e237
push dword [ebp - 0x220]
and dword [ebp - 0x254], 0
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x40e2e6
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0x104
push eax
push esi
lea eax, [ebp - 0x228]
push eax
push 0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40e25f
push dword [ebp - 0x220]
push esi
push dword [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x21c]
jmp 0x40e271
cmp eax, 0x103
je 0x40e28f
mov eax, dword [ebp - 0x21c]
cmp eax, 0x64
ja 0x40e28f
inc eax
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x21c], eax
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x21c]
pop ecx
jmp 0x40e195
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test ebx, ebx
je 0x40e2ad
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x240], 0
mov ebx, dword [ebp - 0x22c]
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40e2c9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x24c], 0
mov edi, dword [ebp - 0x230]
cmp dword [ebp - 0x234], 0
jne 0x40e0fe
xor eax, eax
call fcn.0040f7b2
ret 8
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test ebx, ebx
je 0x40e2fe
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40e309
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x8007000e
jmp 0x40e2de