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

Disassembly:
push ebp
sub esp, 0x608
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x608], eax
push 0x18
mov eax, 0x4bba14
call fcn.00485421
push 0x100
xor edi, edi
xor ebx, ebx
lea eax, [ebp + 0x508]
push edi
inc ebx
push eax
mov esi, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x80
call fcn.00484550
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp + 0x508]
push edx
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
push dword [esi + 0x58]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x1c], ebx
jne 0x46e30f
cmp word [ebp + 0x508], di
je 0x46e30f
cmp dword [ebp - 0x18], edi
jbe 0x46e30f
lea eax, [ebp + 0x508]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b680
push dword [esi + 0x54]
lea eax, [ebp + 0x508]
push dword [ebp - 0x10]
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
call edi
lea eax, [ebp + 0x508]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46e1ad
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, ebx
jmp 0x46e311
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x44]
mov dword [esi + 0x60], ebx
call fcn.0041cb91
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x48]
call fcn.0041cb91
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x300], ax
lea eax, [ebp + 0x302]
push eax
call fcn.00484550
add esp, 0xc
push str.360ver.dll
push dword [ebp - 0x10]
lea eax, [ebp + 0x200]
push eax
call edi
push str.360Common.dll
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call edi
push str.360Base.dll
push dword [ebp - 0x10]
lea eax, [ebp + 0x100]
push eax
call edi
xor edi, edi
lea eax, [ebp + 0x200]
push edi
push eax
mov dword [ebp - 0x14], edi
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
je 0x46e2b4
lea eax, [ebp]
push edi
push eax
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
je 0x46e2b4
lea eax, [ebp + 0x100]
push edi
push eax
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
je 0x46e2b4
lea eax, [ebp + 0x200]
push eax
call fcn.0040e7d0
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x46e2b4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360SafeVersion
push eax
call edi
push str.IsBetaVersion
push dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
call edi
cmp dword [ebp - 0x20], 0
mov edi, eax
je 0x46e2a3
lea eax, [ebp + 0x300]
push 0x104
push eax
call dword [ebp - 0x20]
pop ecx
pop ecx
test eax, eax
je 0x46e2a3
mov dword [ebp - 0x14], ebx
test edi, edi
je 0x46e2ac
call edi
mov dword [esi + 0x6c], eax
cmp dword [ebp - 0x14], 0
jne 0x46e306
xor edi, edi
push 0x208
lea eax, [ebp + 0x300]
push edi
push eax
call fcn.00484550
lea eax, [ebp + 0x508]
push edi
push eax
call fcn.0040e370
add esp, 0x14
test eax, eax
jne 0x46e2ec
push str.0.0.0.0
lea ecx, [esi + 0x5c]
call fcn.0040c8e0
jmp 0x46e19b
push 0x104
lea eax, [ebp + 0x300]
push eax
lea eax, [ebp + 0x508]
push eax
mov ecx, esi
call fcn.0046d748
lea eax, [ebp + 0x300]
push eax
jmp 0x46e2df
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x608]
xor ecx, ebp
call fcn.00484647
add ebp, 0x60c
leave
ret