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

Disassembly:
push ebp
sub esp, 0x248
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x248], eax
push 0x28
mov eax, 0x4b2f6e
call fcn.004764c0
mov eax, ecx
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], eax
mov dword [eax + 0x1d4], edi
xor eax, eax
push 0x206
mov word [ebp], ax
xor esi, esi
lea eax, [ebp + 2]
push edi
inc esi
push eax
mov dword [ebp - 0x24], esi
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4d28bc
push 0x4d28c8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x461a1d
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov ebx, str._safemon360tray.exe
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], edi
call fcn.00403a39
add esp, 0xc
push dword [eax]
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 1
call esi
mov edi, str.hipsver.dll
test eax, eax
je 0x4618f8
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00403a39
push 3
pop ebx
push dword [eax]
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call fcn.00453f79
add esp, 0x10
test eax, eax
je 0x4618f8
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403a39
add esp, 0xc
push dword [eax]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 7
call esi
test eax, eax
je 0x4618f8
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403a39
push dword [eax]
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], 0xf
call fcn.00453f79
add esp, 0x10
test eax, eax
je 0x4618f8
push str.360ver.dll
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403a39
add esp, 0xc
push dword [eax]
mov dword [ebp - 0x10], 0x1f
call esi
test eax, eax
jne 0x4618f8
xor bl, bl
jmp 0x4618fa
mov bl, 1
test byte [ebp - 0x10], 0x10
je 0x46190f
mov ecx, dword [ebp - 0x20]
and dword [ebp - 0x10], 0xffffffef
add ecx, 0xfffffff0
call fcn.00402820
test byte [ebp - 0x10], 8
je 0x461924
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x10], 0xfffffff7
add ecx, 0xfffffff0
call fcn.00402820
test byte [ebp - 0x10], 4
je 0x461939
mov ecx, dword [ebp - 0x28]
and dword [ebp - 0x10], 0xfffffffb
add ecx, 0xfffffff0
call fcn.00402820
test byte [ebp - 0x10], 2
je 0x46194e
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x10], 0xfffffffd
add ecx, 0xfffffff0
call fcn.00402820
and dword [ebp - 4], 0
test byte [ebp - 0x10], 1
je 0x461963
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402820
test bl, bl
jne 0x461a12
mov ecx, dword [ebp - 0x1c]
call fcn.0045f79c
mov esi, eax
test esi, esi
je 0x461a12
xor eax, eax
push 0x3e
push eax
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push eax
call fcn.00475420
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403a39
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [esi]
push 0x20
lea edx, [ebp + 0x208]
push edx
push eax
push esi
mov byte [ebp - 4], 5
call dword [ecx + 0x64]
mov ecx, dword [ebp - 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
mov byte [ebp - 4], 0
call fcn.00402820
test bl, bl
jne 0x461a12
lea eax, [ebp + 0x208]
push str.7.8.0.1002
push eax
call fcn.004493b4
pop ecx
pop ecx
test eax, eax
jl 0x461a12
lea eax, [ebp + 0x208]
push str.7.8.0.9999
push eax
call fcn.004493b4
pop ecx
pop ecx
test eax, eax
jg 0x461a12
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1d4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402820
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x248]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x24c
leave
ret