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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c4d9
mov eax, dword fs:[0]
push eax
sub esp, 0x6e0
mov eax, dword [0x4516e0]
xor eax, esp
mov dword [esp + 0x6d8], eax
push ebx
push esi
push edi
mov eax, dword [0x4516e0]
xor eax, esp
push eax
lea eax, [esp + 0x6f0]
mov dword fs:[0], eax
mov dword [esp + 0x38], ecx
xor eax, eax
mov dword [esp + 0x30], 1
push 0x208
mov word [esp + 0x4d8], ax
xor ebx, ebx
lea eax, [esp + 0x4da]
push ebx
push eax
call fcn.00422860
add esp, 0xc
mov dword [esp + 0x34], 0x104
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x4d8]
push eax
lea eax, [esp + 0x38]
push eax
push 0x448db8
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360Game.exe
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x412214
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x6f8], ebx
push 0x206
mov word [esp + 0x2d0], ax
lea eax, [esp + 0x2d2]
push ebx
push eax
call fcn.00422860
add esp, 0xc
lea eax, [esp + 0x2cc]
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 + 0x2cc]
mov byte [esp + 0x6f8], 1
push eax
lea eax, [esp + 0x24]
push 0x44a354
push eax
call fcn.0040a280
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x48]
add esp, 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
call fcn.004083ea
push eax
lea ecx, [esp + 0x18]
call fcn.00407e3b
lea eax, [esp + 0x68]
mov byte [esp + 0x6f8], 2
push eax
lea eax, [esp + 0x2d0]
push eax
lea eax, [esp + 0x1c]
push 0x448dec
push eax
call fcn.0040a280
mov esi, dword [esp + 0x24]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41217a
lea ecx, [esp + 0x18]
call fcn.00412238
lea edx, [esp + 0x18]
mov byte [esp + 0x6f8], 3
mov ecx, esi
call fcn.0041b200
test eax, eax
jne 0x4120da
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
jmp 0x412169
lea eax, [esp + 0x4d4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407dac
test eax, eax
jne 0x412162
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jne 0x412108
mov dword [0x45f4a4], 1
lea ecx, [eax - 0x10]
jmp 0x412169
xor eax, eax
push 0x3e
mov word [esp + 0x290], ax
lea eax, [esp + 0x292]
push ebx
push eax
call fcn.00422860
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x298]
push 0x1f
call fcn.0041b3c0
add esp, 0x10
test eax, eax
je 0x412162
mov edx, str.5.1.0.1001
lea ecx, [esp + 0x28c]
call fcn.0041a080
test eax, eax
jns 0x412162
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.004134e6
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040233b
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040233b
lea ecx, [esi - 0x10]
mov byte [esp + 0x6f8], 1
call fcn.0040233b
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412065
mov ebx, dword [esp + 0x28]
sub ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sar ebx, 2
test ebx, ebx
je 0x412203
xor edi, edi
mov eax, dword [esp + 0x38]
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 + 0x6fc], 4
mov eax, dword [esp + 0x28]
push ecx
mov esi, esp
mov ecx, dword [eax + edi*4]
sub ecx, 0x10
call fcn.004080e8
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x700], 1
call fcn.00410cd6
inc edi
cmp edi, ebx
jb 0x4121b3
mov edi, dword [esp + 0x20]
lea ecx, [edi - 0x10]
call fcn.0040233b
lea ecx, [esp + 0x24]
call fcn.004134af
mov ecx, dword [esp + 0x6f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6d8]
xor ecx, esp
call fcn.0041e635
mov esp, ebp
pop ebp
ret