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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.SoftwareGamePP
lea eax, [ebp - 0x218]
mov ebx, ecx
push eax
mov dword [ebp - 0x22c], ebx
call fcn.004143b0
mov esi, dword [ebp - 0x218]
push 0x5c
push esi
mov edi, dword [esi - 0xc]
call fcn.0049ac3e
add esp, 8
test eax, eax
jne 0x415cfc
or eax, 0xffffffff
jmp 0x415d00
sub eax, esi
sar eax, 1
sub edi, eax
lea ecx, [ebp - 0x218]
dec edi
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004073f0
mov edi, dword [ebp - 0x228]
push 0x4dd60c
push edi
call fcn.004a4268
add esp, 8
test eax, eax
jne 0x415d7c
mov eax, dword [0x506568]
test eax, eax
jne 0x415d5b
push 0x20d0
call fcn.0049786c
add esp, 4
mov ecx, eax
call fcn.00414c70
mov ecx, eax
mov dword [0x506568], eax
mov edx, dword [eax]
call dword [edx]
mov eax, dword [0x506568]
add eax, 0x414
je 0x415fc2
push eax
push edi
call fcn.004a4268
add esp, 8
test eax, eax
je 0x415d7c
push esi
mov ecx, ebx
call fcn.00414a90
push str.SoftwareGamePP2
lea eax, [ebp - 0x214]
push eax
call fcn.004143b0
mov edi, dword [ebp - 0x214]
push 0x5c
push edi
mov esi, dword [edi - 0xc]
call fcn.0049ac3e
add esp, 8
test eax, eax
jne 0x415daa
or eax, 0xffffffff
jmp 0x415dae
sub eax, edi
sar eax, 1
sub esi, eax
lea ecx, [ebp - 0x214]
dec esi
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.004073f0
push str.gamepp2
push dword [ebp - 0x224]
call fcn.004a4268
add esp, 8
test eax, eax
jne 0x415de3
push edi
mov ecx, ebx
call fcn.00414a90
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push str._appdata_GamePP
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.004031c0
mov ecx, eax
test ecx, ecx
je 0x415fc2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
call fcn.004034f0
test al, al
jne 0x415e72
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415e50
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x214]
call fcn.00403760
mov esi, dword [ebp - 0x214]
push 0x5c
push esi
mov ebx, dword [esi - 0xc]
call fcn.0049ac3e
add esp, 8
test eax, eax
jne 0x415e8f
or eax, 0xffffffff
jmp 0x415e93
sub eax, esi
sar eax, 1
sub ebx, eax
lea ecx, [ebp - 0x214]
dec ebx
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.004073f0
push 0x4dd60c
push dword [ebp - 0x220]
call fcn.004a4268
add esp, 8
test eax, eax
jne 0x415ecc
mov ecx, dword [ebp - 0x22c]
push esi
call fcn.00414a90
lea eax, [ebp - 0x21c]
push eax
push 0xf003f
push 0
push str.SoftWare
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415f0e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4da3b0
push dword [ebp - 0x21c]
call ebx
push str.GamePP2
push dword [ebp - 0x21c]
call ebx
mov edx, dword [ebp - 0x220]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415f2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x415f45
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415f62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x415f79
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415f96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x415fb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049765c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402f10
int3