Function at 0x409bb0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca6e6
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x505070]
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
mov dword [ebp - 0x22c], ecx
lea eax, [ebp - 0x228]
push eax
call fcn.004094e0
push str.cef
lea edx, [ebp - 0x228]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.004080b0
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x224]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x409e19
push dword [ebp - 0x224]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x409e19
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a1ef0
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push str.Setup_Path
push str.SOFTWARELudashi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x409cbd
push str.Utilsceflibcef.dll
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x409df0
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a1ef0
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push str.Setup_Path
push str.SOFTWARELdsLite
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x409d26
push str.Utilsceflibcef.dll
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x409df0
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a1ef0
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360wpapp.exe
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x409d8b
push str.Utilsceflibcef.dll
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x409df0
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a1ef0
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push str.Setup_Path
push str.SOFTWARELDSGameMaster
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x409e19
push str.Utilsceflibcef.dll
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x409e19
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push eax
call fcn.0040a1b0
mov esi, eax
jmp 0x409e1b
xor esi, esi
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x224]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409e3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x409e61
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0049f1b4
mov esp, ebp
pop ebp
ret