Function at 0x412273
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get startup folder
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c580
mov eax, dword fs:[0]
push eax
sub esp, 0x6a8
mov eax, dword [0x4516e0]
xor eax, esp
mov dword [esp + 0x6a0], eax
push ebx
push esi
push edi
mov eax, dword [0x4516e0]
xor eax, esp
push eax
lea eax, [esp + 0x6b8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x28], esi
xor ebx, ebx
cmp dword [0x45f4a4], ebx
je 0x4123a7
lea eax, [esp + 0x20]
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413b46
mov dword [esp + 0x6c0], ebx
lea ecx, [esp + 0x14]
lea ebx, [esi + 0x28]
push eax
mov edx, ebx
call fcn.004133a3
pop ecx
mov byte [esp + 0x6c0], 2
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040233b
lea eax, [esp + 0x2c]
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413a19
mov edi, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x6c0], 3
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.004139bf
mov esi, eax
lea eax, [esp + 0x24]
mov byte [esp + 0x6c0], 4
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413b46
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x6c0], 5
push dword [edi]
mov edx, dword [ebx]
mov ecx, dword [ecx + 0x3c]
push ecx
push ecx
push dword [esi]
push ecx
push ecx
push dword [eax]
call fcn.0041af80
mov ecx, dword [esp + 0x40]
add esp, 0x1c
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0040233b
or dword [esp + 0x6c0], 0xffffffff
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040233b
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x40], 1
push 0x208
mov word [esp + 0x4a0], ax
lea eax, [esp + 0x4a2]
push ebx
push eax
call fcn.00422860
add esp, 0xc
mov dword [esp + 0x3c], 0x104
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x4a0]
push eax
lea eax, [esp + 0x48]
push eax
push 0x448db8
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360Game5.exe
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x412610
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x6c0], 6
push 0x206
mov word [esp + 0x298], ax
lea eax, [esp + 0x29a]
push ebx
push eax
call fcn.00422860
add esp, 0xc
lea eax, [esp + 0x294]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.004083ea
push eax
lea ecx, [esp + 0x24]
call fcn.00407e3b
lea eax, [esp + 0x294]
mov byte [esp + 0x6c0], 7
push eax
lea eax, [esp + 0x24]
push 0x44a354
push eax
call fcn.0040a280
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x50]
add esp, 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
mov edi, eax
call fcn.004083ea
push eax
lea ecx, [esp + 0x20]
call fcn.00407e3b
lea eax, [esp + 0x70]
mov byte [esp + 0x6c0], 8
push eax
lea eax, [esp + 0x298]
push eax
lea eax, [esp + 0x24]
push 0x448dec
push eax
call fcn.0040a280
mov esi, dword [esp + 0x2c]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412576
lea ecx, [esp + 0x14]
call fcn.00412238
lea edx, [esp + 0x14]
mov byte [esp + 0x6c0], 9
mov ecx, esi
call fcn.0041b200
test eax, eax
je 0x41255e
push dword [esp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [esp + 0x28]
call fcn.00407cf7
lea eax, [esp + 0x49c]
mov byte [esp + 0x6c0], 0xa
push eax
lea ecx, [esp + 0x18]
call fcn.00407dac
test eax, eax
je 0x412540
push 0x449914
lea ecx, [esp + 0x28]
call fcn.00407dac
test eax, eax
jne 0x412552
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.004134e6
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040233b
lea ecx, [esi - 0x10]
mov byte [esp + 0x6c0], 7
call fcn.0040233b
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412494
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
sar eax, 2
test eax, eax
je 0x4125ff
mov edi, eax
mov eax, dword [esp + 0x28]
push ecx
mov dword [esp + 0x18], esp
mov esi, esp
mov ecx, dword [eax + 0x3c]
sub ecx, 0x10
call fcn.004080e8
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x6c4], 0xb
mov eax, dword [esp + 0x34]
push ecx
mov esi, esp
mov ecx, dword [eax + ebx*4]
sub ecx, 0x10
call fcn.004080e8
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x6c8], 7
call fcn.00410cd6
inc ebx
cmp ebx, edi
jb 0x4125af
mov edi, dword [esp + 0x20]
lea ecx, [edi - 0x10]
call fcn.0040233b
lea ecx, [esp + 0x30]
call fcn.004134af
mov ecx, dword [esp + 0x6b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6a0]
xor ecx, esp
call fcn.0041e635
mov esp, ebp
pop ebp
ret