Function at 0x40e65e
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x43427e
call fcn.0041c8ac
sub esp, 0x138
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 8], ebx
je 0x40e8a2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40e8a2
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push 0xf003f
push 0x437c60
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040154e
test eax, eax
je 0x40e6fc
lea ecx, [ebp - 0x18]
call fcn.00401533
lea ecx, [ebp - 0x28]
call fcn.00401533
lea ecx, [ebp - 0x40]
call fcn.00401533
lea ecx, [ebp - 0x34]
call fcn.00401533
mov eax, 0x80004005
jmp 0x40e8a9
push ebx
push ebx
mov esi, 0x2001f
push esi
push ebx
push ebx
push 0x437c6c
push dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
call fcn.0040ac10
test eax, eax
jne 0x40e6d2
push ebx
push ebx
push esi
push ebx
push ebx
push 0x437c78
push dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040ac10
lea ecx, [ebp - 0x18]
test eax, eax
jne 0x40e6d5
push ebx
push ebx
push esi
push ebx
push ebx
push str.Policy
push dword [ebp - 0x28]
call fcn.0040ac10
lea ecx, [ebp - 0x18]
test eax, eax
jne 0x40e6d5
push edi
push 0xffffffffffffffff
push ebx
push 0x437c8c
push dword [ebp + 8]
call fcn.0040159d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4373e2
lea eax, [ebp - 0xc4]
mov edi, 0x80
push eax
mov dword [ebp - 0x1c], edi
call esi
push 0x4373e3
lea eax, [ebp - 0x144]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
push 0x437c9c
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d133
lea eax, [ebp - 0x1c]
push eax
push 0x437cb0
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
call fcn.0040d133
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 0x44], bl
mov dword [ebp - 0x1c], 3
call fcn.00410fe4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
pop ecx
pop ecx
lea eax, [ebp - 0xc4]
push eax
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x40e7ff
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x14]
call esi
test eax, eax
je 0x40e87f
mov edi, dword [ebp - 0x18]
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push 0x437cc0
push edi
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp + 0x10], ebx
je 0x40e83e
push 0xffffffffffffffff
push ebx
push 0x437cd0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.0040159d
jmp 0x40e846
push 0x437ce4
push edi
call esi
cmp dword [ebp + 0x14], ebx
je 0x40e860
push 0xffffffffffffffff
push ebx
push 0x437cf8
push dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0040159d
jmp 0x40e868
push 0x437d08
push edi
call esi
push 0x437d18
push edi
call esi
push 0x437d2c
push edi
call esi
push ebx
call fcn.0040e06c
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00401533
lea ecx, [ebp - 0x28]
call fcn.00401533
lea ecx, [ebp - 0x40]
call fcn.00401533
lea ecx, [ebp - 0x34]
call fcn.00401533
pop edi
jmp 0x40e8a7
call fcn.00418212
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret