Function at 0x40dcf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6310c1
mov eax, dword fs:[0]
push eax
sub esp, 0xd5c
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0xd38], 0x6a2d54
push 0xd4
lea eax, [ebp - 0xd34]
mov dword [ebp - 0xc24], ebx
push ebx
push eax
call fcn.005feb40
mov eax, 0x1e451a06
add esp, 0xc
mov dword [ebp - 0xc60], eax
xor edx, edx
mov ecx, edx
and ecx, 3
sar eax, cl
xor ax, word [edx + str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_]
mov word [ebp + edx - 0xd34], ax
add edx, 2
cmp edx, 0x6a
jae 0x40dd7a
mov eax, dword [ebp - 0xc60]
jmp 0x40dd54
lea eax, [ebp - 0xc3c]
push eax
mov eax, dword [ebp - 0xd38]
lea ecx, [ebp - 0xd38]
call dword [eax]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40dd9e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc24]
call fcn.004178d0
lea ecx, [ebp - 0xc3c]
mov byte [ebp - 4], 2
call fcn.00402f20
push str.GSoInput
lea ecx, [ebp - 0xd64]
call fcn.00413540
lea ecx, [ebp - 0xc58]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 8
jb 0x40dde4
mov edx, dword [edx]
test edx, edx
jne 0x40ddec
xor ecx, ecx
jmp 0x40de00
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ddf1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc24]
call fcn.00417970
lea ecx, [ebp - 0xc58]
mov byte [ebp - 4], 2
call fcn.00402f20
mov eax, dword [edi + 0x61c]
lea esi, [edi + 0x61c]
cmp dword [eax - 0xc], 0
jne 0x40dece
push 0x800
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.005feb40
add esp, 0xc
lea eax, [ebp - 0xc20]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005feb40
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005feb40
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.0060af93
lea ecx, [ebp - 0x218]
add esp, 0x2c
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40deb0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00401e40
push 0x2001f
push dword [ebp - 0xc24]
lea ecx, [ebp - 0xc30]
mov dword [ebp - 0xc30], 0
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xc2c], 0
mov dword [ebp - 0xc28], 0
call fcn.00416a30
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40df46
sub esp, 8
lea ecx, [ebp - 0xc30]
push 0x2001f
sub esp, 8
push dword [ebp - 0xc24]
push reloc.WS2_32.dll_bind
call fcn.00416f80
test eax, eax
je 0x40df46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0xc30]
mov ebx, eax
jmp 0x40dfa1
mov edx, dword [esi]
mov esi, dword [ebp - 0xc30]
test edx, edx
je 0x40df90
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xc40], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df60
sub ecx, dword [ebp - 0xc40]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.InstallPackageName
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40df98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x40dfa8
push esi
call edi
xor esi, esi
test esi, esi
je 0x40dfa8
push esi
call edi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0xc24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dfcd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret 8