Function at 0x460c66
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, 0x4b2d55
call fcn.004764b0
mov eax, ecx
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], eax
mov dword [eax + 0x1d0], 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.00475410
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4d288c
push 0x4d2898
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x460eee
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040260e
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.00403a22
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 0x460dc9
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00403a22
push 3
pop ebx
push dword [eax]
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call fcn.004532f5
add esp, 0x10
test eax, eax
je 0x460dc9
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403a22
add esp, 0xc
push dword [eax]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 7
call esi
test eax, eax
je 0x460dc9
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403a22
push dword [eax]
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], 0xf
call fcn.004532f5
add esp, 0x10
test eax, eax
je 0x460dc9
push str.360ver.dll
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403a22
add esp, 0xc
push dword [eax]
mov dword [ebp - 0x10], 0x1f
call esi
test eax, eax
jne 0x460dc9
xor bl, bl
jmp 0x460dcb
mov bl, 1
test byte [ebp - 0x10], 0x10
je 0x460de0
mov ecx, dword [ebp - 0x20]
and dword [ebp - 0x10], 0xffffffef
add ecx, 0xfffffff0
call fcn.00402963
test byte [ebp - 0x10], 8
je 0x460df5
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x10], 0xfffffff7
add ecx, 0xfffffff0
call fcn.00402963
test byte [ebp - 0x10], 4
je 0x460e0a
mov ecx, dword [ebp - 0x28]
and dword [ebp - 0x10], 0xfffffffb
add ecx, 0xfffffff0
call fcn.00402963
test byte [ebp - 0x10], 2
je 0x460e1f
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x10], 0xfffffffd
add ecx, 0xfffffff0
call fcn.00402963
and dword [ebp - 4], 0
test byte [ebp - 0x10], 1
je 0x460e34
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402963
test bl, bl
jne 0x460ee3
mov ecx, dword [ebp - 0x1c]
call fcn.0045ec1e
mov esi, eax
test esi, esi
je 0x460ee3
xor eax, eax
push 0x3e
push eax
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push eax
call fcn.00475410
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403a22
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.00402963
test bl, bl
jne 0x460ee3
lea eax, [ebp + 0x208]
push str.7.8.0.1002
push eax
call fcn.00448df0
pop ecx
pop ecx
test eax, eax
jl 0x460ee3
lea eax, [ebp + 0x208]
push str.7.8.0.9999
push eax
call fcn.00448df0
pop ecx
pop ecx
test eax, eax
jg 0x460ee3
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1d0], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402963
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.0047548a
add ebp, 0x24c
leave
ret