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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ad36
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x594624]
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 - 0x240], ecx
mov dword [ebp - 0x238], 0x208
mov dword [ebp - 0x23c], 1
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x45aa7b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push 4
push eax
call fcn.0042de70
add esp, 8
mov edi, eax
mov ecx, dword [esi - 8]
mov ebx, 1
mov edx, ebx
mov byte [ebp - 4], 1
sub edx, dword [esi - 4]
sub ecx, 0x104
or ecx, edx
jge 0x45a890
push 0x104
lea ecx, [ebp - 0x234]
call fcn.0040d020
mov esi, dword [ebp - 0x234]
cmp dword [esi - 8], 0x104
jl 0x45aa85
xor eax, eax
mov dword [esi - 0xc], 0x104
mov word [esi + 0x208], ax
cmp dword [edi + 0x14], 8
jb 0x45a8b5
mov edi, dword [edi]
lea eax, [ebp - 0x238]
push eax
push esi
lea eax, [ebp - 0x23c]
push eax
push str.VendorID
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x45a919
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a90f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45aa8f
push edx
push ecx
call fcn.004939be
add esp, 8
push dword [esi - 8]
xor eax, eax
mov dword [ebp - 0x220], 0
push esi
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0050891c
add esp, 8
test eax, eax
js 0x45aa85
cmp eax, dword [esi - 8]
jg 0x45aa85
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edi, dword [esi - 0xc]
test edi, edi
js 0x45aa94
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, edi
or eax, ebx
jge 0x45a985
push edi
lea ecx, [ebp - 0x234]
call fcn.0040d020
mov esi, dword [ebp - 0x234]
lea eax, [edi + 1]
push eax
push esi
call fcn.004e662b
add esp, 8
cmp edi, dword [esi - 8]
jg 0x45aa85
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jge 0x45a9ae
or eax, 0xffffffff
jmp 0x45a9c9
push 0x54ddc0
push esi
call fcn.004dbb95
add esp, 8
test eax, eax
jne 0x45a9c5
or eax, 0xffffffff
jmp 0x45a9c9
sub eax, esi
sar eax, 1
mov ebx, dword [ebp - 0x240]
not eax
shr eax, 0x1f
push 0x208
push 0
mov dword [ebx + 0x84], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.UtilsLDSGameCenter_ludashi.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
and edi, dword [ebx + 0x84]
add esi, 0xfffffff0
mov dword [ebx + 0x84], edi
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45aa5d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00493dce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b4c0
push 0x80070057
call fcn.0040b4c0
call fcn.004e61b8
push 0x80070057
call fcn.0040b4c0
int3