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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cf76
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x596634]
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.004126e0
mov ecx, eax
test ecx, ecx
je 0x45dfcb
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.00432d80
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 0x45dde0
push 0x104
lea ecx, [ebp - 0x234]
call fcn.0040cad0
mov esi, dword [ebp - 0x234]
cmp dword [esi - 8], 0x104
jl 0x45dfd5
xor eax, eax
mov dword [esi - 0xc], 0x104
mov word [esi + 0x208], ax
cmp dword [edi + 0x14], 8
jb 0x45de05
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 0x45de69
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45de5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dfdf
push edx
push ecx
call fcn.00496936
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.0050ae7c
add esp, 8
test eax, eax
js 0x45dfd5
cmp eax, dword [esi - 8]
jg 0x45dfd5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edi, dword [esi - 0xc]
test edi, edi
js 0x45dfe4
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, edi
or eax, ebx
jge 0x45ded5
push edi
lea ecx, [ebp - 0x234]
call fcn.0040cad0
mov esi, dword [ebp - 0x234]
lea eax, [edi + 1]
push eax
push esi
call fcn.004e8b8b
add esp, 8
cmp edi, dword [esi - 8]
jg 0x45dfd5
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jge 0x45defe
or eax, 0xffffffff
jmp 0x45df19
push 0x54fdd0
push esi
call fcn.004de105
add esp, 8
test eax, eax
jne 0x45df15
or eax, 0xffffffff
jmp 0x45df19
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.004dcfa0
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 0x45dfad
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.00496d46
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040af60
push 0x80070057
call fcn.0040af60
call fcn.004e8718
push 0x80070057
call fcn.0040af60
int3