Function at 0x416100
Capabilities:
Get common file path
Get program files directory
Query environment variable
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x230], edi
mov ebx, edx
call fcn.004128f0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x41613c
xor esi, esi
jmp 0x41614f
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 - 0x228]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x104
lea ecx, [edi + 0x1c70]
push ecx
push str._localappdata_GamePP
call esi
push 0x104
lea edx, [edi + 0x1e78]
push edx
push str._localappdata_GamePPSdk
call esi
mov ecx, edi
call fcn.004148c0
push ebx
push edi
call fcn.00414ea0
mov ecx, edi
call fcn.00415080
lea ebx, [edi + 0x820]
mov eax, ebx
lea esi, [ebp - 0x22c]
call fcn.004032d0
mov esi, dword [ebp - 0x22c]
cmp dword [esi - 0xc], 0
jne 0x4161d8
push 0x4cbd48
push 0x104
push ebx
call fcn.00425a83
add esp, 0xc
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4161f4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
push 0
push 0
push 0
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
call fcn.00415750
mov ecx, edi
call fcn.00415970
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.004276b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str._localappdata_GamePP
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea edx, [ebp - 0x22c]
push edx
push 0x26
push 0
mov dword [ebp - 0x22c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x416296
mov ecx, dword [ebp - 0x22c]
lea eax, [edi + 0x618]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [edi + 0x618]
lea edi, [eax - 2]
nop
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4162a0
mov ecx, dword [0x4cb7dc]
mov dword [edi], ecx
add eax, 0xfffffffe
jmp 0x4162c0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4162c0
mov edx, dword [0x4cbd48]
mov dword [eax], edx
mov ecx, dword [0x4cbd4c]
mov dword [eax + 4], ecx
mov edx, dword [0x4cbd50]
mov dword [eax + 8], edx
mov cx, word [0x4cbd54]
mov word [eax + 0xc], cx
lea ecx, [ebp - 0x22c]
call fcn.00414520
lea edx, [ebp - 0x234]
push edx
lea ebx, [ebp - 0x22c]
call fcn.00412810
mov esi, dword [ebp - 0x234]
push 0x4cdb80
push esi
call fcn.00424db2
add esp, 0xc
test eax, eax
je 0x416356
push 0x4cdb88
push esi
call fcn.00424db2
add esp, 8
test eax, eax
je 0x416356
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edx, dword [ebp - 0x230]
xor ecx, ecx
cmp eax, 0x804
setne cl
mov dword [edx + 0x22c4], ecx
jmp 0x416375
push 0x4cdb80
push esi
call fcn.00424db2
mov ecx, dword [ebp - 0x230]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ecx + 0x22c4], eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
pop esi
pop ebx
test ecx, ecx
jg 0x416394
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4163b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042292e
mov esp, ebp
pop ebp
ret