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

Disassembly:
push ebp
sub esp, 0x5a0
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
push 0x1c
mov eax, 0x4b2e8e
call fcn.00476610
mov esi, ecx
push 0x64
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
lea edx, [ebp + 0x4d8]
push edx
push eax
call dword [ecx + 0x3c]
lea eax, [ebp + 0x4d8]
lea ecx, [esi + 0x1c0]
push eax
call fcn.004027b6
push 0xc8
lea eax, [ebp + 0x4d8]
push ebx
push eax
call fcn.00475570
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
add esp, 0xc
push 0x64
lea edx, [ebp + 0x4d8]
push edx
push eax
call dword [ecx + 0x40]
lea eax, [ebp + 0x4d8]
lea ecx, [esi + 0x1c4]
push eax
call fcn.004027b6
mov ecx, esi
call fcn.0045f93b
mov edi, eax
cmp edi, ebx
je 0x461569
xor eax, eax
push 0x206
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push ebx
push eax
call fcn.00475570
add esp, 0xc
push 0x103
lea eax, [ebp + 0x208]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push 0xc6
mov word [ebp + 0x410], ax
lea eax, [ebp + 0x412]
push ebx
push eax
call fcn.00475570
mov eax, dword [edi]
add esp, 0xc
push 0x63
lea ecx, [ebp + 0x410]
push ecx
lea ecx, [ebp + 0x208]
push ecx
push edi
call dword [eax + 0x64]
lea eax, [ebp + 0x410]
lea ecx, [esi + 0x1c8]
push eax
call fcn.004027b6
mov edi, 0x208
push edi
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 0x24], 1
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4d35fc
push 0x4d3608
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46168a
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402530
push str._safemon360tray.exe
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], ebx
call fcn.00403a6b
add esp, 0xc
push dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
call edi
test eax, eax
je 0x46163e
push str.hipsver.dll
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403a6b
add esp, 0xc
push dword [eax]
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 3
call edi
test eax, eax
je 0x46163e
push str.360ver.dll
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403a6b
add esp, 0xc
push dword [eax]
mov dword [ebp - 0x10], 7
call edi
test eax, eax
jne 0x46163e
xor ebx, ebx
inc ebx
mov dword [esi + 0x1cc], ebx
mov ebx, dword [ebp - 0x10]
test bl, 4
je 0x46165a
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
and ebx, 0xfffffffb
call fcn.00402870
test bl, 2
je 0x46166d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
and ebx, 0xfffffffd
call fcn.00402870
test bl, 1
je 0x46167d
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402870
jmp 0x461690
mov dword [esi + 0x1cc], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5a0]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x5a4
leave
ret