Function at 0x46dcd5
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, 0x4bb56b
call fcn.0048501f
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.00484150
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 0x46df0c
cmp word [ebp + 0x508], di
je 0x46df0c
cmp dword [ebp - 0x18], edi
jbe 0x46df0c
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 0x46ddaa
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, ebx
jmp 0x46df0e
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x44]
mov dword [esi + 0x60], ebx
call fcn.0041cb3f
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x48]
call fcn.0041cb3f
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x300], ax
lea eax, [ebp + 0x302]
push eax
call fcn.00484150
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 0x46deb1
lea eax, [ebp]
push edi
push eax
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
je 0x46deb1
lea eax, [ebp + 0x100]
push edi
push eax
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
je 0x46deb1
lea eax, [ebp + 0x200]
push eax
call fcn.0040e7d0
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x46deb1
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 0x46dea0
lea eax, [ebp + 0x300]
push 0x104
push eax
call dword [ebp - 0x20]
pop ecx
pop ecx
test eax, eax
je 0x46dea0
mov dword [ebp - 0x14], ebx
test edi, edi
je 0x46dea9
call edi
mov dword [esi + 0x6c], eax
cmp dword [ebp - 0x14], 0
jne 0x46df03
xor edi, edi
push 0x208
lea eax, [ebp + 0x300]
push edi
push eax
call fcn.00484150
lea eax, [ebp + 0x508]
push edi
push eax
call fcn.0040e370
add esp, 0x14
test eax, eax
jne 0x46dee9
push str.0.0.0.0
lea ecx, [esi + 0x5c]
call fcn.0040c8e0
jmp 0x46dd98
push 0x104
lea eax, [ebp + 0x300]
push eax
lea eax, [ebp + 0x508]
push eax
mov ecx, esi
call fcn.0046d345
lea eax, [ebp + 0x300]
push eax
jmp 0x46dedc
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.00484247
add ebp, 0x60c
leave
ret