Function at 0x46dc44
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, 0x4bb4eb
call fcn.00484f9f
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.004840d0
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 0x46de7b
cmp word [ebp + 0x508], di
je 0x46de7b
cmp dword [ebp - 0x18], edi
jbe 0x46de7b
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 0x46dd19
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, ebx
jmp 0x46de7d
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.004840d0
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 0x46de20
lea eax, [ebp]
push edi
push eax
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
je 0x46de20
lea eax, [ebp + 0x100]
push edi
push eax
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
je 0x46de20
lea eax, [ebp + 0x200]
push eax
call fcn.0040e7d0
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x46de20
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 0x46de0f
lea eax, [ebp + 0x300]
push 0x104
push eax
call dword [ebp - 0x20]
pop ecx
pop ecx
test eax, eax
je 0x46de0f
mov dword [ebp - 0x14], ebx
test edi, edi
je 0x46de18
call edi
mov dword [esi + 0x6c], eax
cmp dword [ebp - 0x14], 0
jne 0x46de72
xor edi, edi
push 0x208
lea eax, [ebp + 0x300]
push edi
push eax
call fcn.004840d0
lea eax, [ebp + 0x508]
push edi
push eax
call fcn.0040e370
add esp, 0x14
test eax, eax
jne 0x46de58
push str.0.0.0.0
lea ecx, [esi + 0x5c]
call fcn.0040c8e0
jmp 0x46dd07
push 0x104
lea eax, [ebp + 0x300]
push eax
lea eax, [ebp + 0x508]
push eax
mov ecx, esi
call fcn.0046d2b4
lea eax, [ebp + 0x300]
push eax
jmp 0x46de4b
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.004841c7
add ebp, 0x60c
leave
ret