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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6293bc
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x6d1554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x22c], edi
call fcn.005c88b0
add esp, 0xc
mov dword [ebp - 0x228], 1
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push str.Setup_Path
push str.SoftwareLDSGameCenter
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4853f3
push 0x65503c
lea ecx, [ebp - 0x21c]
call fcn.0047cc90
jmp 0x4854a7
cmp word [ebp - 0x218], 0
je 0x485442
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485406
sub ecx, edx
sar ecx, 1
movzx eax, word [ebp + ecx*2 - 0x21a]
mov ecx, eax
cmp eax, 0x5c
je 0x485442
cmp ecx, 0x2f
je 0x485442
push 0x655004
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005d3480
add esp, 0xc
call fcn.0047fb20
mov ecx, eax
test ecx, ecx
je 0x4855da
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.0047d4d0
test al, al
jne 0x4854a7
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485485
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00481fe0
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x485523
call fcn.0047fb20
mov ecx, eax
test ecx, ecx
je 0x4855e4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x65503c
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0047d4d0
test al, al
jne 0x4854f5
push 0
push 0x65503c
mov ecx, edi
call fcn.00481fe0
mov esi, dword [ebp - 0x21c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4855bd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4855bd
push 0x655684
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0047d070
add esp, 0xc
push dword [ebp - 0x220]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48556b
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.0047d610
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x485577
push 0x65503c
mov ecx, edi
call fcn.0047cc90
mov edx, dword [ebp - 0x220]
or esi, 0xffffffff
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48559b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4855bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e0f3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0047d4b0
push 0x80004005
call fcn.0047d4b0
int3