Function at 0x40f7f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a720
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x448050]
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 ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
je 0x40f841
mov ecx, dword [ebx + 0xc]
cmp dword [ecx - 0xc], esi
je 0x40f841
mov edx, dword [ebx + 0x10]
cmp dword [edx - 0xc], esi
je 0x40f841
mov eax, dword [ebx + 0x14]
cmp dword [eax - 0xc], esi
jne 0x40f861
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x40f85a
mov ecx, dword [ebp + 8]
push ecx
call fcn.00424756
add esp, 4
xor eax, eax
jmp 0x40f9c7
cmp dword [ebp + 0x1c], 0x10
jb 0x40f872
mov edi, dword [ebp + 8]
cmp edi, esi
jne 0x40f875
xor eax, eax
jmp 0x40f8a1
lea edi, [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x40f88b
xor eax, eax
jmp 0x40f89f
lea eax, [esi + esi]
call fcn.00433400
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040c6e0
xor esi, esi
lea edx, [ebp - 0x14]
push edx
mov ecx, eax
call fcn.00405cd0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push str.SOFTWAREPPWGCLite
mov byte [ebp - 4], 2
push SysReAllocString
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40f8e9
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
jmp 0x40f8ff
lea ecx, [ebp - 0x20]
push ecx
mov eax, str.SOFTWAREPPWGCLite
mov ecx, SysReAllocString
call fcn.00411090
mov edi, dword [ebp - 0x20]
mov eax, dword [ebx]
sub eax, 0x10
call fcn.004054c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
setne cl
mov ebx, eax
test ecx, ecx
jne 0x40f92d
push 0x80004005
call fcn.00405490
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40f958
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x20], edi
add esi, 0xfffffff0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f97f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
test edi, edi
je 0x40f986
push edi
call ebx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x40f9c2
mov ecx, dword [ebp + 8]
push ecx
call fcn.00424756
add esp, 4
mov eax, 1
lea esp, [ebp - 0x38]
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.00424761
mov esp, ebp
pop ebp
ret 0x1c