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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d9c6
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x597644]
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.00412520
mov ecx, eax
test ecx, ecx
je 0x45e82b
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.00432bf0
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 0x45e640
push 0x104
lea ecx, [ebp - 0x234]
call fcn.0040c910
mov esi, dword [ebp - 0x234]
cmp dword [esi - 8], 0x104
jl 0x45e835
xor eax, eax
mov dword [esi - 0xc], 0x104
mov word [esi + 0x208], ax
cmp dword [edi + 0x14], 8
jb 0x45e665
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 0x45e6c9
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e6bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e83f
push edx
push ecx
call fcn.00497eef
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.0050b8dc
add esp, 8
test eax, eax
js 0x45e835
cmp eax, dword [esi - 8]
jg 0x45e835
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edi, dword [esi - 0xc]
test edi, edi
js 0x45e844
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, edi
or eax, ebx
jge 0x45e735
push edi
lea ecx, [ebp - 0x234]
call fcn.0040c910
mov esi, dword [ebp - 0x234]
lea eax, [edi + 1]
push eax
push esi
call fcn.004e95eb
add esp, 8
cmp edi, dword [esi - 8]
jg 0x45e835
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jge 0x45e75e
or eax, 0xffffffff
jmp 0x45e779
push 0x550dc0
push esi
call fcn.004deb65
add esp, 8
test eax, eax
jne 0x45e775
or eax, 0xffffffff
jmp 0x45e779
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.004dda00
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 0x45e80d
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.004982ff
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040ada0
push 0x80070057
call fcn.0040ada0
call fcn.004e9178
push 0x80070057
call fcn.0040ada0
int3