Function at 0x414eb0
Capabilities:
Get common file path
Get program files directory
Query environment variable
Set registry value
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x644]
push esi
push edi
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
mov edi, ecx
push SysReAllocString
mov dword [ebp - 0x64c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414f52
push 0x104
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 4
lea eax, [ebp - 0x648]
mov dword [ebp - 0x648], 0x77
push eax
push 4
push 0
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x414f69
xor esi, esi
jmp 0x414f7c
push 0xf01ff
push str.PcaSvc
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x640]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [edi + 0x187c]
push 0x104
push eax
push str._localappdata_GamePP
call esi
push 0x104
lea eax, [edi + 0x1a84]
push eax
push str._localappdata_GamePPSdk
call esi
mov ecx, edi
call fcn.00413430
push ebx
mov ecx, edi
call fcn.00413b20
mov ecx, edi
call fcn.00413eb0
lea ebx, [edi + 0x824]
push ebx
lea ecx, [ebp - 0x648]
call fcn.00403470
mov esi, dword [ebp - 0x648]
cmp dword [esi - 0xc], 0
jne 0x415005
push 0x4da3b0
push 0x104
push ebx
call fcn.004a9fb4
add esp, 0xc
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41501f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, edi
call fcn.004144c0
push 0x208
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0
push 0x4dd7bc
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x62c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x628], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4150b7
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x63c]
call fcn.00416200
lea eax, [ebp - 0x63c]
lea esi, [edi + 0x165c]
push eax
mov ecx, esi
call fcn.00416040
mov edx, dword [ebp - 0x628]
cmp edx, 8
jb 0x41512d
mov ecx, dword [ebp - 0x63c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415123
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152c0
push edx
push ecx
call fcn.0049789c
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x415135
mov esi, dword [esi]
push esi
push ecx
push 0x89
call fcn.00413990
push 0x208
lea eax, [ebp - 0x624]
push 0
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x624]
push 0x104
push eax
push str._localappdata_GamePP
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x624]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x644]
mov dword [ebp - 0x644], 0
push eax
push 0x26
push 0
lea esi, [edi + 0x61c]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4151bb
push esi
push dword [ebp - 0x644]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x644]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edi, [esi - 2]
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4151c0
mov eax, dword [0x4da000]
add esi, 0xfffffffe
mov dword [edi], eax
mov ax, word [esi + 2]
lea esi, [esi + 2]
test ax, ax
jne 0x4151d6
mov eax, dword [0x4da3b0]
mov dword [esi], eax
mov eax, dword [0x4da3b4]
mov dword [esi + 4], eax
mov eax, dword [0x4da3b8]
mov dword [esi + 8], eax
mov ax, word [0x4da3bc]
mov word [esi + 0xc], ax
lea eax, [ebp - 0x644]
push eax
call fcn.00413100
lea edx, [ebp - 0x644]
lea ecx, [ebp - 0x648]
call fcn.00411840
mov esi, dword [ebp - 0x648]
push 0x4dc1e8
push esi
call fcn.004a4268
add esp, 8
test eax, eax
je 0x41525c
push 0x4dc1f0
push esi
call fcn.004a4268
add esp, 8
test eax, eax
je 0x41525c
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
xor ecx, ecx
cmp eax, 0x804
setne cl
jmp 0x41526f
push 0x4dc1e8
push esi
call fcn.004a4268
add esp, 8
neg eax
sbb ecx, ecx
inc ecx
mov eax, dword [ebp - 0x64c]
add esi, 0xfffffff0
mov dword [eax + 0x1ec4], ecx
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x415292
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x644]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4152ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049765c
mov esp, ebp
pop ebp
ret 4
call fcn.0049e530
int3