Function at 0x40fdc0
Capabilities:
Set registry value

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x4392d8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x444690]
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 dword [ebp - 4], 0
xor edi, edi
mov ecx, 0x47a7f8
lea esp, [esp]
sub ebx, ebx
or edi, edi
setne bl
mov edx, 0x47a870
mov eax, 0x47a7d0
mov esi, 0x47a854
add ebx, 0x80000001
or edi, edi
cmove edx, ecx
lea ecx, [ebp - 0x60]
cmove esi, eax
call fcn.0040ad40
mov edx, esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040ad40
mov eax, dword [ebp - 0x60]
cmp dword [eax - 0xc], 0
je 0x40ff84
mov ecx, dword [ebp - 0x50]
cmp dword [ecx - 0xc], 0
je 0x40ff84
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push 0
push 3
push 0
push 0
push 0
push eax
push ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
or eax, eax
jne 0x40ff7d
mov esi, dword [ebp - 0x54]
push 0x2a
push eax
mov dword [ebp - 0x68], eax
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3a]
push eax
mov dword [ebp - 0x6c], esi
call fcn.00422330
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x54], 0x16
call fcn.00410060
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x6c]
call fcn.00410060
cmp eax, 2
jne 0x40ff6b
sub eax, eax
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x42], eax
mov word [ebp - 0x3e], ax
lea eax, [ebp - 0x4c]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x4a], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x5c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push dword [ebp - 0x58]
lea eax, [ebp - 0x3c]
push dword [ebp - 0x5c]
push 0x4410a0
push 0x16
push eax
call fcn.00420b3c
lea eax, [ebp - 0x3c]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ff42
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0
push dword [ebp - 0x50]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or esi, esi
je 0x40ff7d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
or ecx, ecx
jg 0x40ffa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.wtsapi32.dll_WTSVirtualChannelOpen]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ffc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.wtsapi32.dll_WTSVirtualChannelOpen]
inc edi
mov ecx, 0x47a7f8
cmp edi, 2
jl 0x40fe00
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.0041fd32
push ebp
pop esp
pop ebp
ret