Function at 0x40e111
Capabilities:
Set registry value

Disassembly:
push 0x88
mov eax, 0x473dcc
call fcn.0043ee6a
mov esi, ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00463abe
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x485218
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], edi
call fcn.00408d63
push dword [ebp + 8]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.0041ebf4
add esp, 0xc
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.004035af
lea ecx, [ebp - 0x74]
call fcn.004035af
cmp dword [esi + 8], edi
jne 0x40e1bd
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x64]
call fcn.00408d63
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 4
call fcn.0041ebf4
add esp, 0xc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.RSException.0
call fcn.00403a4f
push 0x493cfc
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCR100.dll__CxxThrowException
push 1
mov ecx, esi
call fcn.00463abe
test eax, eax
je 0x40e305
cmp dword [esi + 0xc], edi
je 0x40e2db
lea ecx, [ebp - 0x44]
call fcn.00408157
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.00408157
mov eax, dword [ebx + 4]
lea edi, [eax + eax + 2]
push edi
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x40e240
push eax
push 0xffffffffffffffff
push str.out_of_memory_while_setting_key
lea ecx, [ebp - 0x64]
call fcn.00408d63
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.0041ebf4
add esp, 0xc
mov byte [ebp - 4], 7
jmp 0x40e19f
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40e26e
mov ecx, ebx
call fcn.00408157
push edi
push eax
push edi
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
push eax
call dword [ecx + 0x7c]
push dword [ebp + 0xc]
test eax, eax
je 0x40e2cc
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x64]
call fcn.00408d63
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 8
call fcn.0041ebf4
add esp, 0xc
mov byte [ebp - 4], 9
jmp 0x40e19f
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x34]
call fcn.004035af
lea ecx, [ebp - 0x3c]
call fcn.004035af
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x48], 0
je 0x40e2fd
mov ecx, dword [ebp - 0x4c]
call fcn.0040acc8
call fcn.0043ef42
ret 8
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00408157
mov edi, dword [ebx + 4]
mov ecx, ebx
call fcn.00408157
lea ecx, [ebp - 0x44]
mov ebx, eax
call fcn.00408157
lea ecx, [edi + edi + 2]
push ecx
push ebx
push 1
push 0
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e2db
push 0
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x64]
call fcn.00408d63
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xa
call fcn.0041ebf4
add esp, 0xc
mov byte [ebp - 4], 0xb
jmp 0x40e19f