Function at 0x4114f1
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c47a
mov eax, dword fs:[0]
push eax
mov eax, 0x1ae8
call fcn.0042b9a0
mov eax, dword [0x4516e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x1aec], 1
push 0x208
mov word [ebp - 0xe9c], ax
xor ebx, ebx
lea eax, [ebp - 0xe9a]
push ebx
push eax
call fcn.00422860
add esp, 0xc
mov dword [ebp - 0x1af0], 0x104
lea eax, [ebp - 0x1af0]
push eax
lea eax, [ebp - 0xe9c]
push eax
lea eax, [ebp - 0x1aec]
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360Game.exe
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x411dcb
push 0x206
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x462]
push ebx
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x464]
push str.360Game5data
push eax
call edi
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4115e7
lea ecx, [ebp - 0x464]
call fcn.0041adb0
push str.360Game.ini
lea eax, [ebp - 0x464]
push eax
call edi
call fcn.004083ea
push eax
lea ecx, [ebp - 0x1ae8]
call fcn.00407e3b
push 0x449914
lea eax, [ebp - 0xe9c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x1ae8]
push 0x448dec
push eax
call fcn.0040a280
xor eax, eax
push 0x3e
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x4e]
push ebx
push eax
call fcn.00422860
mov esi, dword [ebp - 0x1ae8]
lea edx, [ebp - 0x50]
push 0x1f
mov ecx, esi
call fcn.0041b3c0
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x20
test eax, eax
je 0x41168e
mov edx, str.5.1.0.1001
lea ecx, [ebp - 0x50]
call fcn.0041a080
test eax, eax
jns 0x411dc3
lea eax, [ebp - 0x464]
mov dword [0x45f4b4], 1
push eax
push 0x448eac
push str.importv3games
push str.main
call ebx
call fcn.004083ea
push eax
lea ecx, [ebp - 0x1af4]
call fcn.00407e3b
lea eax, [ebp - 0x464]
mov byte [ebp - 4], 1
push eax
push 0
push str.importv3setting
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x411cda
push 0x206
push eax
mov word [ebp - 0x66c], ax
lea eax, [ebp - 0x66a]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.360Gamedata360Game.ini
lea eax, [ebp - 0x66c]
push eax
call edi
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411cda
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x14c0], ax
lea eax, [ebp - 0x14be]
push eax
call fcn.00422860
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x464]
add esp, 0xc
push eax
push 0x104
lea eax, [ebp - 0x14c0]
push eax
push 0x448db8
push str.gamedownloadpath
push str.setting
call edi
xor eax, eax
cmp ax, word [ebp - 0x14c0]
jne 0x4117ce
push 0x208
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
push 0x104
lea eax, [ebp - 0x25c]
push eax
push 0x448db8
push str.gamedownloadpath
push str.setting
call edi
cmp word [ebp - 0x25c], 0
je 0x4117ce
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x25c]
push eax
push str.gamedownloadpath
push str.setting
call ebx
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x12b4], ax
lea eax, [ebp - 0x12b2]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
push 0x104
lea eax, [ebp - 0x12b4]
push eax
push 0x448db8
push str.downmode
push str.setting
call edi
xor eax, eax
cmp ax, word [ebp - 0x12b4]
jne 0x411956
push 0x208
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
push 0x104
lea eax, [ebp - 0x25c]
push eax
push 0x448db8
push str.down_mode_set
push str.setting
call edi
cmp word [ebp - 0x25c], 0
je 0x411956
lea eax, [ebp - 0x25c]
push eax
call fcn.0042075f
pop ecx
lea ecx, [ebp - 0x464]
cmp eax, 2
push ecx
mov eax, 0x448eac
mov ecx, 0x449b24
cmovne ecx, eax
push ecx
push str.downmode
push str.setting
call ebx
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x10a8], ax
lea eax, [ebp - 0x10a6]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
push 0x104
lea eax, [ebp - 0x10a8]
push eax
push 0x448db8
push str.down_speed_custom
push str.setting
call edi
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x10a8]
push eax
push str.speeddown
push str.setting
call ebx
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x878], ax
lea eax, [ebp - 0x876]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
push 0x104
lea eax, [ebp - 0x878]
push eax
push 0x448db8
push str.up_speed_custom
push str.setting
call edi
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x878]
push eax
push str.downspeedup
push str.setting
call ebx
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x18d8], ax
lea eax, [ebp - 0x18d6]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
push 0x104
lea eax, [ebp - 0x18d8]
push eax
push 0x448db8
push str.gameinstallpath
push str.setting
call edi
xor eax, eax
cmp ax, word [ebp - 0x18d8]
jne 0x411a07
push 0x208
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
push 0x104
lea eax, [ebp - 0x25c]
push eax
push 0x448db8
push str.gameinstallpath
push str.setting
call edi
cmp word [ebp - 0x25c], 0
je 0x411a07
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x25c]
push eax
push str.gameinstallpath
push str.setting
call ebx
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x16cc], ax
lea eax, [ebp - 0x16ca]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
push 0x104
lea eax, [ebp - 0x16cc]
push eax
push 0x448db8
push str.switch
push str.bosskey
call edi
xor eax, eax
cmp ax, word [ebp - 0x16cc]
jne 0x411ab8
push 0x208
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
push 0x104
lea eax, [ebp - 0x25c]
push eax
push 0x448db8
push 0x44a26c
push str.boss
call edi
cmp word [ebp - 0x25c], 0
je 0x411ab8
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x25c]
push eax
push str.switch
push str.bosskey
call ebx
xor eax, eax
push 0x208
push eax
mov word [ebp - 0xc90], ax
lea eax, [ebp - 0xc8e]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
push 0x104
lea eax, [ebp - 0xc90]
push eax
push 0x448db8
push 0x44a280
push str.bosskey
call edi
xor eax, eax
cmp ax, word [ebp - 0xc90]
jne 0x411b69
push 0x208
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
push 0x104
lea eax, [ebp - 0x25c]
push eax
push 0x448db8
push 0x44a28c
push str.boss
call edi
cmp word [ebp - 0x25c], 0
je 0x411b69
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x25c]
push eax
push 0x44a280
push str.bosskey
call ebx
xor eax, eax
push 0x208
push eax
mov word [ebp - 0xa84], ax
lea eax, [ebp - 0xa82]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
push 0x104
lea eax, [ebp - 0xa84]
push eax
push 0x448db8
push str.trayicon
push str.bosskey
call edi
xor eax, eax
cmp ax, word [ebp - 0xa84]
jne 0x411c1a
push 0x208
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
push 0x104
lea eax, [ebp - 0x25c]
push eax
push 0x448db8
push str.bosskeytray
push str.boss
call edi
cmp word [ebp - 0x25c], 0
je 0x411c1a
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x25c]
push eax
push str.trayicon
push str.bosskey
call ebx
push 0x20a
lea eax, [ebp - 0x1ae4]
push 0
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
push 0x104
lea eax, [ebp - 0x1ae4]
push eax
push 0x448db8
push str.gamenews
push str.setting
call edi
xor eax, eax
cmp ax, word [ebp - 0x1ae4]
jne 0x411cbc
push 0x20a
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
push 0x104
lea eax, [ebp - 0x878]
push eax
push 0x448db8
push str.newswindow
push str.setting
call edi
cmp word [ebp - 0x878], 0
je 0x411cbc
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x878]
push eax
push str.gamenews
push str.setting
call ebx
lea eax, [ebp - 0x464]
push eax
push 0x449b24
push str.importv3setting
push str.main
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x464]
push eax
push 0
push str.importv3task
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x411db5
push 0x20a
push eax
lea eax, [ebp - 0xa84]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0xa84]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x208
lea eax, [ebp - 0x66c]
push 0
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0xa84]
push eax
lea eax, [ebp - 0x66c]
push eax
call edi
push str.360Gamedata_task
lea eax, [ebp - 0x66c]
push eax
call edi
push 0x20a
lea eax, [ebp - 0xc90]
push 0
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0xa84]
push eax
lea eax, [ebp - 0xc90]
push eax
call edi
push str.360Game5data_task
lea eax, [ebp - 0xc90]
push eax
call edi
lea edx, [ebp - 0xc90]
lea ecx, [ebp - 0x66c]
call fcn.0041a400
lea eax, [ebp - 0x464]
push eax
push 0x449b24
push str.importv3task
push str.main
call ebx
mov ecx, dword [ebp - 0x1af4]
lea ecx, [ecx - 0x10]
call fcn.0040233b
lea ecx, [esi - 0x10]
call fcn.0040233b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e635
mov esp, ebp
pop ebp
ret