Function at 0x40e100
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43f5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x30], 0
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e14b
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x30], 1
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e17a
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [ebp + 0x16c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.00407040
mov eax, dword [ebp + 0x68]
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00404840
push eax
lea eax, [esp + 0x2c]
push 0x442694
mov bl, 3
push eax
mov byte [esp + 0x44], bl
call fcn.00406010
add esp, 0x14
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 4
call fcn.00406540
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e224
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx - 8]
mov eax, 1
sub eax, dword [ebx - 4]
or ecx, eax
jge 0x40e246
push 0
lea ecx, [esp + 0x1c]
call fcn.00407500
mov ebx, dword [esp + 0x18]
mov edx, dword [ebp + 0x168]
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e40e
mov edx, dword [esp + 0x38]
test edx, edx
je 0x40e28a
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e275
sub eax, esi
sar eax, 1
js 0x40e48e
cmp eax, dword [edx - 8]
jg 0x40e48e
mov dword [edx - 0xc], eax
mov word [edx + eax*2], 0
cmp dword [edx - 0xc], 0
lea ecx, [esp + 0x38]
je 0x40e2b2
push 0x4484d8
call fcn.00405910
jmp 0x40e2bc
push 0x4484d4
call fcn.00406a30
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
call fcn.00407040
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x14]
lea esi, [eax + 3]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40e2f7
push esi
lea ecx, [esp + 0x18]
call fcn.00407500
mov edx, dword [esp + 0x14]
cmp esi, 0xffffffff
mov eax, esi
jne 0x40e31f
test edx, edx
jne 0x40e306
xor eax, eax
jmp 0x40e327
mov eax, edx
lea edi, [eax + 2]
jmp 0x40e310
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e310
sub eax, edi
sar eax, 1
test eax, eax
jl 0x40e48e
cmp eax, dword [edx - 8]
jg 0x40e48e
mov dword [edx - 0xc], eax
mov word [edx + eax*2], 0
push 0
lea edx, [esi - 3]
push edx
lea ecx, [esp + 0x1c]
call fcn.004061a0
push 0
lea eax, [esi - 2]
push eax
lea ecx, [esp + 0x1c]
call fcn.004061a0
push 0
add esi, 0xffffffff
push esi
lea ecx, [esp + 0x1c]
call fcn.004061a0
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40e372
xor eax, eax
jmp 0x40e38c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e377
sub eax, edx
sar eax, 1
js 0x40e48e
cmp eax, dword [esi - 8]
jg 0x40e48e
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
mov ecx, dword [esi - 8]
mov edi, dword [esi - 0xc]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40e3bf
push 0
lea ecx, [esp + 0x18]
call fcn.00407500
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea ecx, [edi + edi + 2]
push ecx
push esi
push 7
push 0
push 0x445a30
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 0x68]
test eax, eax
lea eax, [ebp + 0x1c]
je 0x40e3f5
push str.Set_MSI_Clients
push 0
push eax
call edx
add esp, 0xc
jmp 0x40e403
push esi
push str.Set_MSI_Clients:__s
push 0xa
push eax
call edx
add esp, 0x10
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e42f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e450
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e478
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0x80070057
call fcn.00406210
int3