Function at 0x416e80
Capabilities:
Delete registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4f2500]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, str.SoftwareGamePP
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.004155f0
mov edi, dword [esp + 0x18]
mov esi, dword [edi - 0xc]
push 0x5c
push edi
call fcn.004256ad
add esp, 8
test eax, eax
jne 0x416ecd
or ecx, 0xffffffff
jmp 0x416ed3
sub eax, edi
sar eax, 1
mov ecx, eax
mov eax, esi
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
dec eax
lea ecx, [esp + 0x24]
call fcn.00407b30
mov ebx, dword [esp + 0x20]
push str.gamepp
push ebx
call fcn.00424db2
add esp, 8
test eax, eax
jne 0x416f4f
mov eax, dword [0x4f7510]
test eax, eax
jne 0x416f26
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x416f1f
mov esi, eax
call fcn.00415ef0
jmp 0x416f21
xor eax, eax
mov dword [0x4f7510], eax
add eax, 0x410
jne 0x416f37
push 0x80004005
call fcn.00402e50
push eax
push ebx
call fcn.00424db2
add esp, 8
test eax, eax
je 0x416f4f
mov ecx, dword [esp + 0x14]
push edi
call fcn.00415c00
mov edi, str.SoftwareGamePP2
lea ecx, [esp + 0x10]
call fcn.004155f0
mov ebx, dword [esp + 0x10]
mov esi, dword [ebx - 0xc]
push 0x5c
push ebx
call fcn.004256ad
add esp, 8
test eax, eax
jne 0x416f78
or ecx, 0xffffffff
jmp 0x416f7e
sub eax, ebx
sar eax, 1
mov ecx, eax
mov eax, esi
sub eax, ecx
lea edx, [esp + 0x10]
dec eax
push edx
lea ecx, [esp + 0x2c]
call fcn.00407b30
mov eax, dword [esp + 0x28]
push str.gamepp2
push eax
call fcn.00424db2
add esp, 8
test eax, eax
jne 0x416fb1
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00415c00
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x3a]
push edx
mov word [esp + 0x3c], cx
call fcn.004276b0
add esp, 0xc
push 0x104
lea eax, [esp + 0x34]
push eax
push str._appdata_GamePP
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x30]
lea esi, [esp + 0x24]
call fcn.004032d0
mov esi, dword [esp + 0x24]
mov edi, dword [esi - 0xc]
push 0x5c
push esi
call fcn.004256ad
add esp, 8
test eax, eax
jne 0x417008
or ecx, 0xffffffff
jmp 0x41700e
sub eax, esi
sar eax, 1
mov ecx, eax
mov eax, edi
sub eax, ecx
lea ecx, [esp + 0x24]
push ecx
dec eax
lea ecx, [esp + 0x30]
call fcn.00407b30
mov edi, dword [esp + 0x2c]
push str.gamepp
push edi
call fcn.00424db2
add esp, 8
test eax, eax
jne 0x417041
mov ecx, dword [esp + 0x14]
push esi
call fcn.00415c00
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push 0
push str.SoftWare
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417083
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4cbd48
push eax
call ebx
mov ecx, dword [esp + 0x1c]
push str.GamePP2
push ecx
call ebx
mov ebx, dword [esp + 0x10]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41709f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417117
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417137
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042292e
mov esp, ebp
pop ebp
ret 4