Function at 0x4f6a60
Capabilities:
Get common file path
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc9f9
mov eax, dword fs:[0]
push eax
mov eax, 0x304a8
call fcn.005cca70
mov eax, dword [0x654c54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3049c], ecx
call fcn.00525e00
movzx eax, al
test eax, eax
je 0x4f6b80
push 0x614018
lea ecx, [ebp - 0x30398]
call fcn.0040dbc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3037c]
push ecx
call fcn.00525ea0
add esp, 4
mov dword [ebp - 0x304a0], eax
mov edx, dword [ebp - 0x304a0]
mov dword [ebp - 0x304a4], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x304a4]
push eax
lea ecx, [ebp - 0x30398]
push ecx
lea edx, [ebp - 0x303b4]
push edx
call fcn.005280b0
add esp, 0xc
mov dword [ebp - 0x303f0], eax
mov eax, dword [ebp - 0x303f0]
cmp dword [eax + 0x18], 0x10
jb 0x4f6b21
mov ecx, dword [ebp - 0x303f0]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x304a8], edx
jmp 0x4f6b30
mov eax, dword [ebp - 0x303f0]
add eax, 4
mov dword [ebp - 0x304a8], eax
mov ecx, dword [ebp - 0x304a8]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.005d14a0
add esp, 8
push 0
push 1
lea ecx, [ebp - 0x303b4]
call fcn.004079f0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x3037c]
call fcn.004079f0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30398]
call fcn.004079f0
jmp 0x4f6b92
push 0x104
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x13c]
push ecx
call fcn.005cdf90
add esp, 4
movsx edx, byte [ebp + eax - 0x13d]
cmp edx, 0x5c
je 0x4f6bc2
push 0x6130e4
lea eax, [ebp - 0x13c]
push eax
call fcn.005d14b0
add esp, 8
push str.popcreg.dat
lea ecx, [ebp - 0x13c]
push ecx
call fcn.005d14b0
add esp, 8
push 0x606a70
lea edx, [ebp - 0x13c]
push edx
call fcn.005cc851
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4f6e07
mov eax, dword [ebp - 0x30]
push eax
push 1
push 2
lea ecx, [ebp - 0x1014c]
push ecx
call fcn.005cd555
add esp, 0x10
cmp eax, 1
je 0x4f6c18
jmp 0x4f6dfb
movzx edx, word [ebp - 0x1014c]
mov byte [ebp + edx - 0x30154], 0
mov eax, dword [ebp - 0x30]
push eax
movzx ecx, word [ebp - 0x1014c]
push ecx
push 1
lea edx, [ebp - 0x30154]
push edx
call fcn.005cd555
add esp, 0x10
mov eax, dword [ebp - 0x30]
push eax
push 1
push 2
lea ecx, [ebp - 0x1014c]
push ecx
call fcn.005cd555
add esp, 0x10
cmp eax, 1
je 0x4f6c65
jmp 0x4f6dfb
movzx edx, word [ebp - 0x1014c]
mov byte [ebp + edx - 0x10144], 0
mov eax, dword [ebp - 0x30]
push eax
movzx ecx, word [ebp - 0x1014c]
push ecx
push 1
lea edx, [ebp - 0x10144]
push edx
call fcn.005cd555
add esp, 0x10
mov eax, dword [ebp - 0x30]
push eax
push 1
push 2
lea ecx, [ebp - 0x1014c]
push ecx
call fcn.005cd555
add esp, 0x10
cmp eax, 1
je 0x4f6cb2
jmp 0x4f6dfb
movzx edx, word [ebp - 0x1014c]
mov byte [ebp + edx - 0x2014c], 0
mov eax, dword [ebp - 0x30]
push eax
movzx ecx, word [ebp - 0x1014c]
push ecx
push 1
lea edx, [ebp - 0x2014c]
push edx
call fcn.005cd555
add esp, 0x10
mov eax, dword [ebp - 0x30]
push eax
push 1
push 2
lea ecx, [ebp - 0x10148]
push ecx
call fcn.005cd555
add esp, 0x10
cmp eax, 1
je 0x4f6cff
jmp 0x4f6dfb
mov edx, dword [ebp - 0x30]
push edx
push 1
push 2
lea eax, [ebp - 0x20150]
push eax
call fcn.005cd555
add esp, 0x10
cmp eax, 1
je 0x4f6d20
jmp 0x4f6dfb
mov ecx, dword [ebp - 0x3049c]
add ecx, 0x44
mov dword [ebp - 0x30430], ecx
lea edx, [ebp - 0x30154]
push edx
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x30424], eax
mov eax, dword [ebp - 0x30424]
push eax
lea ecx, [ebp - 0x30154]
push ecx
mov edx, dword [ebp - 0x30430]
mov eax, dword [edx + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x30430]
call fcn.004367f0
neg eax
sbb eax, eax
add eax, 1
movzx ecx, al
test ecx, ecx
je 0x4f6df6
lea edx, [ebp - 0x10144]
push edx
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x30434], eax
mov eax, dword [ebp - 0x30434]
push eax
lea ecx, [ebp - 0x10144]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b080
lea edx, [ebp - 0x2014c]
push edx
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x30444], eax
mov eax, dword [ebp - 0x30444]
push eax
lea ecx, [ebp - 0x2014c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040b080
movsx edx, word [ebp - 0x10148]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
movsx ecx, word [ebp - 0x20150]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov eax, dword [ebp - 0x30]
push eax
call fcn.005cc711
add esp, 4
jmp 0x4f7052
jmp 0x4f6bf7
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005cc711
add esp, 4
mov edx, dword [ebp - 0x3049c]
add edx, 0x7c
push edx
push str.SOFTWARE_
lea eax, [ebp - 0x303d0]
push eax
call fcn.0040f440
add esp, 0xc
mov dword [ebp - 0x304ac], eax
mov ecx, dword [ebp - 0x304ac]
mov dword [ebp - 0x304b0], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x304b0]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00528860
add esp, 8
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x303d0]
call fcn.004079f0
cmp dword [ebp - 0x14], 0x10
jb 0x4f6e75
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x304b4], ecx
jmp 0x4f6e7e
lea edx, [ebp - 0x28]
mov dword [ebp - 0x304b4], edx
lea eax, [ebp - 0x140]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0x304b4]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x4f703f
mov dword [ebp - 0x30258], 1
mov dword [ebp - 0x3025c], 0x100
lea edx, [ebp - 0x3025c]
push edx
lea eax, [ebp - 0x30254]
push eax
lea ecx, [ebp - 0x30258]
push ecx
push 0
push str.RegName
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x4f6f20
mov eax, dword [ebp - 0x3025c]
mov byte [ebp + eax - 0x30254], 0
lea ecx, [ebp - 0x30254]
push ecx
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x30464], eax
mov edx, dword [ebp - 0x30464]
push edx
lea eax, [ebp - 0x30254]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b080
mov dword [ebp - 0x30258], 1
mov dword [ebp - 0x3025c], 0x100
lea ecx, [ebp - 0x3025c]
push ecx
lea edx, [ebp - 0x3035c]
push edx
lea eax, [ebp - 0x30258]
push eax
push 0
push str.RegCode
mov ecx, dword [ebp - 0x140]
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x4f6f9a
mov edx, dword [ebp - 0x3025c]
mov byte [ebp + edx - 0x3035c], 0
lea eax, [ebp - 0x3035c]
push eax
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x30474], eax
mov ecx, dword [ebp - 0x30474]
push ecx
lea edx, [ebp - 0x3035c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040b080
mov dword [ebp - 0x30258], 4
mov dword [ebp - 0x3025c], 4
lea eax, [ebp - 0x3025c]
push eax
lea ecx, [ebp - 0x30360]
push ecx
lea edx, [ebp - 0x30258]
push edx
push 0
push str.TimesPlayed
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x4f6fe6
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x30360]
mov dword [ecx], edx
mov dword [ebp - 0x30258], 4
mov dword [ebp - 0x3025c], 4
lea eax, [ebp - 0x3025c]
push eax
lea ecx, [ebp - 0x30360]
push ecx
lea edx, [ebp - 0x30258]
push edx
push 0
push str.TimesExecuted
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x4f7032
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x30360]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cbcb1
mov esp, ebp
pop ebp
ret 0x10